Question

A program has runtime proportional to (log n)7 where n is the input size. Suppose we...

A program has runtime proportional to (log n)7 where n is the input size. Suppose we run the program with input size 10 and the runtime is 35 ms. What will the new  runtime be in seconds when we increase the input size to ten billion?.

Homework Answers

Answer #1

Runtime of a program proportional to (logn)7 where n is the input size

considering base 10

Given Input Size n is 10 and Runtime is 35 ms

when we increase input n to 10 billion(1010)

We calculated Constant K=0.035 and Given input n=1010

When we increase the input to 10 billion run time is 350000 seconds

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Suppose the runtime of a computer program is proportional to n(logn)2. For input size 28 the...
Suppose the runtime of a computer program is proportional to n(logn)2. For input size 28 the runtime is 154 ms. What is the new runtime in ms when the input size is squared? (Type just the number, not "ms")
Suppose the runtime of a computer program is proportional to the fourth root of the input...
Suppose the runtime of a computer program is proportional to the fourth root of the input size. If the original runtime is 165 ms and the input size is multiplied by 8,598 what is the new runtime in ms? (Just type the number not "ms"). Round your answer to the nearest whole number.
A program takes time T(n) = k2n  where k is some constant and n is the input...
A program takes time T(n) = k2n  where k is some constant and n is the input size. The program is run twice on the same computer (so k is the same in both cases). The first run is with n = 4 and the time taken is 20 ms. The second run is with n = 10. What is the time taken for the second run, in milliseconds? (Type in just the number; don't type "ms" at the end.)
discrete structures problems 1. A program P takes time proportional to logn where n is the...
discrete structures problems 1. A program P takes time proportional to logn where n is the input size. If the program takes 1 minute to process input of size 1,000,000, how many seconds does it take to process input of size 100? 2. When the best possible algorithm to solve a problem is exponential-time, or in general in nonpolynomial (not in O(np) for any p) we call such a problem ___________________. 3. f(x) is O(x 2) and g(x) is O(x...
Given a DFA M with n states where the input alphabet has k characters, we can...
Given a DFA M with n states where the input alphabet has k characters, we can determine if the L(M) =empty set in time: A. n B. k C. n+k D. nk
Suppose that we take a random sample of size n from a population having a mean...
Suppose that we take a random sample of size n from a population having a mean μ and a standard deviation of σ. What is the probability or confidence we have that our sample will be within +/- 1 of the population mean μ? (a) μ = 10, σ = 2, n = 25
Suppose we have a random sample of size 50 from a N(μ,σ2) PDF. We wish to...
Suppose we have a random sample of size 50 from a N(μ,σ2) PDF. We wish to test H0: μ=10 versus H1: μ=10. The sample moments are x ̄ = 13.4508 and s2 = 65.8016. (a) Find the critical region C and test the null hypothesis at the 5% level. What is your decision? (b) What is the p-value for your decision? (c) What is a 95% confidence interval for μ?
Using VBA in excel, Consider a city like Manhattan where avenues run north-south and streets run...
Using VBA in excel, Consider a city like Manhattan where avenues run north-south and streets run east-west. Suppose it is a 7 x 10 grid, so there are 70 grid points each marked by an x coordinate and a y coordinate (from (0,0) to all the way to (6, 9). We are interested in the following question: if we locate a fire station at point (i, j), how many points can a truck sent from the station reach within 3...
suppose we are given the following information: sample size (n) = 100 standard error of the...
suppose we are given the following information: sample size (n) = 100 standard error of the slope of the regression line (SEb1) = 2 y=100 + 4x a.) What is the test statistic to test the null hypothesis that the slope is zero versus the alternative hypothesis that the slope is not zero? b.) what is the P-value for a test of the null hypothesis that the slope is zero versus the alternative hypothesis that the slope is not zero?...
1) Suppose an algorithm has 6 types of input given by S = {I_1, I_2, ...,...
1) Suppose an algorithm has 6 types of input given by S = {I_1, I_2, ..., I_6}. Suppose the inputs occur with the following probabilities:   P(I_2) = P(I_3) = P(I_4) = 1/12, P(I_5) = P(I_6) = 1/6, and P(I_1) = 5/12. Suppose further that each input "I_n" (n = 1,2,3,4,5,6) causes the algorithm to execute "5n" instructions. What is the expected number of instructions executed by the algorithm? 2) When three fair dice are tossed, what is the probability that...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT