[Paper Review] Solving weighted and counting variants of connectivity problems parameterized by treewidth deterministically in single exponential time
This paper presents deterministic algorithms for solving weighted and counting variants of connectivity problems—such as Hamiltonian Cycle and Steiner Tree—on graphs with bounded treewidth in single-exponential time, O(1.94^tw n^O(1)). It introduces two novel linear algebra-based techniques: a rank-based method that uses representative sets to compress dynamic programming states, and a determinant-based method that leverages the matrix tree theorem to derive closed-form formulas for counting solutions. The key contribution is achieving deterministic, single-exponential time complexity for problems previously solved only via randomized algorithms with similar runtime bounds.
It is well known that many local graph problems, like Vertex Cover and Dominating Set, can be solved in 2^{O(tw)}|V|^{O(1)} time for graphs G=(V,E) with a given tree decomposition of width tw. However, for nonlocal problems, like the fundamental class of connectivity problems, for a long time we did not know how to do this faster than tw^{O(tw)}|V|^{O(1)}. Recently, Cygan et al. (FOCS 2011) presented Monte Carlo algorithms for a wide range of connectivity problems running in time $c^{tw}|V|^{O(1)} for a small constant c, e.g., for Hamiltonian Cycle and Steiner tree. Naturally, this raises the question whether randomization is necessary to achieve this runtime; furthermore, it is desirable to also solve counting and weighted versions (the latter without incurring a pseudo-polynomial cost in terms of the weights). We present two new approaches rooted in linear algebra, based on matrix rank and determinants, which provide deterministic c^{tw}|V|^{O(1)} time algorithms, also for weighted and counting versions. For example, in this time we can solve the traveling salesman problem or count the number of Hamiltonian cycles. The rank-based ideas provide a rather general approach for speeding up even straightforward dynamic programming formulations by identifying "small" sets of representative partial solutions; we focus on the case of expressing connectivity via sets of partitions, but the essential ideas should have further applications. The determinant-based approach uses the matrix tree theorem for deriving closed formulas for counting versions of connectivity problems; we show how to evaluate those formulas via dynamic programming.
Motivation & Objective
- To close the gap between randomized and deterministic algorithms for connectivity problems parameterized by treewidth.
- To develop efficient deterministic algorithms for weighted and counting variants of NP-hard connectivity problems such as Hamiltonian Cycle and Steiner Tree.
- To eliminate the need for randomization in single-exponential time algorithms for connectivity problems on bounded treewidth graphs.
- To provide a new framework based on linear algebraic techniques—specifically matrix rank and determinants—for optimizing dynamic programming on tree decompositions.
Proposed method
- Introduces a rank-based dynamic programming approach that identifies representative sets of partial solutions using matrix rank to reduce state space size.
- Uses the matrix tree theorem to derive closed-form expressions for counting connectivity solutions, which are then evaluated via dynamic programming.
- Applies Gaussian elimination and rank reduction to maintain only linearly independent states in the DP table, ensuring single-exponential dependence on treewidth.
- Designs join operations in tree decomposition nodes that combine states from children using signed permutations based on inverse permutations of state mappings.
- Employs a consistent state representation across subtrees by using shared variables (e.g., sY) to ensure correctness during tree decomposition traversal.
- Extends the framework to handle both unweighted and weighted versions of connectivity problems without incurring pseudo-polynomial cost in weights.
Experimental results
Research questions
- RQ1Can deterministic algorithms achieve single-exponential time complexity for weighted and counting variants of connectivity problems on bounded treewidth graphs?
- RQ2Can linear algebraic techniques such as matrix rank and determinants be used to compress dynamic programming states in tree decomposition-based algorithms?
- RQ3Is it possible to eliminate randomization in Cut&Count-style algorithms for connectivity problems while preserving single-exponential runtime?
- RQ4Can the rank-based approach be generalized beyond connectivity problems to other dynamic programming settings with structured state spaces?
- RQ5What is the practical feasibility of integrating rank-based compression into standard tree decomposition-based dynamic programming pipelines?
Key findings
- The paper presents a deterministic algorithm for the Feedback Vertex Set problem running in Õ(5^pw · pw^O(1) · n^3) time when given a path decomposition of width pw.
- For tree decompositions of width tw, the Feedback Vertex Set problem is solved in Õ(10^tw · tw^O(1) · n^3) time, demonstrating the effectiveness of the rank-based method.
- The determinant-based method enables exact counting of Hamiltonian cycles and other connectivity structures in single-exponential time, providing a closed-form evaluation via dynamic programming.
- The rank-based approach ensures that the number of states processed at each node is bounded by 2^tw, significantly reducing the state space compared to naive dynamic programming.
- The algorithms achieve single-exponential dependence on treewidth, matching the best-known randomized algorithms, but without requiring randomization.
- The framework is generalizable to branchwidth and can be adapted to other problems by exploiting the algebraic structure of partial solutions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.