Sorting and Searching in Multisets
Authors:
- Ian MunroIMIan Munro
- Philip M. SpiraPSPhilip M. Spira
- 1 March 1976
- journal article
- Published by Society for Industrial & Applied Mathematics (SIAM) in SIAM Journal on Computing
- Vol. 5 (1) , 1-8
Abstract
In this paper the problem of sorting multisets is considered. An information theoretic lower bound on the number of three branch comparisons is obtained, and it is shown that this bound is asymptotically attainable. It is shown that the multiplicities of a set can only be obtained by comparisons if the total order is discovered in the process. A lower bound on finding the mode of a multiset as a function of the actual multiplicity is given, and it is demonstrated that the bound can be achieved to within a multiplicative constant. The determination of the intersection of two multisets is also discussed, and partial results, including a generalization of Reingold’s result for determining whether or not two sets have a nonempty intersection, are obtained.Keywords
This publication has 6 references indexed in Scilit:
- On lower bounds for computing the i-th largest element1973
- On the Optimality of Some Set AlgorithmsJournal of the ACM, 1972
- Linear time bounds for median computations1972
- Algorithm 245: TreesortCommunications of the ACM, 1964
- Algorithm 230: Matrix PermutationCommunications of the ACM, 1964
- Algorithm 113: TreesortCommunications of the ACM, 1962