首页 | 本学科首页   官方微博 | 高级检索  
     


Speeding up dynamic transitive closure for bounded degree graphs
Authors:Daniel M. Yellin
Affiliation:(1) IBM T.J. Watson Research Center, P.O. Box 704, 10598 Yorktown Heights, NY, USA
Abstract:In this paper we present an algorithm for solving two problems in dynamically maintaining the transitive closure of a digraph: In the first problem a sequence of edge insertions is performed on an initially empty graph, interspersed withp transitive closure queries of the form: ldquois there a path froma tob in the graphrdquo. Our algorithm solves this problem in timeO (dm*+p), whered is the maximum outdegree of the resulting graphG andm* is the number of edges in the transitive closure ofG. In the second problem, a sequence of edge deletions is performed on anacyclic graph, interspersed withp transitive closure queries. Once again we solve this problem in timeO (dm*+p), whered is the maximum outdegree of the initial graphG andm* is the number of edges in the transitive closure ofG. For bounded degree graphs, this improves upon previous results. Our algorithms also work when insertions and deletions to the graph are intermixed. Finally, we show how to implement the operation findpath (x, y) which retrieves some path fromx toy in time proportional to the length of the path.
Keywords:
本文献已被 SpringerLink 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号