aliviadushane
06.04.2020 •
Mathematics
What is the largest n for which one can solve within one second a problem using an algorithm that requires f(n) bit operations, where each bit operation is carried out in 10–9 seconds, with the functions f(n) below? Click and drag the correct answer to complete each statement.
a) For f(n) = log n, the largest n is =
b) For f(n) = n, the largest n is =
c) For f(n) = n log n, the largest n is =
d) For f(n) = n^2, the largest n is =
e) For f(n) = 2^n, the largest n is =
f) For f(n) = n!, the largest n is =
Solved
Show answers
More tips
- D Dating, Love, Relationships Does a Person s Character Depend on the Color of Their Eyes?...
- O Other Childhood Fears: What Many of Us Experienced...
- H Health and Medicine Simple and Effective: How to Get Rid of Cracked Heels...
- L Leisure and Entertainment What to Bring on a Hike? Essential Items to Pack for a Safe and Enjoyable Adventure...
- L Leisure and Entertainment Couchsurfing: A New Way to Travel...
- S Style and Beauty Autotanning: Harmful or Safe?...
- F Food and Cooking 10 Ideas for a Wedding Anniversary Gift...
- H Health and Medicine How to Reduce Sweating in the Heat and Beyond: Say Goodbye to Excessive Sweat...
- F Food and Cooking Do Aphrodisiacs Really Work? Separating Fact from Fiction...
- H Health and Medicine What to Eat to Lose Weight?...
Answers on questions: Mathematics
- M Mathematics The hundreds digit oh my number islgreater than the tens digit the ones digit is less than ten digit what could my number be...
- M Mathematics Whats the heoght of a cone if the volume is 819cm cubed and the base is 12cm...
- M Mathematics You plan to work for 40 years and then retire using a 25-year annuity. you want to arrange a retirement income of $4000 per month. you have access to an account that pays an...
- M Mathematics Find the value of x that’s on the cross shown....
- M Mathematics Shasha lives 1,493 miles from her grandmother. one year, shasha s family made 4 round trips to visit her grandmotherm how many miles did they travel in all?...
- M Mathematics Determine the length of a circumference whose diameter is 14 cm....
- M Mathematics 20 – 4/5 x ≥ to 16 which of the following inequalities is equivalent to the inequality shown above? 16 a. x ≤ 5 b. x ≥ 5 c. x ≤ 65/2 d. x ≥ 65/2...
- M Mathematics Suppose a manufacturer of a clothes dryer found that when the unit price is $x, the revenue R (IN DOLLARS) is given by: () = 4000 − (4x)(4x) What unit price should be established...
- M Mathematics What is the probability of selecting 3 black cards from a deck of 52 cards if each is replaced before the next is selected? What if they are not replaced?...
- M Mathematics Find the mode for the set of numbers: {4, 10, 6, 12, 6, 10, 6}...
Ответ:
(a) Each bit operation is carried out in 10^-9 seconds: T = 10^-9 seconds.
The algorithm can take at most t = 1 second, while there are t/T = 1/10^-9
10^9 possible bit operations in t = 1 second.
Algorithm requires f(n) = log n bit operations:
log n = 10^9
Note: The logarithm has base 2, because bits only have 2 possible values.
= 10^9
Let us take the exponential with base 2 of each side of the previous equation:
n = = = 4.6130 x 10^391929995 = 4.6130 x
(b) Each bit operation is carried out in 10^-9 seconds: T = 10^-9 seconds.
The algorithm can take at most t = 1 second. while there are t/T = 1/ 10^-9
10^9 possible bit operations in t = 1 second. Algorithm requires f(n) = n bit operations:
n = 10^9
(c) Each bit operation is carried out in 10^-9 seconds: T = 10^-9 seconds. The algorithm can take at most t = 1 second, while there are t/T = 1/10^-9
10^9 possible bit operations in t = 1 second.
Algorithm requires f(n) = nlogn bit operations:
n log n = 10^9
Note: The logarithm has base 2, because bits only have 2 possible values.
n is then the product of 10^9 and the logarithm of 2, divided by the Lambert W function of the product in the numerator.
n = 10^9 * log(2)/W(10^9*log(2)
= 3.96 * 10^7
Note: You need to use technology to evaluate the Lambert W function.
(d) Each bit operation is carried out in 10^-9 seconds: T = 10^-9 seconds.
The algorithm can take at most t = 1 second, while there are t/T = 1/10^-9 =
10^9 possible bit operations in t = 1 second.
Algorithm requires f(n) = n^2 bit operations:
n^2 = 10^9
Take the square root of each side of the previous equation (round down to the nearest integer!):
n= = 3.16 * 10^4
(e) Each bit operation is carried out in 10^-9 seconds: T = 10^-9 seconds.
The algorithm can take at most t = 1 second, while there are t/T = 1/10^-9 =
10^9 possible bit operations in t = 1 second.
Algorithm requires f(n) = 2 bit operations:
= 10^9
Take the logarithm with base 2 of each side of the previous equation:
= 10^9
Evaluate (round down to the nearest integer!):
n = = 10^9 = 29
(f) Each bit operation is carried out in 10^-9 seconds: T = 10^-9 seconds. The algorithm can take at most t = 1 second, while there are t/T = 1/10^-9 =10^9 possible bit operations in t = 1 second.
Algorithm requires fin) = n! bit operations:
n! = 10^9
Since 12! = 9.79 x 10^8 and 13! = 6.23 x 10^9, we know 12! < 109 < 13!. n is then the lower limit
n = 12
Ответ: