Skip to main content
Log in

Log-Space Algorithms for Paths and Matchings in k-Trees

  • Published:
Theory of Computing Systems Aims and scope Submit manuscript

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).

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Algorithm 1
Fig. 3

Similar content being viewed by others

References

  1. Allender, E.: Making computation count: arithmetic circuits in the nineties. SIGACT News 28(4), 2–15 (1997)

    Article  Google Scholar 

  2. 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)

    Article  MathSciNet  MATH  Google Scholar 

  3. 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)

    Chapter  Google Scholar 

  4. Ben-Or, M., Cleve, R.: Computing algebraic formulas using a constant number of registers. SIAM J. Comput. 21(1), 54–58 (1992)

    Article  MathSciNet  MATH  Google Scholar 

  5. 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)

    Google Scholar 

  6. 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)

    Google Scholar 

  7. Buss, S., Cook, S., Gupta, A., Ramachandran, V.: An optimal parallel algorithm for formula evaluation. SIAM J. Comput. 21(4), 755–780 (1992)

    Article  MathSciNet  MATH  Google Scholar 

  8. 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)

    Chapter  Google Scholar 

  9. Chiu, A., Davida, G., Litow, B.: Division in logspace-uniform NC1. RAIRO Theor. Inform. Appl. 35, 259–275 (2001)

    Article  MathSciNet  MATH  Google Scholar 

  10. Datta, S., Roy, S.: A note on matching problems complete for logspace classes (2005, unpublished short)

  11. 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)

    Google Scholar 

  12. Datta, S., Kulkarni, R., Roy, S.: Deterministically isolating a perfect matching in bipartite planar graphs. Theory Comput. Syst. 47, 737–757 (2010)

    Article  MathSciNet  MATH  Google Scholar 

  13. 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)

    Chapter  Google Scholar 

  14. Etessami, K.: Counting quantifiers, successor relations, and logarithmic space. J. Comput. Syst. Sci. 54(3), 400–411 (1997)

    Article  MathSciNet  MATH  Google Scholar 

  15. 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)

    Chapter  Google Scholar 

  16. Greco, J.G.D., Chandrasekharan, N., Sridhar, R.: Fast parallel reordering and isomorphism testing of k-trees. Algorithmica 32(1), 61–72 (2002)

    Article  MathSciNet  MATH  Google Scholar 

  17. Gupta, A., Nishimura, N., Proskurowski, A., Ragde, P.: Embeddings of k-connected graphs of pathwidth k. Discrete Appl. Math. 145(2), 242–265 (2005)

    Article  MathSciNet  MATH  Google Scholar 

  18. Harary, F., Palmer, E.M.: On acyclic simplicial complexes. Mathematika 15, 115–122 (1968)

    Article  MathSciNet  MATH  Google Scholar 

  19. 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)

    Article  MathSciNet  MATH  Google Scholar 

  20. 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)

    Chapter  Google Scholar 

  21. 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)

    Google Scholar 

  22. Karp, R.M., Upfal, E., Wigderson, A.: Constructing a perfect matching is in random NC. Combinatorica 6(1), 35–48 (1986)

    Article  MathSciNet  MATH  Google Scholar 

  23. 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)

    Google Scholar 

  24. 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

    Article  MathSciNet  Google Scholar 

  25. 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

    Article  MathSciNet  MATH  Google Scholar 

  26. Mulmuley, K., Vazirani, U.V., Vazirani, V.V.: Matching is as easy as matrix inversion. Combinatorica 7(1), 105–113 (1987)

    Article  MathSciNet  MATH  Google Scholar 

  27. Reingold, O.: Undirected connectivity in log-space. J. ACM 55(4), 17 (2008)

    Article  MathSciNet  Google Scholar 

  28. Reinhardt, K., Allender, E.: Making nondeterminism unambiguous. SIAM J. Comput. 29(4), 1118–1131 (2000)

    Article  MathSciNet  MATH  Google Scholar 

  29. Robertson, N., Seymour, P.D.: Graph minors. III. Planar tree-width. J. Comb. Theory, Ser. B 36(1), 49–64 (1984)

    Article  MathSciNet  MATH  Google Scholar 

  30. 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)

    Chapter  Google Scholar 

  31. Wanke, E.: Bounded tree-width and LOGCFL. J. Algorithms 16(3), 470–491 (1994)

    Article  MathSciNet  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Prajakta Nimbhorkar.

Rights and permissions

Reprints 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

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00224-013-9469-9

Keywords

Navigation