Abstract
The formalism of monadic second-order (MS) logic has been very successful in unifying a large number of algorithms for graphs of bounded treewidth. We extend the elegant framework of MS logic from static problems to dynamic problems, in which queries about MS properties of a graph of bounded treewidth are interspersed with updates of vertex and edge labels. This allows us to unify and occasionally strengthen a number of scattered previous results obtained in an ad-hoc manner and to enable solutions to a wide range of additional problems to be derived automatically.
As an auxiliary result of independent interest, we dynamize a data structure of Chazelle and Alon and Schieber for answering queries about sums of labels along paths in a tree with edges labeled by elements of a semigroup.
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
Alon, N., and Schieber, B. (1987), Optimal preprocessing for answering on-line product queries, Tech. Rep. No. 71/87, Tel Aviv University.
Arikati, S. R., Chaudhuri, S., and Zaroliagis, C. D. (1995), All-pairs min-cut in sparse networks, in Proc. 15th Conference on Foundations of Software Technology and Theoretical Computer Science (FST&TCS), Springer Lecture Notes in Computer Science, Vol. 1026, pp. 363–376.
Arnborg, S., Lagergren, J., and Seese, D. (1991), Easy problems for tree-decomposable graphs, J. Algorithms 12, pp. 308–340.
Bern, M. W., Lawler, E. L., and Wong, A. L. (1987), Linear-time computation of optimal subgraphs of decomposable graphs, J. Algorithms 8, pp. 216–235.
Bodlaender, H. L. (1993a), On reduction algorithms for graphs with small treewidth, in Proc. 19th International Workshop on Graph-Theoretic Concepts in Computer Science (WG), Springer Lecture Notes in Computer Science, Vol. 790, pp. 45–56.
Bodlaender, H. L. (1993b), Dynamic algorithms for graphs with treewidth 2, in Proc. 19th International Workshop on Graph-Theoretic Concepts in Computer Science (WG), Springer Lecture Notes in Computer Science, Vol. 790, pp. 112–124.
Bodlaender, H. L. (1996a), A linear-time algorithm for finding tree-decompositions of small treewidth, SIAM J. Comput. 25, pp. 1305–1317.
Bodlaender, H. L. (1996b), A partial k-arboretum of graphs with bounded treewidth, Tech. Rep. No. UU-CS-1996-02, Dept. of Computer Science, Utrecht University.
Borie, R. B., Parker, R. G., and Tovey, C. A. (1992), Automatic generation of linear-time algorithms from predicate calculus descriptions of problems on recursively constructed graph families, Algorithmica 7, pp. 555–581.
Chaudhuri, S., and Zaroliagis, C.D. (1995), Shortest path queries in digraphs of small treewidth, Proc. 22nd International Colloquium on Automata, Languages and Programming (ICALP), Springer LNCS, Vol. 944, pp. 244–255.
Chazelle, B. (1987), Computing on a free tree via complexity-preserving mappings, Algorithmica 2, pp. 337–361.
Courcelle, B. (1990a), Graph rewriting: An algebraic and logic approach, in Handbook of Theoretical Computer Science, Vol. B: Formal Models and Semantics (J. van Leeuwen, ed.), Chap. 5, pp. 193–242, Elsevier, Amsterdam.
Courcelle, B. (1990b), The monadic second-order logic of graphs. I. Recognizable sets of finite graphs, Inform. and Comput. 85, pp. 12–75.
Courcelle, B., and Mosbah, M. (1993), Monadic second-order evaluations on tree-decomposable graphs, Theor. Comput. Sci. 109, pp. 49–82.
Harel, D., and Tarjan, R. E. (1984), Fast algorithms for finding nearest common ancestors, SIAM J. Comput. 13, pp. 338–355.
Radhakrishnan, V., Hunt, H. B., III, and Stearns, R. E. (1992), Efficient algorithms for solving systems of linear equations and path problems, Proc. 9th Annual Symposium on Theoretical Aspects of Computer Science (STACS), Springer Lecture Notes in Computer Science, Vol. 577, pp. 109–119.
Robertson, N., and Seymour, P. D. (1986), Graph Minors. II. Algorithmic aspects of tree-width, J. Algorithms 7, pp. 309–322.
Schieber, B., and Vishkin, U. (1988), On finding lowest common ancestors: Simplification and parallelization, SIAM J. Comput. 17, pp. 1253–1262.
Stearns, R. E., and Hunt, H. B., III (1996), An algebraic model for combinatorial problems, SIAM J. Comput. 25, pp. 448–476.
van Leeuwen, J. (1990), Graph algorithms, in Handbook of Theoretical Computer Science, Vol. A: Algorithms and Complexity (J. van Leeuwen, ed.), Chap. 10, pp. 525–631, Elsevier, Amsterdam.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1997 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Hagerup, T. (1997). Dynamic algorithms for graphs of bounded treewidth. In: Degano, P., Gorrieri, R., Marchetti-Spaccamela, A. (eds) Automata, Languages and Programming. ICALP 1997. Lecture Notes in Computer Science, vol 1256. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-63165-8_186
Download citation
DOI: https://doi.org/10.1007/3-540-63165-8_186
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-63165-1
Online ISBN: 978-3-540-69194-5
eBook Packages: Springer Book Archive