Abstract

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

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.