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
How many triangles exist with the given side lengths? 7 in, 7 in, 7 in A. No triangle exists with the given side lengths. B. Mor
Kazeer [188]

C. Exactly one unique triangle exists with the given side lengths.

<u>Step-by-step explanation:</u>

A triangle consists of three sides, depending on the measurement of the sides, naming of the triangles can be varied.

If all the three sides are equal in length, it is said to be an equilateral triangle. Only one triangle can be formed using the measures of 7 in, 7 in, 7 in, that is all the three sides are same in measurement of 7 inches.

So, Exactly one unique triangle can be produced with the given side lengths.

7 0
3 years ago
Add and subtract function PLS HELP!!!!
Fittoniya [83]

Answer:

The first option:

6x^{2} -4x+6

Step-by-step explanation:

Trust me I am right.

If you need work please ask!

Have a nice day!

4 0
2 years ago
V = s^2 + 1/2sh ; solve for h<br><br> please provide answer &amp; clear explanation
Elan Coil [88]

Answer:

h = 2 (v − s²) / s

Step-by-step explanation:

v = s² + ½sh

Subtract s² from both sides.

v − s² = ½sh

Multiply both sides by 2.

2 (v − s²) = sh

Divide both sides by s.

2 (v − s²) / s = h

7 0
3 years ago
What is the value of this expression of his expression of c=4
natali 33 [55]

Answer: c=4


Step-by-step explanation: the answer is 4 because c=4 and that is what c is.


5 0
3 years ago
Math help NEEDED time running out please help!!! will mark brainliest
o-na [289]
1.

Answer C. (8)

2.

 Answer C. [6x^(4/3)]

3.

Answer D. (the one with 36x²)

4.

Answer B. (2a^(2/3)b²)

5.

Answers C. and D.
3 0
4 years ago
Other questions:
  • Circle the equation that can be used to find A, the area of the rectangle below
    14·1 answer
  • I need to know what is x ..................
    9·2 answers
  • 9.)
    11·1 answer
  • What's 3.1 = 3 + 0.1 written in mathematical statement word form
    15·1 answer
  • Can someone please help me on the last two empty boxes :( ??!!
    10·1 answer
  • An artist is going to sell two sizes of prints at an art fair. The artist will charge $20 for the small print and $45 for a larg
    9·1 answer
  • Nicholas bought three business related books. His total bill was $150. If one book cost him 50% more than the other two books co
    7·1 answer
  • What number subtracted from 2 will equal 8<br><br> 2 - x = 8
    10·1 answer
  • Find all solutions to sin(3x)-sin(2x)=0.
    5·1 answer
  • Express in the form 1:n.<br> Give n as a fully simplified fraction.<br> 12:2
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!