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
Get step-by-step solutions from verified subject matter experts
