English

The Complexity of Computing a Cardinality Repair for Functional Dependencies

Databases 2017-08-31 v1

Abstract

For a relation that violates a set of functional dependencies, we consider the task of finding a maximum number of pairwise-consistent tuples, or what is known as a "cardinality repair." We present a polynomial-time algorithm that, for certain fixed relation schemas (with functional dependencies), computes a cardinality repair. Moreover, we prove that on any of the schemas not covered by the algorithm, finding a cardinality repair is, in fact, an NP-hard problem. In particular, we establish a dichotomy in the complexity of computing a cardinality repair, and we present an efficient algorithm to determine whether a given schema belongs to the positive side or the negative side of the dichotomy.

Keywords

Cite

@article{arxiv.1708.09140,
  title  = {The Complexity of Computing a Cardinality Repair for Functional Dependencies},
  author = {Ester Livshits and Benny Kimelfeld},
  journal= {arXiv preprint arXiv:1708.09140},
  year   = {2017}
}
R2 v1 2026-06-22T21:27:36.094Z