Nothing Special   »   [go: up one dir, main page]

skip to main content
10.5555/1347082.1347202acmconferencesArticle/Chapter ViewAbstractPublication PagessodaConference Proceedingsconference-collections
research-article

Finding an optimal tree searching strategy in linear time

Published: 20 January 2008 Publication History

Abstract

We address the extension of the binary search technique from sorted arrays and totally ordered sets to trees and tree-like partially ordered sets. As in the sorted array case, the goal is to minimize the number of queries required to find a target element in the worst case. However, while the optimal strategy for searching an array is straightforward (always query the middle element), the optimal strategy for searching a tree is dependent on the tree's structure and is harder to compute. We present an O(n)-time algorithm that finds the optimal strategy for binary searching a tree, improving the previous best O(n3)-time algorithm. The significant improvement is due to a novel approach for computing subproblems, as well as a method for reusing parts of already computed subproblems, and a linear-time transformation from a solution in the form of an edge-weighed tree into a solution in the form of a decision tree.

References

[1]
S. Alstrup and M. Spork. Optimal on-line decremental connectivity in trees. IPL, 64(4):161--164, 1997.
[2]
Y. Ben-Asher, E. Farchi, and I. Newman. Optimal search in trees. SIAM Journal on Computing, 28(6):2090--2102, 1999.
[3]
R. Carmo, J. Donadelli, Y. Kohayakawa, and E. Laber. Searching in random partially ordered sets. Theoretical Computer Science, 321(1):41--57, 2004.
[4]
M. Charikar, R. Fagin, V. Guruswami, J. Kleinberg, P. Raghavan, and A. Sahai. Query strategies for priced information. Journal of Computer and System Sciences, 64(4):785--819, 2002.
[5]
C. Daskalakis, R. M. Karp, E. Mossel, S. Riesen-feld, and E. Verbin. Sorting and selection in posets. arXiv:0707.1532, 2007.
[6]
E. Demaine. Private communication, 2007.
[7]
U. Faigle and G. Turán. Sorting and recognition problems for ordered sets. SIAM Journal on Computing, 17(1):100--113, 1988.
[8]
D. E. Ferguson. Fibonaccian searching. Communications of the ACM, 3(12):648, 1960.
[9]
W. J. Knight. Search in an ordered array having variable probe cost. SIAM Journal on Computing, 17(6):1203--1214, 1988.
[10]
D. E. Knuth. Sorting and Searching, volume 3 of The Art of Computer Programming. Addison-Wesley, Reading, Massachusetts, second edition, 1998.
[11]
E. Laber and L. T. Nogueira. Fast searching in trees. Electronic Notes in Discrete Mathematics, 7:1--4, 2001.
[12]
N. Linial and M. Saks. Every poset has a central element. Journal of combinatorial theory, A 40(2):195--210, 1985.
[13]
N. Linial and M. Saks. Searching ordered structures. Journal of algorithms, 6(1):86--103, 1985.
[14]
G. Navarro, R. Baeza-Yates, E. Barbosa, N. Ziviani, and W. Cunto. Binary searching with non-uniform costs and its application to text retrieval. Algorithmica, 27(2):145--169, 2000.
[15]
K. Onak and P. Parys. Generalization of binary search: Searching in trees and forest-like partial orders. In FOCS, pages 379--388, 2006.
[16]
W. W. Peterson. Addressing for random-access storage. IBM Journal of Research and Development, 1(2):130--146, 1957.

Cited By

View all

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
SODA '08: Proceedings of the nineteenth annual ACM-SIAM symposium on Discrete algorithms
January 2008
1289 pages
  • Program Chair:
  • Shang-Hua Teng

Sponsors

Publisher

Society for Industrial and Applied Mathematics

United States

Publication History

Published: 20 January 2008

Check for updates

Qualifiers

  • Research-article

Conference

SODA08
Sponsor:
SODA08: 19th ACM-SIAM Symposium on Discrete Algorithms
January 20 - 22, 2008
California, San Francisco

Acceptance Rates

Overall Acceptance Rate 411 of 1,322 submissions, 31%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)7
  • Downloads (Last 6 weeks)1
Reflects downloads up to 16 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2023)An Optimal Algorithm for Partial Order Multiway SearchACM SIGMOD Record10.1145/3604437.360445652:1(84-92)Online publication date: 8-Jun-2023
  • (2019)Binary Search in Graphs RevisitedAlgorithmica10.1007/s00453-018-0501-y81:5(1757-1780)Online publication date: 1-May-2019
  • (2018)Adaptive hierarchical clustering using ordinal queriesProceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms10.5555/3174304.3175295(415-429)Online publication date: 7-Jan-2018
  • (2017)Twenty (simple) questionsProceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing10.1145/3055399.3055422(9-21)Online publication date: 19-Jun-2017
  • (2016)Deterministic and probabilistic binary search in graphsProceedings of the forty-eighth annual ACM symposium on Theory of Computing10.1145/2897518.2897656(519-532)Online publication date: 19-Jun-2016
  • (2016)On the tree search problem with non-uniform costsTheoretical Computer Science10.1016/j.tcs.2016.07.019647:C(22-32)Online publication date: 27-Sep-2016
  • (2015)On the Tree Search Problem with Non-uniform CostsRevised Papers of the 41st International Workshop on Graph-Theoretic Concepts in Computer Science - Volume 922410.1007/978-3-662-53174-7_7(90-102)Online publication date: 17-Jun-2015
  • (2011)Searching in dynamic tree-like partial ordersProceedings of the 12th international conference on Algorithms and data structures10.5555/2033190.2033233(512-523)Online publication date: 15-Aug-2011
  • (2011)Binary identification problems for weighted treesProceedings of the 12th international conference on Algorithms and data structures10.5555/2033190.2033212(255-266)Online publication date: 15-Aug-2011
  • (2010)On the Huffman and alphabetic tree problem with general cost functionsProceedings of the 18th annual European conference on Algorithms: Part I10.5555/1888935.1888986(439-450)Online publication date: 6-Sep-2010
  • Show More Cited By

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media