Learning Augmented Binary Search Trees

06/24/2022
by   Honghao Lin, et al.
0

A treap is a classic randomized binary search tree data structure that is easy to implement and supports O(logn) 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. Further, 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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/24/2018

Lower Bounds for Oblivious Data Structures

An oblivious data structure is a data structure where the memory access ...
research
11/16/2022

On the Power of Learning-Augmented BSTs

We present the first Learning-Augmented Binary Search Tree(BST) that att...
research
03/01/2019

Superseding traditional indexes by orchestrating learning and geometry

We design the first learned index that solves the dictionary problem wit...
research
07/17/2023

LearnedSort as a learning-augmented SampleSort: Analysis and Parallelization

This work analyzes and parallelizes LearnedSort, the novel algorithm tha...
research
03/08/2021

The RLR-Tree: A Reinforcement Learning Based R-Tree for Spatial Data

Learned indices have been proposed to replace classic index structures l...
research
08/27/2019

Partial Sums on the Ultra-Wide Word RAM

We consider the classic partial sums problem on the ultra-wide word RAM ...

Please sign up or login with your details

Forgot password? Click here to reset