Papers
Topics
Authors
Recent
Search
2000 character limit reached

A Tight Threshold Bound for Search Trees with 2-way Comparisons

Published 6 Dec 2023 in cs.DS | (2312.03896v1)

Abstract: We study search trees with 2-way comparisons (2WCST's), which involve separate less-than and equal-to tests in their nodes, each test having two possible outcomes, yes and no. These trees have a much subtler structure than standard search trees with 3-way comparisons (3WCST's) and are still not well understood, hampering progress towards designing an efficient algorithm for computing minimum-cost trees. One question that attracted attention in the past is whether there is an easy way to determine which type of comparison should be applied at any step of the search. Anderson, Kannan, Karloff and Ladner studied this in terms of the ratio between the maximum and total key weight, and defined two threshold values: $\lambda-$ is the largest ratio that forces the less-than test, and $\lambda+$ is the smallest ratio that forces the equal-to test. They determined that $\lambda- = 1/4$, but for the higher threshold they only showed that $\lambda+\in [3/7,4/9]$. We give the tight bound for the higher threshold, by proving that in fact $\lambda+ = 3/7$.

Authors (2)
Definition Search Book Streamline Icon: https://streamlinehq.com
References (10)
  1. Thresholds and optimal binary comparison search trees. Journal of Algorithms, 44:338–358, 2002.
  2. Structural properties of search trees with 2-way comparisons. CoRR, abs/2311.02224, 2023.
  3. The Knuth-Yao quadrangle-inequality speedup is a consequence of total monotonicity. ACM Trans. Algorithms, 6(1):17:1–17:22, 2009.
  4. A simple algorithm for optimal search trees with two-way comparisons. ACM Trans. Algorithms, 18(1):2:1–2:11, December 2021.
  5. On Huang and Wong’s algorithm for generalized binary split trees. Acta Informatica, 59(6):687–708, December 2022.
  6. D. E. Knuth. Optimum binary search trees. Acta Informatica, 1:14–25, 1971.
  7. D. E. Knuth. The Art of Computer Programming, Volume 3: Sorting and Searching. Addison-Wesley Publishing Company, Redwood City, CA, USA, 2nd edition, 1998.
  8. D. Spuler. Optimal search trees using two-way key comparisons. Acta Informatica, 31(8):729–740, 1994.
  9. D. A. Spuler. Optimal search trees using two-way key comparisons. PhD thesis, James Cook University, 1994.
  10. F. Frances Yao. Efficient dynamic programming using quadrangle inequalities. In Raymond E. Miller, Seymour Ginsburg, Walter A. Burkhard, and Richard J. Lipton, editors, Proceedings of the 12th Annual ACM Symposium on Theory of Computing, April 28-30, 1980, Los Angeles, California, USA, pages 429–435. ACM, 1980.

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.

Collections

Sign up for free to add this paper to one or more collections.