范围中位数
Range Medians
摘要:
我们研究了一个推广的经典中位数查找问题的批量查询的情况下:给定一个数组的未排序的$n$项目和$k$(不一定不相交)的数组中的间隔,目标是确定中位数在{ \em每个}的数组中的间隔。我们给出了一个算法,使用$O(n\log n + k\log k \log n)$比较,并显示了这个问题的$Ω(n\log k)$比较的下限。这是$k=O(n/\log n)$的最佳选择。
英文摘要:
We study a generalization of the classical median finding problem to batched query case: given an array of unsorted $n$ items and $k$ (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 $O(n\log n + k\log k \log n)$ comparisons and show a lower bound of $Ω(n\log k)$ comparisons for this problem. This is optimal for $k=O(n/\log n)$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。