English

Fast Order Statistics with Group Inequality Testing

Data Structures and Algorithms 2026-02-05 v2

Abstract

Suppose that a group test operation is available for checking order relations in a set, can this speed up problems like finding the minimum/maximum element, determining the rank of element, and computing order statistics? We consider a one-sided group inequality test to be available, where queries are of the form uQVu \le_Q V or VQuV \le_Q u, and the answer is `yes' if and only if there is some vVv \in V such that uvu \le v or vuv \le u, respectively. We restrict attention to total orders and focus on query-complexity; for min or max finding, we give a Las Vegas algorithm that makes O(log2n)\mathcal{O}(\log^2 n) expected queries. We observe that rank determination can be solved with existing ``defect-counting'' algorithms, but also give a simple Monte Carlo approximation algorithm with expected query complexity O~(1δ2log1ϵ)\tilde{\mathcal{O}}(\frac{1}{\delta^2} \log \frac{1}{\epsilon}), where 1ϵ1-\epsilon is the probability that the algorithm succeeds and we allow a relative error of 1±δ1 \pm \delta for δ>0\delta > 0 in the estimated rank. We then give a Monte Carlo algorithm for approximate selection that has expected query complexity O~(1δ4log1ϵδ2)\tilde{\mathcal{O}}(\frac{1}{\delta^4}\log \frac{1}{\epsilon \delta^2} ); it has probability at least 12\frac{1}{2} to output an element xx, and if so, xx has the desired approximate rank with probability 1ϵ1-\epsilon. Keywords: Order statistics, Group inequality testing, Randomized algorithms

Keywords

Cite

@article{arxiv.2507.12634,
  title  = {Fast Order Statistics with Group Inequality Testing},
  author = {Adiesha Liyanage and Brendan Mumey and Braeden Sopp},
  journal= {arXiv preprint arXiv:2507.12634},
  year   = {2026}
}
R2 v1 2026-07-01T04:05:05.905Z