【24h】

Counting inversions in lists

机译:计算列表中的反转

获取原文

摘要

In a recent paper, Ajtai et al. [1] give a streaming algorithm to count the number of inversions in a stream Lε[m]n using two passes and O−1-√n 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−3 log2 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.
机译:在最近的一篇论文中,Ajtai等人。 [1]给出了一种流算法,它使用两次遍历和来计算流 L ε[ m ] n 中的反转次数。 O (ε −1 -√ n log n (log m + log n ))空间。在这里,我们针对使用单次通过和 O (ε -3 log 2 n 记录 m )空间。我们的算法基于估计流中已经看到的项的分位数,并使用该分位数来估计涉及每个元素的反演次数。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号