English

Fast Leaf-to-Ancestor Minimum Query in the Oracle Model

Data Structures and Algorithms 2026-05-28 v2 Computational Complexity

Abstract

We study leaf-to-ancestor path-minimum queries on a rooted, weighted tree in the oracle model, where the only allowed value operation is a comparison oracle on edge (or node) weights. We give a static data structure that, after O(n log h) preprocessing time, space, and oracle calls (where n is the number of nodes and h is the tree height), answers any leaf-to-ancestor query in O(1)O(1) worst-case time with zero oracle calls at query time. The method combines (I) an edge-to-node weight conversion with a deterministic tie-break to obtain a total order; (II) ladder (longest-path) decomposition; (III) binary lifting; and (IV) sparse-table RMQ built over ladder arrays, storing indices selected via the oracle during preprocessing. We also show that the preprocessing oracle-comparison bound is tight in the deterministic comparison model.

Keywords

Cite

@article{arxiv.2605.14112,
  title  = {Fast Leaf-to-Ancestor Minimum Query in the Oracle Model},
  author = {Aleksey Upirvitskiy and Aleksandr Levin},
  journal= {arXiv preprint arXiv:2605.14112},
  year   = {2026}
}
R2 v1 2026-07-22T07:11:10.276Z