Structure and Complexity of Bag Consistency

12/22/2020
by   Albert Atserias, et al.
0

Since the early days of relational databases, it was realized that acyclic hypergraphs give rise to database schemas with desirable structural and algorithmic properties. In a by-now classical paper, Beeri, Fagin, Maier, and Yannakakis established several different equivalent characterizations of acyclicity; in particular, they showed that the sets of attributes of a schema form an acyclic hypergraph if and only if the local-to-global consistency property for relations over that schema holds, which means that every collection of pairwise consistent relations over the schema is globally consistent. Even though real-life databases consist of bags (multisets), there has not been a study of the interplay between local consistency and global consistency for bags. We embark on such a study here and we first show that the sets of attributes of a schema form an acyclic hypergraph if and only if the local-to global consistency property for bags over that schema holds. After this, we explore algorithmic aspects of global consistency for bags by analyzing the computational complexity of the global consistency problem for bags: given a collection of bags, are these bags globally consistent? We show that this problem is in NP, even when the schema is part of the input. We then establish the following dichotomy theorem for fixed schemas: if the schema is acyclic, then the global consistency problem for bags is solvable in polynomial time, while if the schema is cyclic, then the global consistency problem for bags is NP-complete. The latter result contrasts sharply with the state of affairs for relations, where, for each fixed schema, the global consistency problem for relations is solvable in polynomial time.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
09/20/2020

Consistency, Acyclicity, and Positive Semirings

In several different settings, one comes across situations in which the ...
research
12/21/2018

Complexity of Partitioning Hypergraphs

For a given π=(π_0, π_1,..., π_k) ∈{0, 1, *}^k+1, we want to determine w...
research
08/13/2019

On the Complexity of Checking Transactional Consistency

Transactions simplify concurrent programming by enabling computations on...
research
09/05/2021

The local-global property for G-invariant terms

For some Maltsev conditions Σ it is enough to check if a finite algebra ...
research
06/09/2018

Acyclic orientations with degree constraints

In this note we study the complexity of some generalizations of the noti...
research
10/12/2017

On the Containment Problem for Linear Sets

It is well known that the containment problem (as well as the equivalenc...
research
07/13/2021

The Dynamic Complexity of Acyclic Hypergraph Homomorphisms

Finding a homomorphism from some hypergraph 𝒬 (or some relational struct...

Please sign up or login with your details

Forgot password? Click here to reset