Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Algorithms Question Answer question fully for thumbs up. Present with good hand writing and explanation. Do not answer if you do not know what you

Algorithms Question

Answer question fully for thumbs up.

Present with good hand writing and explanation.

Do not answer if you do not know what you are doing.

image text in transcribed

Question 2 A data processing company needs to sort massive arrays, with a very large number of records n (say, annual returns of tax payers). There are two sorting algorithms available: Sort1 performsn2 comparisons, and Sort2 performs n lo2 n comparisons. Consider two data sets: one with the number of records n1 11,000,000 (annual returns of UK taxpayers). and another one with the number of records n2 60,000,000 (annual returns of US taxpayers) Estimate the computation time of Sortl and Sort2 on each of the two datasets, assuming the company uses a computer that performs 108 operations per second. Present your calculations in two table:s Table 1: Performance of the first sorting algorithm (n comparisons) The estimated computation time in The estimated number of comparisons seconds minutes hours days n 11,000,000 60,000,000 Table 2: Performance of the second sorting algorithm (n log, n comparisons) The estimated number of comparisons The estimated computation time in seconds n,-11,000,000 n2 60,000,000

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

Step: 3

blur-text-image

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

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions

Question

What is order of reaction? Explain with example?

Answered: 1 week ago

Question

Derive expressions for the rates of forward and reverse reactions?

Answered: 1 week ago

Question

Write an expression for half-life and explain it with a diagram.

Answered: 1 week ago