English

A Selectable Sloppy Heap

Data Structures and Algorithms 2017-08-11 v2 Combinatorics

Abstract

We study the selection problem, namely that of computing the iith order statistic of nn given elements. Here we offer a data structure called \emph{selectable sloppy heap} handling a dynamic version in which upon request: (i)~a new element is inserted or (ii)~an element of a prescribed quantile group is deleted from the data structure. Each operation is executed in (ideal!) constant time---and is thus independent of nn (the number of elements stored in the data structure)---provided that the number of quantile groups is fixed. This is the first result of this kind accommodating both insertion and deletion in constant time. As such, our data structure outperforms the soft heap data structure of Chazelle (which only offers constant amortized complexity for a fixed error rate 0<ε1/20<\varepsilon \leq 1/2) in applications such as dynamic percentile maintenance. The design demonstrates how slowing down a certain computation can speed up the data structure.

Keywords

Cite

@article{arxiv.1607.07673,
  title  = {A Selectable Sloppy Heap},
  author = {Adrian Dumitrescu},
  journal= {arXiv preprint arXiv:1607.07673},
  year   = {2017}
}

Comments

13 pages

R2 v1 2026-06-22T15:04:26.858Z