Abstract
Reachability and shortest path problems are NL-complete for general graphs. They are known to be in L for graphs of tree-width 2 (Jakoby and Tantau in Proceedings of FSTTCS’07: The 27th Annual Conference on Foundations of Software Technology and Theoretical Computer Science, pp. 216–227, 2007). In this paper, we improve these bounds for k-trees, where k is a constant. In particular, the main results of our paper are log-space algorithms for reachability in directed k-trees, and for computation of shortest and longest paths in directed acyclic k-trees.
Besides the path problems mentioned above, we also consider the problem of deciding whether a k-tree has a perfect matching (decision version), and if so, finding a perfect matching (search version), and prove that these two problems are L-complete. These problems are known to be in P and in RNC for general graphs, and in SPL for planar bipartite graphs, as shown in Datta et al. (Theory Comput. Syst. 47:737–757, 2010).
Our results settle the complexity of these problems for the class of k-trees. The results are also applicable for bounded tree-width graphs, when a tree-decomposition is given as input. The technique central to our algorithms is a careful implementation of the divide-and-conquer approach in log-space, along with some ideas from Jakoby and Tantau (Proceedings of FSTTCS’07: The 27th Annual Conference on Foundations of Software Technology and Theoretical Computer Science, pp. 216–227, 2007) and Limaye et al. (Theory Comput. Syst. 46(3):499–522, 2010).
Similar content being viewed by others
References
Allender, E.: Making computation count: arithmetic circuits in the nineties. SIGACT News 28(4), 2–15 (1997)
Allender, E., Barrington, D.A.M., Chakraborty, T., Datta, S., Roy, S.: Planar and grid graph reachability problems. Theory Comput. Syst. 45(4), 675–723 (2009)
Arvind, V., Das, B., Köbler, J.: The space complexity of k-tree isomorphism. In: Proceedings of ISAAC’07: The 18th International Symposium on Algorithms and Computation. Lecture Notes in Computer Science Series, vol. 4835, pp. 822–833. Springer, Berlin (2007)
Ben-Or, M., Cleve, R.: Computing algebraic formulas using a constant number of registers. SIAM J. Comput. 21(1), 54–58 (1992)
Braunmühl, B.V., Verbeek, R.: Input driven languages are recognized in logn space. In: Topics in the Theory of Computation: Selected Papers of the International Conference on ‘Foundations of Computation Theory’, FCT’83. North-Holland Mathematics Studies Series, vol. 102, pp. 1–19. North-Holland, Amsterdam (1985)
Braverman, M., Kulkarni, R., Roy, S.: Parity problems in planar graphs. In: Proceedings of CCC’07: The 22nd Annual IEEE Conference on Computational Complexity, pp. 222–235 (2007)
Buss, S., Cook, S., Gupta, A., Ramachandran, V.: An optimal parallel algorithm for formula evaluation. SIAM J. Comput. 21(4), 755–780 (1992)
Chandrasekharan, N., Hannenhalli, S.: Efficient algorithms for computing matching and chromatic polynomials on series-parallel graphs. In: Proceedings of ICCI’92: The 4th International IEEE Conference on Computing and Information, pp. 42–45 (1992)
Chiu, A., Davida, G., Litow, B.: Division in logspace-uniform NC1. RAIRO Theor. Inform. Appl. 35, 259–275 (2001)
Datta, S., Roy, S.: A note on matching problems complete for logspace classes (2005, unpublished short)
Datta, S., Kulkarni, R., Limaye, N., Mahajan, M.: Planarity, determinants, permanents, and (unique) matchings. In: Proceedings of CSR’07: The 2nd International Symposium on Computer Science in Russia. Lecture Notes in Computer Science Series, vol. 4649, pp. 115–126. Springer, Berlin (2007)
Datta, S., Kulkarni, R., Roy, S.: Deterministically isolating a perfect matching in bipartite planar graphs. Theory Comput. Syst. 47, 737–757 (2010)
Elberfeld, M., Jakoby, A., Tantau, T.: Logspace versions of the theorems of Bodlaender and Courcelle. In: Proceedings of FOCS’10: The 51st Annual IEEE Symposium on Foundations of Computer Science, pp. 143–152 (2010)
Etessami, K.: Counting quantifiers, successor relations, and logarithmic space. J. Comput. Syst. Sci. 54(3), 400–411 (1997)
Flarup, U., Koiran, P., Lyaudet, L.: On the expressive power of planar perfect matching and permanents of bounded treewidth matrices. In: Proceedings of ISAAC’07: The 18th International Symposium on Algorithms and Computation. Lecture Notes in Computer Science, pp. 124–136. Springer, Berlin (2007)
Greco, J.G.D., Chandrasekharan, N., Sridhar, R.: Fast parallel reordering and isomorphism testing of k-trees. Algorithmica 32(1), 61–72 (2002)
Gupta, A., Nishimura, N., Proskurowski, A., Ragde, P.: Embeddings of k-connected graphs of pathwidth k. Discrete Appl. Math. 145(2), 242–265 (2005)
Harary, F., Palmer, E.M.: On acyclic simplicial complexes. Mathematika 15, 115–122 (1968)
Hesse, W., Allender, E., Barrington, D.A.M.: Uniform constant-depth threshold circuits for division and iterated multiplication. J. Comput. Syst. Sci. 65(4), 695–716 (2002)
Hoang, T.M., Mahajan, M., Thierauf, T.: On the bipartite unique perfect matching problem. In: Proceedings of ICALP’06: The 33rd International Colloquium on Automata, Languages and Programming. Lecture Notes in Computer Science, pp. 453–464. Springer, Berlin (2006)
Jakoby, A., Tantau, T.: Logspace algorithms for computing shortest and longest paths in series-parallel graphs. In: Proceedings of FSTTCS’07: The 27th Annual Conference on Foundations of Software Technology and Theoretical Computer Science. Lecture Notes in Computer Science Series, vol. 4855, pp. 216–227. Springer, Berlin (2007)
Karp, R.M., Upfal, E., Wigderson, A.: Constructing a perfect matching is in random NC. Combinatorica 6(1), 35–48 (1986)
Köbler, J., Kuhnert, S.: The isomorphism problem for k-trees is complete for logspace. In: Proceedings of MFCS’09: The 34th International Symposium on Mathematical Foundations of Computer Science. Lecture Notes in Computer Science Series, vol. 5734, pp. 537–548. Springer, Berlin (2009)
Limaye, N., Mahajan, M., Nimbhorkar, P.: Longest paths in planar DAGs in unambiguous log-space. Chic. J. Theor. Comput. Sci. 2010(8), 1–16 (2010). CATS 2009 special issue
Limaye, N., Mahajan, M., Rao, B.V.R.: Arithmetizing classes around NC1 and L. Theory Comput. Syst. 46(3), 499–522 (2010). Special issue for STACS 2007
Mulmuley, K., Vazirani, U.V., Vazirani, V.V.: Matching is as easy as matrix inversion. Combinatorica 7(1), 105–113 (1987)
Reingold, O.: Undirected connectivity in log-space. J. ACM 55(4), 17 (2008)
Reinhardt, K., Allender, E.: Making nondeterminism unambiguous. SIAM J. Comput. 29(4), 1118–1131 (2000)
Robertson, N., Seymour, P.D.: Graph minors. III. Planar tree-width. J. Comb. Theory, Ser. B 36(1), 49–64 (1984)
Thierauf, T., Wagner, F.: Reachability in K 3,3-free graphs and K 5-free graphs is in unambiguous log-space. In: Proceedings of FCS’09: The 17th International Symposium on Fundamentals of Computation Theory. Lecture Notes in Computer Science Series, vol. 5699, pp. 323–334. Springer, Berlin (2009)
Wanke, E.: Bounded tree-width and LOGCFL. J. Algorithms 16(3), 470–491 (1994)
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Das, B., Datta, S. & Nimbhorkar, P. Log-Space Algorithms for Paths and Matchings in k-Trees. Theory Comput Syst 53, 669–689 (2013). https://doi.org/10.1007/s00224-013-9469-9
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00224-013-9469-9