arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.19378cs.DB
收藏

使用 Swipe 进行数据清洗

Cleaning data with Swipe

Toon Boeckling, Antoon Bronselaer

AI总结:

针对函数依赖下的最优数据修复NP难问题,提出仅含单路径Chase树的Swipe算法,结合属性划分与优先级修复,在保证修复质量的同时大幅提升速度且扩展性良好。

摘要:

函数依赖的修复问题是指需要修改输入数据库,使其满足所有函数依赖,且与原始数据库的差异最小的问题。此时的输出数据库被称为最优修复。如果允许的修改方式是值更新,那么寻找最优修复是NP难问题。\n一种寻找最优修复近似解的经典方法是构建Chase树(追踪树),其中每个内部节点解决一个函数依赖的违反问题,叶节点代表修复结果。该方法的一个关键特性是,控制Chase树的分支因子可以调节修复质量与计算效率之间的权衡。\n本文探索了该思路的一种极端变体:Chase树仅包含一条路径。为构建这条路径,我们首先对属性进行划分,使得各划分类可以按顺序修复。每个类仅修复一次,通过固定依赖的修复顺序来实现,这一原理被称为优先级修复,我们还提供了一种确定优先级的简单启发式方法。\n属性划分与优先级修复的技术被整合到Swipe算法中。在四个真实数据集上的实证研究表明,Swipe比基于多序列Chase的方法快1到3个数量级,而修复质量相当甚至更优。此外,对Swipe算法的可扩展性分析显示,随着元组数量增加,Swipe的可扩展性表现良好。

英文摘要:

The repair problem for functional dependencies is the problem where an input database needs to be modified such that all functional dependencies are satisfied and the difference with the original database is minimal. The output database is then called an optimal repair. If the allowed modifications are value updates, finding an optimal repair is NP-hard. A well-known approach to find approximations of optimal repairs builds a Chase tree in which each internal node resolves violations of one functional dependency and leaf nodes represent repairs. A key property of this approach is that controlling the branching factor of the Chase tree allows to control the trade-off between repair quality and computational efficiency. In this paper, we explore an extreme variant of this idea in which the Chase tree has only one path. To construct this path, we first create a partition of attributes such that classes can be repaired sequentially. We repair each class only once and do so by fixing the order in which dependencies are repaired. This principle is called priority repairing and we provide a simple heuristic to determine priority. The techniques for attribute partitioning and priority repair are combined in the Swipe algorithm. An empirical study on four real-life data sets shows that Swipe is one to three orders of magnitude faster than multi-sequence Chase-based approaches, whereas the quality of repairs is comparable or better. Moreover, a scalability analysis of the Swipe algorithm shows that Swipe scales well in terms of an increasing number of tuples.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑