Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Algorithms Question Answer question fully for thumbs up. Question 2 A data processing company needs to sort massive arrays, with a very large number of

Algorithms Question

Answer question fully for thumbs up.

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 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

Students also viewed these Databases questions

Question

What color does an RGB value of ( 0 , 0 , 2 5 5 ) represent

Answered: 1 week ago

Question

x-3+1, x23 Let f(x) = -*+3, * Answered: 1 week ago

Answered: 1 week ago