阅读背景:

是否有可能计算出比O(n log n)更好的中位数?

来源:互联网 

I know that it is possible to calculate the mean of a list of numbers in O(n). But what about the median? Is there any better algorithm than sort (O(n log n)) and lookup middle element (or mean of two middle elements if an even number of items in list)?I know that it is possible to calculate the mea




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: