Counting inversions in lists

被引:0
|
作者
Gupta, A [1 ]
Zane, FX [1 ]
机构
[1] Lucent Bell Labs, Murray Hill, NJ 07974 USA
关键词
D O I
暂无
中图分类号
O29 [应用数学];
学科分类号
070104 ;
摘要
In a recent paper, Ajtai et al. [1] give a streaming algorithm to count the number of inversions in a stream L is an element of [m](n) using two passes and O(epsilon(-1) rootn log n(log m+ log n)) space. Here, we present a simple randomized streaming algorithm for the same problem that uses one pass and O(epsilon(-3) log(2)n log m) space. Our algorithm is based on estimating quantiles of the items already seen in the stream, and using that to estimate the number of inversions involving each element.
引用
收藏
页码:253 / 254
页数:2
相关论文
共 50 条