Dynamic Set Intersection
Abstract
Consider the problem of maintaining a family of dynamic sets subject to insertions, deletions, and set-intersection reporting queries: given , report every member of in any order. We show that in the word RAM model, where is the word size, given a cap on the maximum size of any set, we can support set intersection queries in expected time, and updates in expected time. Using this algorithm we can list all triangles of a graph in expected time, where and is the arboricity of . This improves a 30-year old triangle enumeration algorithm of Chiba and Nishizeki running in time. We provide an incremental data structure on that supports intersection {\em witness} queries, where we only need to find {\em one} . Both queries and insertions take expected time, where . Finally, we provide time/space tradeoffs for the fully dynamic set intersection reporting problem. Using words of space, each update costs expected time, each reporting query costs expected time where is the size of the output, and each witness query costs expected time.
Cite
@article{arxiv.1407.6755,
title = {Dynamic Set Intersection},
author = {Tsvi Kopelowitz and Seth Pettie and Ely Porat},
journal= {arXiv preprint arXiv:1407.6755},
year = {2015}
}
Comments
Accepted to WADS 2015