We consider the fundamental sorting and selection problems on a list of elements that are not necessarily from a totally ordered set. Here relation between elements are determined by ‘equality’ comparisons whose outcome is = when the two elements being compared are equal and ≠ otherwise. We determine the complexity of sorting (finding the frequency of every element), finding mode and other frequently occurring elements using only =, ≠ comparisons. We show that Ω(n2/m) comparisons are necessary and this many comparisons are sufficient to find an element that appears at least m times. This is in sharp contrast to the bound of Θ(n log(n/m)) bound in the model where comparisons are or ≤,>.
CITATION STYLE
Jayapaul, V., Munro, J. I., Raman, V., & Satti, S. R. (2015). Sorting and selection with equality comparisons. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 9214, pp. 434–445). Springer Verlag. https://doi.org/10.1007/978-3-319-21840-3_36
Mendeley helps you to discover research relevant for your work.