English

Selection on $X_1 + X_1 + \cdots X_m$ via Cartesian product tree

Data Structures and Algorithms 2020-08-18 v1

Abstract

Selection on the Cartesian product is a classic problem in computer science. Recently, an optimal algorithm for selection on X+YX+Y, based on soft heaps, was introduced. By combining this approach with layer-ordered heaps (LOHs), an algorithm using a balanced binary tree of X+YX+Y selections was proposed to perform kk-selection on X1+X2++XmX_1+X_2+\cdots+X_m in o(nm+km)o(n\cdot m + k\cdot m), where XiX_i have length nn. Here, that o(nm+km)o(n\cdot m + k\cdot m) algorithm is combined with a novel, optimal LOH-based algorithm for selection on X+YX+Y (without a soft heap). Performance of algorithms for selection on X1+X2++XmX_1+X_2+\cdots+X_m are compared empirically, demonstrating the benefit of the algorithm proposed here.

Keywords

Cite

@article{arxiv.2008.07023,
  title  = {Selection on $X_1 + X_1 + \cdots X_m$ via Cartesian product tree},
  author = {Patrick Kreitzberg and Kyle Lucke and Jake Pennington and Oliver Serang},
  journal= {arXiv preprint arXiv:2008.07023},
  year   = {2020}
}
R2 v1 2026-06-23T17:53:36.186Z