Skip to main content

Bounded Treewidth and Space-Efficient Linear Algebra

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 9076))

Abstract

Motivated by a recent result of Elberfeld, Jakoby and Tantau [EJT10] showing that \(\mathsf {MSO}\) properties are Logspace computable on graphs of bounded treewidth, we consider the complexity of computing the determinant of the adjacency matrix of a bounded treewidth graph and as our main result prove that it is in Logspace. It is important to notice that the determinant is neither an \(\mathsf {MSO}\)-property nor counts the number of solutions of an \(\mathsf {MSO}\)-predicate. This technique yields Logspace algorithms for counting the number of spanning arborescences and directed Euler tours in bounded treewidth digraphs.

We demonstrate some linear algebraic applications of the determinant algorithm by describing Logspace procedures for the characteristic polynomial, the powers of a weighted bounded treewidth graph and feasibility of a system of linear equations where the underlying bipartite graph has bounded treewidth.

Finally, we complement our upper bounds by proving L-hardness of the problems of computing the determinant, and of powering a bounded treewidth matrix. We also show the GapL-hardness of Iterated Matrix Multiplication where each matrix has bounded treewidth.

S. Datta—Part of the work was done on a visit to the Institute for Theoretical Computer Science at Leibniz University Hannover.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    The case when quantification over subset of edges is not allowed is referred to as \(\mathsf {MSO}_1\) which is known to be strictly less powerful than \(\mathsf {MSO}_2\), the case when edge set quantification is allowed. Throughtout our paper, we will work with \(\mathsf {MSO}_2\) and hence we will just refer to it as \(\mathsf {MSO}\).

  2. 2.

    The Gaifman graph (also called the Primal Graph) of a binary relation \(R \subseteq A\,\times \,A\) is the graph whose nodes are elements of \(A\) and an edge joins a pair of variables \(x,y\) if \((x,y) \in R\).

  3. 3.

    Binary relation \(R\) is said to be compatible with the tree decomposition \(T'\) of \(G\) if the Gaifman graph of \(R\) has \(T'\) as its tree decomposition.

  4. 4.

    Note that since we require that for a given \(X,Y\), every \(v \in V\) has a unique \(h \in X\), our formula is not monotone, i.e., If \(X \subseteq X'\) are two sets of heads then if \(\phi (X,Y)\) is true doesn’t imply \(\phi (X',Y)\) is also true (consider vertices in \(X'\setminus X\), since \(X' \subseteq X\), they will have two different \(h, h'\) such that the \(\mathsf {PATH}\) and \({\mathsf {NXT}}^{*}\) predicates are true contradicting uniqueness of \(h\).

  5. 5.

    Alternately, arborescences are \(\mathsf {MSO}_2\)-definable and, thus, counting them in bounded treewidth graphs can be implemented in L via [EJT10].

References

  1. Allender, E., Beals, R., Ogihara, M.: The complexity of matrix rank and feasible systems of linear equations. Comput. Complex. 8(2), 99–126 (1999)

    Article  MATH  MathSciNet  Google Scholar 

  2. Aardenne-Ehrenfest, T., Bruijn, N.G.: Circuits and trees in oriented linear graphs. In: Gessel, I., Rota, G.-C. (eds.) Classic Papers in Combinatorics. Modern Birkhäuser Classics, pp. 149–163. Birkhäuser, Boston (1987)

    Google Scholar 

  3. Berkowitz, S.J.: On computing the determinant in small parallel time using a small number of processors. Inf. Process. Lett. 18(3), 147–150 (1984)

    Article  MATH  MathSciNet  Google Scholar 

  4. Brightwell, G., Winkler, P.: Counting eulerian circuits is# p-complete. In: ALENEX/ANALCO, pp. 259–262. Citeseer (2005)

    Google Scholar 

  5. Chebolu, P., Cryan, M., Martin, R.: Exact counting of euler tours for generalized series-parallel graphs. J. Discrete Algorithms 10, 110–122 (2012)

    Article  MATH  MathSciNet  Google Scholar 

  6. Chebolu, P., Cryan, M., Martin, R.: Exact counting of euler tours for graphs of bounded treewidth. In: CoRR, abs/1310.0185 (2013)

    Google Scholar 

  7. Chen, Y., Flum, J.: On the ordered conjecture. In: Proceedings of the 2012 27th Annual IEEE/ACM Symposium on Logic in Computer Science, pp. 225–234. IEEE Computer Society (2012)

    Google Scholar 

  8. Courcelle, B.: The monadic second-order logic of graphs. i. recognizable sets of finite graphs. Inf. comput. 85(1), 12–75 (1990)

    Article  MATH  MathSciNet  Google Scholar 

  9. Das, B., Datta, S., Nimbhorkar, P.: Log-space algorithms for paths and matchings in k-trees. Theor. Comput. Syst. 53(4), 669–689 (2013)

    Article  MATH  MathSciNet  Google Scholar 

  10. Datta, S., Kulkarni, R., Limaye, N., Mahajan, M.: Planarity, determinants, permanents, and (unique) matchings. TOCT 1(3) (2010)

    Google Scholar 

  11. Elberfeld, M., Jakoby, A., Tantau, T.: Logspace versions of the theorems of bodlaender and courcelle. In: FOCS, pp. 143–152 (2010)

    Google Scholar 

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

    Article  MATH  MathSciNet  Google Scholar 

  13. Flum, J., Grohe, M.: Parameterized Complexity Theory, vol. 3. Springer, Heidelberg (2006)

    Google Scholar 

  14. Hesse, W., Allender, E., Barrington, D.A.M.: Uniform constant-depth threshold circuits for division and iterated multiplication. J. Comput. Syst. Sci. 65, 695–716 (2002)

    Article  MATH  MathSciNet  Google Scholar 

  15. Mulmuley, K.: A fast parallel algorithm to compute the rank of a matrix over an arbitrary field. Combinatorica 7(1), 101–104 (1987)

    Article  MATH  MathSciNet  Google Scholar 

  16. Mahajan, M., Vinay, V.: Determinant: combinatorics, algorithms, and complexity. Chicago J. Theor. Comput. Sci. 1997, 26 (1997)

    MathSciNet  Google Scholar 

  17. Stanley, R.P.: Algebraic Combinatorics. Springer-Verlag, New York (2013)

    Book  MATH  Google Scholar 

  18. Toda, S.: Counting problems computationally equivalent to the determinant. Technical report CSIM 91–07, Dept of Comp Sc & Information Mathematics, Univ of Electro-Communications, Chofu-shi, Tokyo (1991)

    Google Scholar 

  19. Tutte, W.T., Smith, C.A.B.: On unicursal paths in a network of degree 4. Am. Math. Monthly 48(4), 233–237 (1941)

    Article  MathSciNet  Google Scholar 

  20. von zur Gathen, J., Gerhard, J.: Modern Computer Algebra (3. ed.). Cambridge University Press, New York (2013)

    Book  Google Scholar 

Download references

Acknowledgement

We would like to thank Abhishek Bhrushundi, Arne Meier, Rohith Varma and Heribert Vollmer for illuminating discussions regarding this paper. Special thanks are due to Johannes Köbler and Sebastian Kuhnert who were involved in the initial discussions on the proof of Theorems 4, 6; to Stefan Mengel for proof reading the paper and finding a gap in a previous “proof” of Theorem 4; and to Raghav Kulkarni for suggesting proof strategies for Corollary 5 and Lemma 3; and to Sebastian Kuhnert for the proof of Proposition 2. Thanks are also due to anonymous referees for pointing out errors in a previous version of the paper and for greatly simplifying the proof of Corollary 3. This work is partially funded by a grant from Infosys Foundation.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Nikhil Balaji .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this paper

Cite this paper

Balaji, N., Datta, S. (2015). Bounded Treewidth and Space-Efficient Linear Algebra. In: Jain, R., Jain, S., Stephan, F. (eds) Theory and Applications of Models of Computation. TAMC 2015. Lecture Notes in Computer Science(), vol 9076. Springer, Cham. https://doi.org/10.1007/978-3-319-17142-5_26

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-17142-5_26

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-17141-8

  • Online ISBN: 978-3-319-17142-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics