Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/800116.803774acmconferencesArticle/Chapter ViewAbstractPublication PagesstocConference Proceedingsconference-collections
Article
Free access

Two applications of a probabilistic search technique: Sorting X+Y and building balanced search trees

Published: 05 May 1975 Publication History

Abstract

Let X = {x1,...,xN} and Y = {y1,...,yN} be sets of N real numbers. We denote by X + Y the multiset {xi + yj; 1 ≤ i, j ≤ N} of size N2. Berklekamp has posed the problem of sorting X + Y. Harper, Payne, Savage and Strauss [1] show that N21og2N comparisons suffice to sort X + Y, thereby saving a factor of 2 over sorting without exploiting the structure of X + Y. (Given u in X + Y, we assume that we know the i,j indices such that u = xi + yj.) Furthermore, they show that this bound is tight for a restricted class of comparison algorithms. However, without their restriction the order of magnitude comparison complexity of this problem has remained an open question. In this paper we show that X + Y can be sorted with O(N2) comparisons. Our proof is unusual for this type of problem in that we do not explicitly exhibit an algorithm. Instead, it is a particular application of a more general search technique whose behavior is easily related to information theoretic lower bounds. In the context of sorting, this search method translates into an insertion sort, where the insertions are not performed by means of the usual binary search, but rather as off-centered searches designed so that each comparison, roughly speaking, equally divides the space of remaining possibilities. We draw attention to this search technique because it might find application to other problems, and we illustrate this possibility with a second application.
Our second application concerns the construction of probabilistically balanced binary search trees.

References

[1]
L.H. Harper, T.H. Payne, J.E. Savage, E. Strauss, "Sorting X + Y", to appear in Comm. ACM.
[2]
D.E. Knuth, "Optimum Binary Search Trees", Acta Informatics 1, 1971, 14-25.
[3]
T.C. Hu, A.C. Tucker, "Optimum Binary Search Trees", SIAM J. Applied Math. 21:4, 1971, 514-532.
[4]
D.E. Knuth, Fundamental Algorithms, Addison-Wesley, Reading, Mass., 1968.
[5]
D.E. Knuth, Sorting and Searching, Addison-Wesley, Reading, Mass., 1973.
[6]
W.A. Walker, C.C. Gotlieb, Graph Theory and Computing, (edited by R.C. Read), Academic Press, 1972.
[7]
P. Erdos, J. Spencer, Probabilistic Methods in Combinatorics, Akademiai Kiado, 1974.

Cited By

View all
  • (2024)Bounds and Algorithms for Alphabetic Codes and Binary Search TreesIEEE Transactions on Information Theory10.1109/TIT.2024.342869970:10(6974-6988)Online publication date: Oct-2024
  • (2023)Competitive Online Search Trees on TreesACM Transactions on Algorithms10.1145/359518019:3(1-19)Online publication date: 24-Jun-2023
  • (2022)A Generalization of Self-Improving AlgorithmsACM Transactions on Algorithms10.1145/353122718:3(1-32)Online publication date: 11-Oct-2022
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
STOC '75: Proceedings of the seventh annual ACM symposium on Theory of computing
May 1975
265 pages
ISBN:9781450374194
DOI:10.1145/800116
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 05 May 1975

Permissions

Request permissions for this article.

Check for updates

Qualifiers

  • Article

Acceptance Rates

STOC '75 Paper Acceptance Rate 31 of 87 submissions, 36%;
Overall Acceptance Rate 1,469 of 4,586 submissions, 32%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)120
  • Downloads (Last 6 weeks)9
Reflects downloads up to 04 Oct 2024

Other Metrics

Citations

Cited By

View all
  • (2024)Bounds and Algorithms for Alphabetic Codes and Binary Search TreesIEEE Transactions on Information Theory10.1109/TIT.2024.342869970:10(6974-6988)Online publication date: Oct-2024
  • (2023)Competitive Online Search Trees on TreesACM Transactions on Algorithms10.1145/359518019:3(1-19)Online publication date: 24-Jun-2023
  • (2022)A Generalization of Self-Improving AlgorithmsACM Transactions on Algorithms10.1145/353122718:3(1-32)Online publication date: 11-Oct-2022
  • (2021)Fragile Complexity of Adaptive AlgorithmsAlgorithms and Complexity10.1007/978-3-030-75242-2_10(144-157)Online publication date: 4-May-2021
  • (2019)Extensions of Self-Improving SortersAlgorithmica10.1007/s00453-019-00604-6Online publication date: 5-Jul-2019
  • (2016)The Power and Limitations of Static Binary Search Trees with Lazy FingerAlgorithmica10.1007/s00453-016-0224-x76:4(1264-1275)Online publication date: 1-Dec-2016
  • (2016)Maximum Agreement Subtree (of 2 Binary Trees)Encyclopedia of Algorithms10.1007/978-1-4939-2864-4_220(1218-1221)Online publication date: 22-Apr-2016
  • (2015)Maximum Agreement Subtree (of 2 Binary Trees)Encyclopedia of Algorithms10.1007/978-3-642-27848-8_220-2(1-5)Online publication date: 18-Feb-2015
  • (2014)The Power and Limitations of Static Binary Search Trees with Lazy FingerAlgorithms and Computation10.1007/978-3-319-13075-0_15(181-192)Online publication date: 8-Nov-2014
  • (2013)A History of Distribution-Sensitive Data StructuresSpace-Efficient Data Structures, Streams, and Algorithms10.1007/978-3-642-40273-9_10(133-149)Online publication date: 2013
  • Show More Cited By

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Get Access

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media