Paper record

W2043843644

Selection and sorting with limited storage

J. Ian Munro, Michael S. Paterson

Year
1978
Venue
Annual Symposium on Foundations of Computer Science
References
2
Cited by
53

Details and counts from OpenAlex.

Abstract

When selecting from, or sorting, a file stored on a read-only tape and the internal storage is rather limited, several passes of the input tape may be required. We study the relation between the amount of internal storage available and the number of passes required to select the Kth highest of N inputs. We show, for example, that to find the median in two passes requires at least Ω(N1/2) and at most O(N1/2 log N) internal storage. For probabilistic methods, Θ(N1/2) internal storage is necessary and sufficient for a single pass method which finds the median with arbitrarily high probability.