English

Top-Down Skiplists

Data Structures and Algorithms 2014-07-31 v1

Abstract

We describe todolists (top-down skiplists), a variant of skiplists (Pugh 1990) that can execute searches using at most log2εn+O(1)\log_{2-\varepsilon} n + O(1) binary comparisons per search and that have amortized update time O(ε1logn)O(\varepsilon^{-1}\log n). A variant of todolists, called working-todolists, can execute a search for any element xx using log2εw(x)+o(logw(x))\log_{2-\varepsilon} w(x) + o(\log w(x)) binary comparisons and have amortized search time O(ε1logw(w))O(\varepsilon^{-1}\log w(w)). Here, w(x)w(x) is the "working-set number" of xx. No previous data structure is known to achieve a bound better than 4log2w(x)4\log_2 w(x) comparisons. We show through experiments that, if implemented carefully, todolists are comparable to other common dictionary implementations in terms of insertion times and outperform them in terms of search times.

Keywords

Cite

@article{arxiv.1407.7917,
  title  = {Top-Down Skiplists},
  author = {Luis Barba and Pat Morin},
  journal= {arXiv preprint arXiv:1407.7917},
  year   = {2014}
}

Comments

18 pages, 5 figures

R2 v1 2026-06-22T05:16:17.483Z