Using Color Refinement to Boost Enumeration and Counting for Acyclic CQs of Binary Schemas
Abstract
We present an index structure, called the color-index, to boost the evaluation of acyclic conjunctive queries (ACQs) over binary schemas. The color-index is based on the color refinement algorithm, a widely used subroutine for graph isomorphism testing algorithms. Given a database , we use a suitable version of the color refinement algorithm to produce a stable coloring of , an assignment from the active domain of to a set of colors . The main ingredient of the color-index is a particular database whose active domain is and whose size is at most . Using the color-index, we can evaluate any free-connex ACQ over with preprocessing time and constant delay enumeration. Furthermore, we can also count the number of results of over in time . Given that could be much smaller than (even constant-size for some families of databases), the color-index is the first index structure for evaluating free-connex ACQs that allows efficient enumeration and counting with performance that may be strictly smaller than the database size.
Keywords
Cite
@article{arxiv.2405.12358,
title = {Using Color Refinement to Boost Enumeration and Counting for Acyclic CQs of Binary Schemas},
author = {Cristian Riveros and Benjamin Scheidt and Nicole Schweikardt},
journal= {arXiv preprint arXiv:2405.12358},
year = {2026}
}
Comments
Added a note that this paper is superseded by the preprint arXiv:2601.04757 of the same authors, handling arbitrary relational schemas -- not just binary ones