Fast Order Statistics with Group Inequality Testing

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 u Q V or V Q u, and the answer is `yes' if and only if there is some v ∈ V such that u v or v 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(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δ2 1ε), where 1-ε is the probability that the algorithm succeeds and we allow a relative error of 1 δ for δ > 0 in the estimated rank. We then give a Monte Carlo algorithm for approximate selection that has expected query complexity O(1δ4 1ε δ2 ); it has probability at least 12 to output an element x, and if so, x has the desired approximate rank with probability 1-ε. Keywords: Order statistics, Group inequality testing, Randomized algorithms

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…