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


Semi-dynamic breadth-first search in digraphs
Authors:Paolo Giulio Franciosa  Daniele Frigioni  Roberto Giaccio
Affiliation:1. Dipartimento di Informatica e Sistemistica, Università di Roma “La Sapienza”, via Salaria 113, I-00198 Roma, Italy;2. Dipartimento di Ingegneria Elettrica, Università di L''Aquila, Monteluco di Roio I-67040 L''Aquila, Italy
Abstract:In this paper we propose dynamic algorithms for maintaining a breadth-first search tree from a given source vertex of a directed graph G in either an incremental or a decremental setting. During a sequence of q edge insertions or a sequence of q edge deletions the total time required is O(m·min{q,n}), where n is the number of vertices of G, and m is the final number of edges of G in the case of insertions or the initial number of edges of G in the case of deletions. This gives O(n) amortized time for each operation if the sequence has length Ω(m). Our algorithms require O(n+m) space. These are the first results in the literature concerning the dynamic maintenance of a breadth-first search tree for directed graphs. As a straightforward application of such algorithms we can maintain a shortest path tree for a directed graph in the case of unit edge weights within the same time bounds. In this case distance queries can be answered in constant time, while shortest path queries can be answered in time linear in the length of the retrieved path.
Keywords:Breadth-first search tree  Incremental algorithms    Decremental algorithms  Shortest paths  Amortized analysis
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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