修复度量空间上具有重合约束的数据库
Repairing Databases over Metric Spaces with Coincidence Constraints
AI总结:
研究度量空间中违反重合约束的不一致数据库修复问题,证明一般度量空间下APX-hard,提出树度量最优算法及一般度量的对数比近似算法,并分析了限制更改变体的复杂性。
摘要:
数据集通常包含自然存在于度量空间中的值:数字、字符串、地理位置、欧几里得空间中的机器学习嵌入等。我们研究修复违反完整性约束的不一致数据库的计算复杂性,其中数据库值属于一个底层的度量空间。目标是更新数据库值以保持一致性,同时最小化原始值与修复值之间的总距离。我们考虑所谓的重合约束(coincidence constraints),它包括键约束、包含约束、外键约束,以及通常对固定属性集中不同标签(属性)重合于单一值的单元格数量之间关系的任何限制。我们首先证明该问题对于一般度量空间是 APX-hard 的。然后,我们提出了一种针对树度量(tree metrics)最优解决问题的算法,树度量推广了线度量(即修复值为数字的情况)和离散度量(即我们仅计算更改值的数量的情况)。结合我们针对树度量的算法和关于概率树嵌入的经典结果,我们为一般度量设计了一种(高概率的)对数比近似算法。我们还研究了限制每个单独值允许更改的问题变体。在此变体中,对于一般度量判定是否存在任何合法修复已是 NP-complete 的,并且我们针对线度量情况提出了一种多项式时间修复算法。
英文摘要:
Datasets often contain values that naturally reside in a metric space: numbers, strings, geographical locations, machine-learned embeddings in a Euclidean space, and so on. We study the computational complexity of repairing inconsistent databases that violate integrity constraints, where the database values belong to an underlying metric space. The goal is to update the database values to retain consistency while minimizing the total distance between the original values and the repaired ones. We consider what we refer to as \emph{coincidence constraints}, which include key constraints, inclusion, foreign keys, and generally any restriction on the relationship between the numbers of cells of different labels (attributes) coinciding in a single value, for a fixed attribute set. We begin by showing that the problem is APX-hard for general metric spaces. We then present an algorithm solving the problem optimally for tree metrics, which generalize both the line metric (i.e., where repaired values are numbers) and the discrete metric (i.e., where we simply count the number of changed values). Combining our algorithm for tree metrics and a classic result on probabilistic tree embeddings, we design a (high probability) logarithmic-ratio approximation for general metrics. We also study the variant of the problem where each individual value's allowed change is limited. In this variant, it is already NP-complete to decide the existence of any legal repair for a general metric, and we present a polynomial-time repairing algorithm for the case of a line metric.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。