首页> 外文会议>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.我们评估不同源关系大小,可用内存大小,加入选择性和最大路径长度的算法的性能。我们的结果表明,没有算法均匀卓越的性能;当源和结果关系不大于主存储器时,沃伦算法的适应越优越。我们得出结论,在未来具有大主记忆的系统中,Warren的算法通常最佳地执行,因此应选择当源或结果尺寸非常大时切换到迭代算法的选择。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号