Question

In: Math

How much time does an algorithm take to solve a problem of size n if this...

How much time does an algorithm take to solve a problem of size n if this algorithm uses 2n2 + 2n operations, each requiring 10-8 seconds, with these values of n?

a) 10:

b) 20:

c) 50:

d) 100

Solutions

Expert Solution


Related Solutions

QUESTION 1 How long? How much time in seconds does it take for the sled to...
QUESTION 1 How long? How much time in seconds does it take for the sled to go down part of a hill? A sled with a total mass of 671 kilograms is going down a straight part of a hill where the angle of incline is 10.6 degrees. The length of the straight part of the hill is 76.4 metres. The speed of the sled at the top of the hill is 4 meters per second. The combined forces of...
What is the largest size n of a problem that can solve in 1 second, assuming...
What is the largest size n of a problem that can solve in 1 second, assuming that the algorithm to solve the problem takes sqrt(n) microseconds? (sqrt stands for square root) 1 10^(6) 10^(12) 10^(3) How does the array arr = [8, 5, 3, 6, 10] look like after the second iteration (when j = 3) of the j loop on line 1 of the give pseudocode below? insertion_sort.PNG 1 for j 2 do 3 // Insert A[j] into the...
for an array A of size N, and A[0] != A[n-1]. devise an efficient algorithm for...
for an array A of size N, and A[0] != A[n-1]. devise an efficient algorithm for find a pair of elements A[i] and A[i+1] such that A[i] != A[i+1]. can you always find such pair and why
How much time would it take for the stock portfolio to double in value if the...
How much time would it take for the stock portfolio to double in value if the rate of return is 9.0%? Use the rule of 70 to find the answer [just google it]. State the answer as a number with 2 decimals (for example, 13.02).
Please explain how to do this problem and solve. Bid Ask Price Size Price Size $...
Please explain how to do this problem and solve. Bid Ask Price Size Price Size $ 94 150 $ 94.5 300 $ 93.5 300 $ 94.8 300 $ 92 600 $ 95 500 $ 90.8 450 $ 95.5 550 b. Norman Pilbarra submits a market order to buy 600 shares. What is the maximum price that he will pay? (Round your answer to 2 decimal places.)
Using Java implement a searching algorithm to solve the following problem (please specify the searching algorithm...
Using Java implement a searching algorithm to solve the following problem (please specify the searching algorithm being used) Requirements Choose one problem with an algorithm and implement it. You should show and explain the result whatever you got. I recommend using N-Queen problem (at least N=8 or more) or any simple perfect games. For example, - N-Queen problem with hill climbing - N-Queen problem with simulated annealing - N-Queen problem with genetic algorithm - Tic-Tac-Toe with Minimax
Using Java implement a searching algorithm to solve the following problem (please specify the searching algorithm...
Using Java implement a searching algorithm to solve the following problem (please specify the searching algorithm being used) N-Queen problem with genetic algorithm Please use the N-Queen problem (at least N=8 or more) or any simple perfect games. Please provide a screenshot of output and please heavily comment the code. Thanks!
How many character comparisons will the BMH algorithm perform to solve the pattern search problem shown...
How many character comparisons will the BMH algorithm perform to solve the pattern search problem shown below? text: my next door neighbor is a witch pattern: is explain c language
Here is my algorithm: Ask how much time they need to do the assignment(Total hours) Ask...
Here is my algorithm: Ask how much time they need to do the assignment(Total hours) Ask how many days are available Calculate hour per day needed Store time needed per day in a variable 2. How many hours per day are available Store hours available per day in a variable Ask user how much time is spent doing other things Calculate how much time is available per day 24- (# of hours not available) Display how much time is available...
I take a sample of 50 Americans and I am interested in how much time they...
I take a sample of 50 Americans and I am interested in how much time they spend on social networks every day and I know that the sample mean is 3.1. I know that the reports say that Americans spend on average 3 hours with a standard deviation of 0.29 hours. Since from my sample I obtained a higher value, I am interested to test the hypothesis that Americans spend at least 3 hours on social networks every day at...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT