首页> 外文期刊>ACM transactions on database systems >Incremental Maintenance of Shortest Distance and Transitive Closure in First-Order Logic and SQL
【24h】

Incremental Maintenance of Shortest Distance and Transitive Closure in First-Order Logic and SQL

机译:一阶逻辑和SQL中最短距离和传递闭合的增量维护

获取原文
获取原文并翻译 | 示例

摘要

Given a database, the view maintenance problem is concerned with the efficient computation of the new contents of a given view when updates to the database happen. We consider the view maintenance problem for the situation when the database contains a weighted graph and the view is either the transitive closure or the answer to the all-pairs shortest-distance problem (APSD). We give incremental algorithms for APSD, which support both edge insertions and deletions. For transitive closure, the algorithm is applicable to a more general class of graphs than those previously explored. Our algorithms use first-order queries, along with addition (+) and less-than (< ) operations (FO(+, < )); they store O(n~2) number of tuples, where n is the number of vertices, and have AC~0 data complexity for integer weights. Since FO(+, < ) is a sublanguage of SQL and is supported by almost all current database systems, our maintenance algorithms are more appropriate for database applications than nondatabase query types of maintenance algorithms.
机译:对于给定的数据库,视图维护问题与在对数据库进行更新时有效计算给定视图的新内容有关。当数据库包含加权图并且视图是传递闭包或全对最短距离问题(APSD)的答案时,我们考虑视图维护问题。我们提供了用于APSD的增量算法,该算法支持边缘插入和删除。对于传递闭包,该算法适用于比以前探讨的图更通用的图类。我们的算法使用一阶查询,以及加(+)和小于(<)操作(FO(+,<));它们存储O(n〜2)个元组,其中n是顶点数,并且对于整数权重具有AC〜0数据复杂度。因为FO(+,<)是SQL的子语言,并且几乎所有当前的数据库系统都支持FO,所以我们的维护算法比非数据库查询类型的维护算法更适合数据库应用程序。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号