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

动态集合交集

Dynamic Set Intersection

Tsvi Kopelowitz, Seth Pettie, Ely Porat

摘要:

考虑维护动态集合的家族$F$的问题,该家族受到插入、删除和集合交集报告查询的影响:给定$S,S'\in F$,以任何顺序报告$S\cap S'$的每个成员。我们表明,在字RAM模型中,$w$是字的大小,给定一个上限$d$的最大大小的任何一组,我们可以支持集交集查询在$O(\frac{d}{w/\log^2 w})$预期的时间,并在$O(\log w)$预期的时间更新。利用该算法可以在$O(m+\frac{mα}{w/\log^2 w} +t)$期望时间内列出图$G=(V,E)$的所有$t$三角形,其中$m=|E|$和$α$是$G$的荫度.这改进了在$O(m α)$时间内运行的Chiba和Nishizeki的30年历史的三角形枚举算法。我们在$F$上提供了一个增量数据结构,它支持交叉{ \em见证}查询,在这里我们只需要找到{ \em one} $e\in S\cap S'$。查询和插入都需要$O\paren{\sqrt \frac{N}{w/\log^2 w}}$预期时间,其中$N=\sum_{S\in F} |S|$。最后,我们提供了时间/空间权衡的全动态集合交集报告问题。使用$M$空间字,每个更新花费$O(\sqrt {M \log N})$预期时间,每个报告查询花费$O(\frac{N\sqrt{\log N}}{\sqrt M}\sqrt{op+1})$预期时间,其中$op$是输出的大小,并且每个见证查询花费$O(\frac{N\sqrt{\log N}}{\sqrt M} + \log N)$预期时间。

英文摘要:

Consider the problem of maintaining a family $F$ of dynamic sets subject to insertions, deletions, and set-intersection reporting queries: given $S,S'\in F$, report every member of $S\cap S'$ in any order. We show that in the word RAM model, where $w$ is the word size, given a cap $d$ on the maximum size of any set, we can support set intersection queries in $O(\frac{d}{w/\log^2 w})$ expected time, and updates in $O(\log w)$ expected time. Using this algorithm we can list all $t$ triangles of a graph $G=(V,E)$ in $O(m+\frac{mα}{w/\log^2 w} +t)$ expected time, where $m=|E|$ and $α$ is the arboricity of $G$. This improves a 30-year old triangle enumeration algorithm of Chiba and Nishizeki running in $O(m α)$ time. We provide an incremental data structure on $F$ that supports intersection {\em witness} queries, where we only need to find {\em one} $e\in S\cap S'$. Both queries and insertions take $O\paren{\sqrt \frac{N}{w/\log^2 w}}$ expected time, where $N=\sum_{S\in F} |S|$. Finally, we provide time/space tradeoffs for the fully dynamic set intersection reporting problem. Using $M$ words of space, each update costs $O(\sqrt {M \log N})$ expected time, each reporting query costs $O(\frac{N\sqrt{\log N}}{\sqrt M}\sqrt{op+1})$ expected time where $op$ is the size of the output, and each witness query costs $O(\frac{N\sqrt{\log N}}{\sqrt M} + \log N)$ expected time.

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

↑