1,518 Answered Questions for the topic computer science

Computer Science Java Computer Programming

04/26/22

JAVA CODE NEEDS MISSING CODE

This java code below done in java swing has missing code in the TODO sections down below within the code, I need help adding these missing lines please. I have bolded them in the code:import... more
Computer Science Python Bioinformatics

04/23/22

Longest Repeat Problem: Find the longest repeat in a string.

Although the suffix tree decreases memory requirements from O(|Text|2) to O(|Text|), on average it still requires about 20 times as much memory as Text (when the length of Text is on the order of... more
Computer Science

04/18/22

The program below is nevertheless incorrect. Explain why.  Suppose we change the if in line 6 to a while. Does this solve any problem in the program? Do any difficulties remain?

Consider a sharable resource with the following characteristics: 1) as long as there are fewer than three processes using the resource, new processes, new processes can start using it right away.... more
Computer Science Math Business Statistics

04/13/22

Business statistics

Temperature is used to measure the output of a production process. When the process is in control, the mean of the process is mean = 133.7  and the standard deviation is = 0.7.a. Construct... more
Computer Science

04/08/22

How would I solve this dynamic programming question with a table?

Once again your are going on a long bike ride with your e-bike. You must ride exactly n miles. You will need to replace your battery along the way. The bike trail is lined with battery pick-up... more

04/08/22

NEED HELP WITH THIS

 file deleteIthNode.cpp so that it finishes the implementation of the method deleteIthNode. This method deletes the ith item from a list of items. #include "structs.h"//Function to delete the ith... more

Microinstructions code phrases.

Suppose you come across the following binary microinstructions in the format described in class.  Describe the micro-operations that each one executes. Write the phrases for each.1.    0001 0001... more

microinstructions

Give the binary microinstruction corresponding to each of the following sets of micro-operations. should be 32 bits for each. Increment SP by 1. Store the results back in the SP. Load the... more
Computer Science Computer Programming Algorithm

04/03/22

Augmented Binary Search Trees

Given an unsorted set of n distinct numbers, suppose we are interested in carrying out the following two operations: • Select the element of rank k. This operation will be carried out 1 ≤ m ≤ n... more
Computer Science Computer Programming

04/02/22

Dynamic Programming Pseudocode

Suppose you are going on a long bike ride with your e-bike. You must ride exactly n miles. You will need to stop to replace your battery along the way. The bike trail is lined with battery pick-up... more
Computer Science Programming

04/01/22

Algorithm to get the longest Palindrome substring output from a table of size n

The Longest Palindrome Substring, produces a table L [i, j] where L [i, j] is defined as 1 if the substring s [i, j] is a palindrome, and 0 otherwise. The table dimensions are n × n. Using the... more
Computer Science

03/29/22

A smartphone may also be used as a modern

Computer Science Theory Of Automata

03/29/22

Build NFAs for the following languages:

{w ∈ {0, 1} ∗ | w contains any of the substrings 010, 011 or 1100}, • {w ∈ {0, 1} ∗ | w contains the substrings 010, 011 and 1100}, • {w ∈ {0, 1} ∗ | w has a 0 in the third place}, • {w ∈ {0, 1} ∗... more
Computer Science

03/28/22

Java Question, Write ONLY the line of code to call the following methods. Use whatever values you want for the parameters. If there is a return type, you must assign the method call to it's type

public static int getNum(double x, double y)b.  public static void printMe(String s, int num)c.  public static double[ ] getArray(int amount)d.  public static char someChar(char c)
Computer Science

03/28/22

Pseudo code Binary Search Tree

Suppose T is the root node of a Binary Search Tree. Tree nodes will be implemented with the usual BST attributes, and an additional attribute called x.deleted is included, which can be set to True... more

03/27/22

Adjust list by normalizing

When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust the data. This adjustment can be done by normalizing to values between 0 and 1, or throwing... more

03/27/22

Implement a function readEmpFromFile

Implement a function readEmpFromFile that takes a FILE * as the only argument and returns a pointer to a struct employee. This function should read the information from the file (reversing what... more
Computer Science

03/25/22

There is a command you can use to determine, once you have entered a command, in what directory it will choose to run it from by searching the PATH variable. What command is that?

There is a command you can use to determine, once you have entered a command, in what directory it will choose to run it from by searching the PATH variable. What command is that?
Computer Science

03/24/22

the command "tar -cvf ./mydir ./mine" will create a tar file of which directory and create a file named what....

the command "tar -cvf ./mydir ./mine" will create a tar file of which directory and create a file named what....
Computer Science

03/24/22

The number “2” indicates what and where is the output going?

Every time I run the command “dostuff” I want to capture the output into file and any errors into another file. I use the command “dostuff > A.out 2> B.out”. in this case, the number “2”... more
Computer Science Computer Engineering

03/24/22

What is the highest percentage of the memory bus capacity that could be consumed by the disk’s Direct Memory Access if there are 4 disk drives in use?

Consider a computer system that has the following characteristics: The memory bus runs at 400 MHz. The memory bus is 8 bytes wide. Accessing a memory address in memory requires 8 memory bus... more
Computer Science Computer Sql Computer Programming

03/19/22

Write an SQL script to create a table called users in a database

Write an SQL script to create a table called users in a database, with the following fields (assume the specific database has already been accessed) a.id, which is the primary key and value is... more
Computer Science Math Discrete Math Philosophy

03/18/22

How to use natural deduction to prove a statement.

Prove the following statements using natural deduction rules (such as conjunction elimination, implication introduction, etc.)a. [(p ∧ q) ∨ (p ∧ r)] ⊢ [p ∧ (q ∨ r)]b. [¬p, p ∨ q] ⊢ [q]c. [¬p ∧ ¬q]... more

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.