Question
The Hewlett-Packard HP9810A programmable desk calculator cost $2960 in 1971 and could perform about 100 instructions per second. Below is a table showing the sizes
The Hewlett-Packard HP9810A programmable desk calculator cost $2960 in 1971 and could perform about 100 instructions per second. Below is a table showing the sizes of the largest problems that it could solve in one minute. For less than this price, you can now buy a computer that is 106 times faster (106 is about 220 times faster). State the worst- case time complexity of each algorithm in the form O( ) and then estimate the size of the largest problem that the modern computer could solve in the same amount of time (one minute).
Algorithm largest problem size in 1971
(a) Multiplying two nn matrices by the naive algorithm. n = 6
(b) Heap sort on an array of n integers. n=32
(c) Selection sort on an array of n integers. n=32
(d) Linear search on an array of n integers. n=200
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