Fast evaluation of union-intersection expressions
Abstract
We show how to represent sets in a linear space data structure such that expressions involving unions and intersections of sets can be computed in a worst-case efficient way. This problem has applications in e.g. information retrieval and database systems. We mainly consider the RAM model of computation, and sets of machine words, but also state our results in the I/O model. On a RAM with word size , a special case of our result is that the intersection of (preprocessed) sets, containing elements in total, can be computed in expected time , where is the number of elements in the intersection. If the first of the two terms dominates, this is a factor faster than the standard solution of merging sorted lists. We show a cell probe lower bound of time , meaning that our upper bound is nearly optimal for small . Our algorithm uses a novel combination of approximate set representations and word-level parallelism.
Cite
@article{arxiv.0708.3259,
title = {Fast evaluation of union-intersection expressions},
author = {Philip Bille and Anna Pagh and Rasmus Pagh},
journal= {arXiv preprint arXiv:0708.3259},
year = {2007}
}