Abstract
Some classical ordering problems (sorting, finding the maximum, finding the maximum and the minimum, finding the largest and the next largest, merging, and finding the median) are considered from a recursive viewpoint. IfX(n) denotes an instance of sizen of any one of these problems thenX(n) can be solved by finding the solution to a number ξ(n,k) of problemsX(k) for some fixedk; ξ(nk,k) is called therelative complexity. Upper and lower bounds on the relative complexity are found. For the problem of finding the maximum, finding the maximum and the minimum, and finding the largest and the next largest these bounds are optimal.
Similar content being viewed by others
References
A. V. Aho, J. E. Hopcroft, J. D. Ullman,The Design and Analysis of Computer Algorithms, Addison-Wesley, Reading, Massachusetts, 1974.
M. D. Atkinson,Sorting with powerful primitive operations, J. Comb. Math. and Comb. Comput. 4 (1988), 29–36.
R. Beigel, J. Gill,Sorting n objects with a k-sorter, IEEE Trans. on Computers, 39, No. 5 (May 1990), 714–716.
S. W. Bent, J. W. John,Finding the median requires 2n comparisons, Proceedings of the Seventeenth Annual ACM Symposium on Theory of Computing (1985), 213–216.
D. E. Knuth,Sorting and Searching, The Art of Computer Programming, vol. 3, Addison-Wesley, Reading, Massachusetts, 1973.
M. S. Paterson, A. Schönhage, N. Pippenger,Finding the median, J. Computer and System Sciences 13 (1976), 184–199.
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Atkinson, M.D. The recursive structure of some ordering problems. BIT 31, 194–201 (1991). https://doi.org/10.1007/BF01931280
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF01931280