9中值和顺序统计讲述
Medians and order statistics (中值和顺序统计) 主要内容 Minimum and maximum最大值/最小值 Order Statistics: The i th order statistic of a set of n elements is the i th smallest element Medians The “halfway point” of the set. We use “the median” to refer to the lower median. Select the ith smallest of n elements (the element with rank i) Minimum: i = 1 Maximum: i = n Median: How fast can we solve the problem? O(n) for min or max O(n lg n) by sorting for general i O(n+i lgn ) with heaps Next we will see how to do it in O(n) time Simultaneous minimum and maximum Find both the minimum and maximum in some application
原创力文档

文档评论(0)