Skip to main content

Sorting and Selection with Equality Comparisons

  • Conference paper
  • First Online:
Algorithms and Data Structures (WADS 2015)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 9214))

Included in the following conference series:

Abstract

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 \(\ne \) otherwise. We determine the complexity of sorting (finding the frequency of every element), finding mode and other frequently occurring elements using only \(=, \ne \) comparisons. We show that \(\Omega (n^2/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 \(\Theta (n \log (n /m))\) bound in the model where comparisons are \(<, =, >\) or \(\le , >\).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Ajtai, M., Feldman, V., Hassidim, A., Nelson, J.: Sorting and selection with imprecise comparisons. In: Albers, S., Marchetti-Spaccamela, A., Matias, Y., Nikoletseas, S., Thomas, W. (eds.) ICALP 2009, Part I. LNCS, vol. 5555, pp. 37–48. Springer, Heidelberg (2009)

    Chapter  Google Scholar 

  2. Alonso, L., Reingold, E.M., Schott, R.: The Average-Case Complexity of Determining the Majority. SIAM Journal on Computing 26, 1–14 (1997)

    Article  MathSciNet  MATH  Google Scholar 

  3. Alonso, L., Reingold, E.M., Schott, R.: Determining the majority. Information Processing Letters 47, 253–255 (1993)

    Article  MathSciNet  MATH  Google Scholar 

  4. Alonso, L., Reingold, E.M., Schott, R.: Analysis of Boyer and Moore’s MJRTY. Information Processing Letters 113, 495–497 (2013)

    Article  MathSciNet  MATH  Google Scholar 

  5. Bollobaś, B.: Extremal Graph Theory. Academic Press (1978)

    Google Scholar 

  6. Boyer, R.S., Moore, J.S.: MJRTY - A fast majority vote algorithm. In: Boyer, R.S. (ed.) Automated Reasoning: Essays in Honor of Woody Bledsoe. Automated Reasoning Series, pp. 105–117. Kluwer (1991)

    Google Scholar 

  7. Dobkin, D.P., Munro, J.I.: Determining the Mode. Theoretical Computer Science 12, 255–263 (1980)

    Article  MathSciNet  MATH  Google Scholar 

  8. Fischer, M.J., Salzberg, S.L.: Solution to problem 81–5. Journal of Algorithms 3, 376–379 (1982)

    Google Scholar 

  9. Munro, J.I., Spira, P.M.: Sorting and Searching in Multisets. SIAM Journal on Computing 5(1), 1–8 (1976)

    Article  MathSciNet  MATH  Google Scholar 

  10. Misra, J., Gries, D.: Finding Repeated Elements. Science of Computing Programming 2(2), 143–152 (1982)

    Article  MathSciNet  MATH  Google Scholar 

  11. Reingold, E.M.: On the optimality of some set algorithms. Journal of the ACM 19(4), 649–659 (1972)

    Article  MathSciNet  MATH  Google Scholar 

  12. Saks, M.E., Werman, M.: On computing majority by comparisons. Combinatorica 11(4), 383–387 (1991)

    Google Scholar 

  13. Simpson, J.A., Weiner, E.S.C.: The Oxford English Dictionary, vol. XVI. Clarendon Press (1989)

    Google Scholar 

  14. Turań, P.: On an extremal problem in graph theory (in Hungarian). Mat. Fiz. Lapk 48, 436–452 (1941)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Varunkumar Jayapaul .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this paper

Cite this paper

Jayapaul, V., Munro, J.I., Raman, V., Satti, S.R. (2015). Sorting and Selection with Equality Comparisons. In: Dehne, F., Sack, JR., Stege, U. (eds) Algorithms and Data Structures. WADS 2015. Lecture Notes in Computer Science(), vol 9214. Springer, Cham. https://doi.org/10.1007/978-3-319-21840-3_36

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-21840-3_36

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-21839-7

  • Online ISBN: 978-3-319-21840-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics