Question: Suppose we have two computers, computer A , a fast computer running insertion sort. Computer B , a slow computer running merge sort. Each must

Suppose we have two computers, computer A, a fast computer running insertion sort. Computer B, a slow computer running merge sort. Each must sort an array of 100 million numbers. Suppose that computer A executes 100 billion instructions per second and computer B executes 100 million instructions per second. Suppose Computer A requires 5n square instructions to sort n numbers and computer B requires 100nlgn instructions to sort the n numbers. Find the time it takes the two computers to sort the 100 million numbers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!