A tight threshold bound for search trees with 2-way comparisons

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. In 2002, Anderson, Kannan, Karloff and Ladner studied this in terms of the ratio between the maximum and total key weight, and defined two threshold values: λ − is the largest ratio that forces the less-than test, and λ + is the smallest ratio that admits the equal-to test. They determined that λ − = 1 4 , but for the higher threshold they only showed that λ + ∈ [ 3 7 , 4 9 ] . We give the tight bound for the higher threshold, by proving that in fact λ + = 3 7 .

Authors

Institutions

Publication Details

Journal
Theoretical Computer Science
Published
2025-10-16
DOI
https://doi.org/10.1016/j.tcs.2025.115589
Primary Topic
Algorithms and Data Compression
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A tight threshold bound for search trees with 2-way comparisons

Marek Chrobák, Sunny Atalig
Theoretical Computer Science
Algorithms and Data Compression
article

A tight threshold bound for search trees with 2-way comparisons

Marek Chrobák, Sunny Atalig
article en

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. In 2002, Anderson, Kannan, Karloff and Ladner studied this in terms of the ratio between the maximum and total key weight, and defined two threshold values: λ − is the largest ratio that forces the less-than test, and λ + is the smallest ratio that admits the equal-to test. They determined that λ − = 1 4 , but for the higher threshold they only showed that λ + ∈ [ 3 7 , 4 9 ] . We give the tight bound for the higher threshold, by proving that in fact λ + = 3 7 .

Theoretical Computer ScienceVol. 1058
University of California, Riverside (US)
Openalex Percentile: Top 84%
Algorithms and Data Compression
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.