Question: 1 Suppose we have an algorithm A whose running time is 0(2). For simplicity, we assume that the algorithm A needs 2 instructions to finish

 1 Suppose we have an algorithm A whose running time is

1 Suppose we have an algorithm A whose running time is 0(2"). For simplicity, we assume that the algorithm A needs 2 instructions to finish for any input size of n (e.g., if n = 5, A will finish after 25 32 instructions). According to Wikipedia, as of January 2021, the fastest supercomputer in the world is Fujitsu Fugaku (which is located in Kobe, Japan) can perform roughly 4.15 x 1017 instructions per second. Suppose we run the algorithm A on Fujitsu Fugaku. Answer the following questions. (a) For the input size n = 128 (which is a relatively small input), how much time does Fujitsu Fugaku need to finish the algorithm? Give the time in terms of years. (b) For the input size n = 1024, how much time does Fujitsu Fugaku need to finish the algorithm? Give the time in terms of centuries. Note: You may assume that a year has exactly 365 days

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!