Question: Order statistics. You are given a DVD-ROM storing n values and wish to find the median. Since the disk is read-only, you cannot swap or

Order statistics. You are given a DVD-ROM storing n values and wish to find the median. Since the disk is read-only, you cannot swap or move elements. Your computer has O(log n) read/write memory, so you cant simply copy the DVD into memory. Give an O(n log n) expected-time algorithm to find the median without writing to disk. Prove correctness of your algorithm.

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!