计算机科学 > 数据结构与算法
[提交于 2008年7月2日]
标题:Range Medians
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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 $\Omega(n\log k)$ comparisons for this problem. This is optimal for $k=O(n/\log n)$.
提交历史
来自:Sariel Har-Peled[v1] 2008年7月2日 星期三 00:00:00 UTC