
TL;DR
This paper generalizes median finding to multiple intervals, providing an efficient algorithm with near-optimal comparison bounds for batch median queries in unsorted arrays.
Contribution
It introduces a new algorithm for batch median queries with proven comparison complexity bounds, extending classical median finding to multiple intervals.
Findings
Algorithm uses $O(n ext{log}n + k ext{log}k ext{log}n)$ comparisons.
Lower bound of $oldsymbol{ ext{Omega}(n ext{log}k)}$ comparisons established.
Algorithm is optimal for $k=O(n/ ext{log}n)$.
Abstract
We study a generalization of the classical median finding problem to batched query case: given an array of unsorted items and (not necessarily disjoint) intervals in the array, the goal is to determine the median in {\em each} of the intervals in the array. We give an algorithm that uses comparisons and show a lower bound of comparisons for this problem. This is optimal for .
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsFacility Location and Emergency Management · Optimization and Search Problems · Machine Learning and Algorithms
