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
Find the area of the trapezoid. Answer without units.
Leto [7]

Answer:

180

Step-by-step explanation:

Since the type of trapezoid is not listed, I cannot really explain, sorry :/

5 0
3 years ago
Kath starts with a number. she adds 3 to her number then double the result. finally, she subtracts 7. if she ended with 9, what
Dimas [21]
The answer is 5. Work backwards: first add 7 to 9, then divide by 2, then subtract 3.

9+7=16
16/2=8
8-3=5

Cross Check:
5+3=8
8*2=16
16-7=9

Final Answer: 5
4 0
4 years ago
In a different plan for area​ codes, the first digit could be any number from 4 through 8​, the second digit was either 3, 4, 5,
Snezhnost [94]

For the first digit, we have 5 options that are 4,5,6,7,8 . For the second digit, we have 4 options which are 3,4,5 or 6 and for the third digit, we have the options of all numbers except 2 or 5 that is 1,3,4,6,7,8,9,0 . SO we have 8 options for third digit . So to find the total number of options, we need to multiply all the possible options for each digit that is 5 times 4 times 8 = 160 . So the number of possible options are 160 .

7 0
4 years ago
30 inches to 3 inches​
kondor19780726 [428]

Answer:

I believe its 3

Step-by-step explanation:

5 0
3 years ago
PLEASE HELP ASAP, I WILL GIVE 40 POINTS IF THE RIGHT ANSWER, AND BRAINLEST, ASAP
Lilit [14]

Answer:

We multiply by 2 and add 4

Step-by-step explanation:

To find the pattern,  we find the slope

m = ( y2-y1)/(x2-x1)

m = ( 10-6)/(3-1)

m = 4/2

m =2

We are multiplying by 2

y = mx+b  where m is the slope and b is the y intercept

y = 2x+b

Using the point (1,6)

6 = 2(1)+b

6 = 2+b

The y intercept is 4

y = 2x+4

We multiply by 2 and add 4

4 0
2 years ago
Other questions:
  • Can some body help me with this geometry question please I need the answer asap
    5·1 answer
  • 30 POINTSS!!
    8·1 answer
  • Is the supplement of an acute angle is an obtuse angle
    14·2 answers
  • The answer to this question
    9·1 answer
  • 10 POINTS<br> Find the surface area of the regular pyramid. Round to the nearest tenth if necessary.
    12·2 answers
  • Prove that --<br> sec^2ø-tan^2ø=1
    10·1 answer
  • Daisy is making tablecloths for all the picnic tables. She has 15 yards of fabric to make 6 tablecloths. How much fabric will sh
    14·2 answers
  • Inverse function details
    12·1 answer
  • 5. a number from 1-50 is chosen at random.
    14·1 answer
  • An airplane travels 6111 kilometers against the wind in 9 hours and 7911 kilometers with the wind in the same amount of time. Wh
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!