Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The New Profit Frontier

Authors: Ed Burnett

1st Edition

0964535629, 978-0964535626

More Books

Students also viewed these Databases questions

Question

Discuss different external sources of HR data.

Answered: 1 week ago

Question

KEY QUESTION Refer to Figure 3.6, page

Answered: 1 week ago