Table of Contents
Fetching ...

A nearly optimal randomized algorithm for explorable heap selection

Sander Borst, Daniel Dadush, Sophie Huiberts, Danish Kashaev

TL;DR

This work tackles explorable heap selection, the online problem of finding the $n$th smallest value in a heap-ordered infinite binary tree with travel-cost equal to edge traversals. It introduces a randomized algorithm that runs in $O(n\log(n)^3)$ time while using $O(\log n)$ space, achieving near-optimal performance under the given memory constraint. The approach deploys three subroutines (DFS, Roots, GoodValues) to bound and progressively discover all $n$ good nodes via a doubling-into-n strategy and random-root exploration, with a careful analysis showing expected time improvements over prior randomized approaches. A matching lower bound of $\Omega\bigl(n\log_s(n)\bigr)$ is established for any algorithm operating with $s$ memory, underscoring the near-optimality of the proposed method for space-bounded settings. The results have implications for memory-efficient node selection in branch-and-bound and related online exploration problems.

Abstract

Explorable heap selection is the problem of selecting the $n$th smallest value in a binary heap. The key values can only be accessed by traversing through the underlying infinite binary tree, and the complexity of the algorithm is measured by the total distance traveled in the tree (each edge has unit cost). This problem was originally proposed as a model to study search strategies for the branch-and-bound algorithm with storage restrictions by Karp, Saks and Widgerson (FOCS '86), who gave deterministic and randomized $n\cdot \exp(O(\sqrt{\log{n}}))$ time algorithms using $O(\log(n)^{2.5})$ and $O(\sqrt{\log n})$ space respectively. We present a new randomized algorithm with running time $O(n\log(n)^3)$ using $O(\log n)$ space, substantially improving the previous best randomized running time at the expense of slightly increased space usage. We also show an $Ω(\log(n)n/\log(\log(n)))$ for any algorithm that solves the problem in the same amount of space, indicating that our algorithm is nearly optimal.

A nearly optimal randomized algorithm for explorable heap selection

TL;DR

This work tackles explorable heap selection, the online problem of finding the th smallest value in a heap-ordered infinite binary tree with travel-cost equal to edge traversals. It introduces a randomized algorithm that runs in time while using space, achieving near-optimal performance under the given memory constraint. The approach deploys three subroutines (DFS, Roots, GoodValues) to bound and progressively discover all good nodes via a doubling-into-n strategy and random-root exploration, with a careful analysis showing expected time improvements over prior randomized approaches. A matching lower bound of is established for any algorithm operating with memory, underscoring the near-optimality of the proposed method for space-bounded settings. The results have implications for memory-efficient node selection in branch-and-bound and related online exploration problems.

Abstract

Explorable heap selection is the problem of selecting the th smallest value in a binary heap. The key values can only be accessed by traversing through the underlying infinite binary tree, and the complexity of the algorithm is measured by the total distance traveled in the tree (each edge has unit cost). This problem was originally proposed as a model to study search strategies for the branch-and-bound algorithm with storage restrictions by Karp, Saks and Widgerson (FOCS '86), who gave deterministic and randomized time algorithms using and space respectively. We present a new randomized algorithm with running time using space, substantially improving the previous best randomized running time at the expense of slightly increased space usage. We also show an for any algorithm that solves the problem in the same amount of space, indicating that our algorithm is nearly optimal.
Paper Structure (15 sections, 11 theorems, 26 equations, 3 figures, 2 algorithms)

This paper contains 15 sections, 11 theorems, 26 equations, 3 figures, 2 algorithms.

Key Result

Theorem 1

There exists a randomized algorithm that solves the explorable heap selection problem, with expected running time $O(n\log(n)^3)$ and $O(\log(n))$ space.

Figures (3)

  • Figure 1: An illustration of $R(T, \mathcal{L}_0)$ with $\mathcal{L}_0 = 4$. The number above each vertex is its value, the blue nodes are $R(T,\mathcal{L}_0)$, whereas the subtree above is $T_{\mathcal{L}_0}$.
  • Figure 2: An illustration of the Roots procedure with $\mathcal{L}_0 = 4, \mathcal{L} = 7 \text{ and } \mathcal{U} = 10$. Only two active roots remain, and are both colored in blue. The other roots are considered killed since all the good values have been found in their subtrees.
  • Figure :

Theorems & Definitions (20)

  • Theorem 1
  • Theorem 2
  • proof
  • Lemma 1
  • proof
  • Lemma 2
  • proof
  • Lemma 3
  • proof
  • Theorem 3
  • ...and 10 more