English

Pairing heaps: the forward variant

Data Structures and Algorithms 2018-06-22 v2

Abstract

The pairing heap is a classical heap data structure introduced in 1986 by Fredman, Sedgewick, Sleator, and Tarjan. It is remarkable both for its simplicity and for its excellent performance in practice. The "magic" of pairing heaps lies in the restructuring that happens after the deletion of the smallest item. The resulting collection of trees is consolidated in two rounds: a left-to-right pairing round, followed by a right-to-left accumulation round. Fredman et al. showed, via an elegant correspondence to splay trees, that in a pairing heap of size nn all operations take O(logn)O(\log{n}) amortized time. They also proposed an arguably more natural variant, where both pairing and accumulation are performed in a combined left-to-right round (called the forward variant of pairing heaps). The analogy to splaying breaks down in this case, and the analysis of the forward variant was left open. In this paper we show that inserting an item and deleting the minimum in a forward-variant pairing heap both take amortized time O(logn4logn)O(\log{n} \cdot 4^{\sqrt{\log{n}}} ). This is the first improvement over the O(n)O(\sqrt{n}) bound showed by Fredman et al. three decades ago. Our analysis relies on a new potential function that tracks parent-child rank-differences in the heap.

Cite

@article{arxiv.1709.01152,
  title  = {Pairing heaps: the forward variant},
  author = {Dani Dorfman and Haim Kaplan and László Kozma and Uri Zwick},
  journal= {arXiv preprint arXiv:1709.01152},
  year   = {2018}
}

Comments

small fixes

R2 v1 2026-06-22T21:32:55.039Z