Lune

ICML2022Top-tier venue

Learning Augmented Binary Search Trees

Honghao Lin, Tian Luo, David P. Woodruff

Abstract

A treap is a classic randomized binary search tree data structure that is easy to implement and supports O (log n ) expected time access. However, classic treaps do not take advantage of the input distribution or patterns in the input. Given recent advances in algorithms with predictions, we propose pairing treaps with machine advice to form a learning-augmented treap. We are the first to propose a learning-augmented data structure that supports binary search tree operations such as range-query and successor functionalities. With the assumption that we have access to advice from a frequency estimation oracle, we assign learned priorities to the nodes to better improve the treap’s structure. We theoretically analyze the learning-augmented treap’s performance under various input distributions and show that under those circumstances, our learning-augmented treap has stronger guarantees than classic treaps and other classic tree-based data structures. Fur-ther, we experimentally evaluate our learned treap on synthetic datasets and demonstrate a performance advantage over other search tree data structures. We also present experiments on real world datasets with known frequency estimation oracles and show improvements as well.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

26 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Learning-Augmented Priority Queues cites Advice Querying under Budget Constraint for Online Algorithms
  • Putting the "Learning" into Learning-Augmented Algorithms for Frequency Estimation cites Learning-Augmented Data Stream Algorithms
  • Advice Querying under Budget Constraint for Online Algorithms cites Putting the "Learning" into Learning-Augmented Algorithms for Frequency Estimation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers26

  1. Sorting with PredictionsXingjian Bai, Christian CoesterNeurIPS 2023 · 29 citations
  2. Binary Search with Distributional PredictionsMichael Dinitz, Sungjin Im, Thomas Lavastida, Benjamin Moseley et al.NeurIPS 2024 · 20 citations
  3. Advice Querying under Budget Constraint for Online AlgorithmsZiyad Benomar, Vianney PerchetNeurIPS 2023 · 17 citations
  4. Learning-Augmented Priority QueuesZiyad Benomar, Christian CoesterNeurIPS 2024 · 13 citations
  5. CAMAL: Optimizing LSM-trees via Active LearningWeiping Yu, Siqiang Luo, Zihao Yu, Gao CongSIGMOD 2025 · 11 citations

Builds on2

  1. Learning-Augmented Data Stream AlgorithmsTanqiu Jiang, Yi Li, Honghao Lin, Yisong Ruan et al.ICLR 2020 · 53 citations
  2. Putting the "Learning" into Learning-Augmented Algorithms for Frequency EstimationElbert Du, Franklyn Wang, Michael MitzenmacherICML 2021 · 30 citations

Related papers

  1. On the Power of Learning-Augmented Search TreesJingbang Chen, Xinyuan Cao, Alicia Stepin, Li ChenICML 2025
  2. Learning-Augmented Search Data StructuresChunkai Fu, Brandon G. Nguyen, Jung Hoon Seo, Ryan S. Zesch et al.ICLR 2025 · 1 citation
  3. Improved Frequency Estimation Algorithms with and without PredictionsAnders Aamand, Justin Y. Chen, Huy Lê Nguyen, Sandeep Silwal et al.NeurIPS 2023 · 16 citations
  4. Robust Learning-Augmented DictionariesAli Zeynali, Shahin Kamali, Mohammad HajiesmailiICML 2024 · 6 citations
  5. Why Are Learned Indexes So Effective?Paolo Ferragina, Fabrizio Lillo, Giorgio VinciguerraICML 2020 · 63 citations
Dusk over the sea between two cliffs drawn in fine vertical lines