1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
fredd [130]
4 years ago
8

For each function f(n) and time t in the table, determine the largest size n of a problem that can be solved in time t, assuming

that the algorithm to solve the problem takes f(n) microseconds
Mathematics
1 answer:
egoroff_w [7]4 years ago
8 0
First recall that a microsecond is 10^−6 seconds. Hence, one second = 10^6 microseconds, one hour = 3600000000 = 3.6 • 10^9 microseconds, one month (assume a month has 30 days) = 2592000000000 = 2.592 • 10^12 microseconds, and one century = 3110400000000000 = 3.1104 • 10^15 microseconds.

Row 1: f(n) = log n In this case, we need to determine the largest n such that log n ≤ 1000000. To solve this inequality, we need to rewrite the inequality as 2^logn ≤ 2^1000000 or n ≤ 2^1000000. Recall from lecture that 2^10 ≈ 10^3, thus we have that 2^1000000 = 2^10•100000 = (2^10)^100000 ≈ (10^3)^100000 = 10^300000. This is the result given in the textbook. For one hour, we have that n ≤ 2^3600•1000000 and thus n ≈ 10^1080000000.

Row 8: f(n) = n! For us to see that the largest sized input is 12 that can be processed within an hour when f(n) = n! one can simply, compute 12! And verify that it is less than the number of microseconds in one hour, but that 13! is greater than the number of microseconds in an hour.

Row 4: f(n) = n log n In this case, use Maple to solve equations like n log n−1000000 = 0. The Maple command for solving this equation is fsolve(n*log[2](n) - 1000000 = 0)
You might be interested in
The ratio of blue chairs to red chairs in miss Vickers class is 2 to 5. which of the following cannot represent the total number
ollegr [7]

Answer:

1 to 4 chairs


Step-by-step explanation:


4 0
3 years ago
The sum of three consecutive odd integers is 18 less than five times the middle number fimd the three integers
ycow [4]

Answer:

7, 9, 11

Step-by-step explanation:

x+x+2+x+4=5(x+2)-18

3x+6=5x+10-18

3x+6=5x+-8

3x=5x+-14

-2x=-14

x=7

7 0
3 years ago
What is 1/4 X 5/16 equal
VashaNatasha [74]
\frac{1}{4} x \frac{5}{16}

   1 x 5 = 5 
16 x 4 = 64  

\frac{5}{64}  is the answer 

In simplest form the answer would be \frac{5}{64} because it cant be divided any farther.   


6 0
4 years ago
Read 2 more answers
1600, 400, 100, 25, ...<br> O Arithmetic <br> O Geometric<br> O Neither
jeyben [28]
This is a GEOMETRIC sequence as each number is being multiplied by 1/4
6 0
3 years ago
9 in. 14 in. Find the area of the triangle shown above. [?] square inches​
mamaluj [8]

Answer:

63

Step-by-step explanation:

9 x 14 = 126/2 = 63

7 0
3 years ago
Other questions:
  • Solve this equation, and explain!! thanks!
    13·1 answer
  • I dont get this question​ please help meeee
    9·1 answer
  • With probability 0.6, a present was hidden by mom; and with probability 0.4, it was hidden bydad. When mom hides the present, sh
    12·1 answer
  • What expression is equivalent to (fg) (5)
    13·2 answers
  • V is greater than or equal to 5
    10·1 answer
  • Find the reference angel
    13·1 answer
  • Find the True statement
    12·2 answers
  • Help please !! it's asking "find the measure of the missing angle" yet there's nothing ??​
    13·1 answer
  • Which expression is equivalent to the given expression? Assume the denominator does not equal zero.
    5·1 answer
  • Show all steps. Simplify using order of operations <br><br> 16 divide by 4 * 2 please help me asap
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!