首页> 外文会议>IEEE international conference on data engineering >Design and evaluation of algorithms to compute the transitive closure of a database relation
【24h】

Design and evaluation of algorithms to compute the transitive closure of a database relation

机译:设计和评估用于计算数据库关系的传递闭合的算法

获取原文

摘要

Recursive query evaluation is a capability of deductively-augmented database systems that conventional database systems do not support well, if at all. Many recursive queries involve computation of the transitive closure of a relation. Previously published algorithms for transitive closure are iterative in nature, performing repeated joins, unions, and differences until convergence is obtained. In this paper, we present an adaptation of Warren's algorithm for computing the transitive closure of a relation. Warren's algorithm was originally designed for a bit matrix representation of a binary relation; we have adapted it for use with a binary relation represented as a set of tuples, as in a relational database management system. This adapted algorithm computes the transitive closure in two passes over the relation. We analyze the performance of this algorithm, and compare it to the performance of two algorithms based on relational algebra: an iterative algorithm, and an improved version of the iterative algorithm that eliminates unnecessary I/O at the expense of more computation. We evaluate the performance of the algorithms for different source relation sizes, available memory sizes, join selectivities, and maximum path length. Our results show that no algorithm has uniformly superior performance; the adaptation of Warren's algorithm is superior when the source and result relations are not too much larger than main memory. We conclude that in future systems with large main memory, Warren's algorithm generally performs best, and thus should be implemented with the option of switching to an iterative algorithm when the source or result sizes are very large.
机译:递归查询评估是演绎增强型数据库系统的一项功能,而传统数据库系统根本无法很好地支持这种功能。许多递归查询涉及对关系的传递闭合的计算。先前发布的用于传递闭包的算法本质上是迭代的,执行重复的连接,并集和差异,直到获得收敛为止。在本文中,我们提出了沃伦算法的一种改编,用于计算关系的传递闭合。 Warren的算法最初是为二进制关系的位矩阵表示而设计的。我们已经对其进行了修改,以与表示为元组的二进制关系一起使用,例如在关系数据库管理系统中。这种经过调整的算法在关系的两遍中计算传递闭包。我们分析了该算法的性能,并将其与基于关系代数的两种算法的性能进行了比较:一种迭代算法,以及一种迭代算法的改进版本,该迭代算法消除了不必要的I / O,但是却消耗了更多的计算量。我们针对不同的源关系大小,可用内存大小,连接选择性和最大路径长度评估算法的性能。我们的结果表明,没有一种算法具有统一的优越性能。当源和结果的关系不比主存储器大很多时,沃伦算法的适应性就更好。我们得出结论,在未来具有大主内存的系统中,沃伦算法通常表现最佳,因此,当源或结果大小很大时,应选择切换为迭代算法来实现。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号