Lune

FOCS2020Top-tier venue

Lazy Search Trees

Bryce Sandlund, Sebastian Wild

Abstract

We introduce the lazy search tree data structure. The lazy search tree is a comparisonbased data structure on the pointer machine that supports order-based operations such as rank, select, membership, predecessor, successor, minimum, and maximum while providing dynamic operations insert, delete, change-key, split, and merge. We analyze the performance of our data structure based on a partition of current elements into a set of gaps ∆ i based on rank. A query falls into a particular gap and splits the gap into two new gaps at a rank r associated with the query operation. If we define B = ∑ i ∆ i log 2 (n ∆ i ), our performance over a sequence of n insertions and q distinct queries is O(B + min(n log log n, n log q)). We show B is a lower bound.

Effectively, we reduce the insertion time of binary search trees from Θ(log n) to O(min(log(n ∆ i ) + log log ∆ i , log q)), where ∆ i is the gap in which the inserted element falls. Over a sequence of n insertions and q queries, a time bound of O(n log q + q log n) holds; better bounds are possible when queries are non-uniformly distributed. As an extreme case of non-uniformity, if all queries are for the minimum element, the lazy search tree performs as a priority queue with O(log log n) time insert and decrease-key operations. The same data structure supports queries for any rank, interpolating between binary search trees and efficient priority queues.

Lazy search trees can be implemented to operate mostly on arrays, requiring only O(min(q, n)) pointers, suggesting smaller memory footprint, better constant factors, and better cache performance compared to many existing efficient priority queues or binary search trees. Via direct reduction, our data structure also supports the efficient access theorems of the splay tree, providing a powerful data structure for non-uniform element access, both when the number of accesses is small and large.

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.

1 top-tier paper has 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

Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Selectable Heaps and Optimal Lazy Search TreesBryce Sandlund, Lingyi ZhangSODA 2022 · 5 citations

Builds on1

  1. Competitive Online Search Trees on TreesProsenjit Bose, Jean Cardinal, John Iacono, Grigorios Koumoutsos et al.SODA 2020 · 13 citations

Related papers

  1. Non-blocking interpolation search trees with doubly-logarithmic running timeTrevor Brown, Aleksandar Prokopec, Dan AlistarhPPoPP 2020 · 29 citations
  2. Lower bound for succinct range minimum queryMingmou Liu, Huacheng YuSTOC 2020 · 7 citations
  3. Learning Augmented Binary Search TreesHonghao Lin, Tian Luo, David P. WoodruffICML 2022 · 46 citations
  4. Dynamic "Succincter"Tianxiao Li, Jingxun Liang, Huacheng Yu, Renfei ZhouFOCS 2023 · 3 citations
  5. Succinct Dynamic Rank/Select: Bypassing the Tree-Structure BottleneckWilliam Kuszmaul, Jingxun Liang, Renfei ZhouSODA 2026 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines