arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1103.2409cs.DBcs.DS
收藏

内存中的快速交集

Fast Set Intersection in Memory

Bolin Ding, Arnd Christian König

摘要:

集合求交是信息检索和数据库系统中的一种基本运算。本文引入线性空间数据结构来表示集合,使得它们的交集可以以最坏情况下有效的方式计算。一般来说,给定k个(预处理)集合,总共有n个元素,我们将展示如何在预期时间O(n/sqrt(w)+kr)内计算它们的交集,其中r是交集大小,w是机器字中的位数。此外,我们引入了一个非常简单的版本,该算法具有较弱的渐近保证,但在实践中表现更好;这两种算法在合成和真实数据集和工作负载的执行时间方面都优于最先进的技术。

英文摘要:

Set intersection is a fundamental operation in information retrieval and database systems. This paper introduces linear space data structures to represent sets such that their intersection can be computed in a worst-case efficient way. In general, given k (preprocessed) sets, with totally n elements, we will show how to compute their intersection in expected time O(n/sqrt(w)+kr), where r is the intersection size and w is the number of bits in a machine-word. In addition,we introduce a very simple version of this algorithm that has weaker asymptotic guarantees but performs even better in practice; both algorithms outperform the state of the art techniques in terms of execution time for both synthetic and real data sets and workloads.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑