Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started