Fine-Grained Complexity of Computing
Degree-Constrained Spanning Trees
Abstract
We investigate the computation of minimum-cost spanning trees satisfying prescribed vertex degree constraints: Given a graph and a constraint function , we ask for a (minimum-cost) spanning tree such that for each vertex , achieves a degree specified by . Specifically, we consider three kinds of constraint functions ordered by their generality – may either assign to each vertex a list of admissible degrees, an upper bound on the degree, or a specific degree. Using a combination of novel techniques and state-of-the-art machinery, we obtain an almost-complete overview of the fine-grained complexity of these problems taking into account the most classical structural graph parameters of the input graph . In particular, we present SETH-tight upper and lower bounds for these problems when parameterized by pathwidth and cutwidth, an ETH-tight algorithm parameterized by clique-width, and a nearly SETH-tight algorithm parameterized by treewidth.
In order to obtain our upper bound for clique-width, we develop a novel technique of double representation through “requirement shifting”. Using this technique, we also obtain an ETH-tight single-exponential algorithm for the Exact Leaf Spanning Tree problem parameterized by clique-width, which settles the final remaining open case for clique-width from the classical Cut and Count of Cygan et al. [FOCS 2011, TALG 2022]. This shows the versatility of our technique and its potential applicability to other problems as well. Additionally, in order to establish our lower and upper bounds we introduce a number of tools which may be of independent interest, including lazy coloring and “asymptotic” SETH-based reductions for structural parameters.
Keywords and phrases:
Parameterized complexity, Structural parameters, Clique-width, fine-grained complexity, Spanning treeCategory:
Track A: Algorithms, Complexity and GamesFunding:
Alexander Firbas: FWF Project 10.55776/Y1329 and WWTF Project 10.47379/ICT22029.Copyright and License:
Krisztina Szilágyi; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Parameterized complexity and exact algorithmsEditors:
Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele PuppisSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Algorithms for computing minimum-cost spanning trees of graphs are, in many ways, cornerstones of computer science: classical results such as the algorithms of Prim or Kruskal are often among the first graph algorithms presented to undergraduate students. And yet, in many situations it is necessary to compute not only a spanning tree, but one that satisfies additional constraints. In this article, we investigate the computation of (minimum-cost) spanning trees that satisfy prescribed constraints on the degrees of the tree’s vertices.
More precisely, given a graph with polynomially-bounded edge weights and a constraint function , our aim is to determine whether there is a spanning tree of such that for each , – and if the answer is positive, output one of minimum cost. Depending on the form of the constraint function, we distinguish between the following three computational problems:
-
1.
in Set of Degrees Minimum Spanning Tree (MST), maps each vertex to a set of integers;
-
2.
in Bounded Degree MST, all sets in the image of are of the form for some ;
-
3.
in Specified Degree MST, the image of is a set of singletons.
While the above problems are in fact ordered from most to least general111Every instance of Specified Degree MST can either be trivially rejected or stated as an equivalent instance of Bounded Degree MST on the same input graph ., the considered types of constraints can each be seen as natural and fundamental in their own right. Indeed, the constraints in Bounded Degree MST appear as a crucial base case in the Thin Tree Conjecture [29, 38] and have been extensively studied in the approximation setting where one is allowed to violate the constraints by an additive constant [23, 30, 43]. At the same time, Specified Degree MST and Set of Degrees MST form natural counterparts to the classical -Factor and General -Factor problems [45, 12, 24, 25], respectively. The -hard connected variants of the latter two problems have been studied in the literature as well [18, 11, 27]. It is worth noting that both Set of Degrees MST and Specified Degree MST have also been studied in the literature under the same name “Degree Constrained Spanning Tree” [21, 41] and were shown to admit algorithms.
While classical minimum-cost spanning trees can be computed on general graphs in almost linear time [8, 9], we cannot hope to achieve such an outcome for even the easiest of the three problems considered here – indeed, Specified Degree MST is -hard as it admits a straightforward reduction from Hamiltonian Path. Naturally, this only rules out efficient algorithms on general graphs; in reality, the actual running time bounds will necessarily depend on the structural properties of the input graphs – for instance, all three degree-constrained MST problems admit trivial linear-time algorithms on trees. In this article, we investigate the fine-grained running time bounds for solving these problems taking into account the structure of the input graphs and obtain a surprisingly tight classification under the Exponential Time Hypothesis (ETH) [35] along with its strong variant (SETH) [34].
In fact, we are not the first to investigate tight running time bounds for a connectivity problem with respect to structural parameters. The Cut&Count technique introduced by Cygan et al. [16, 17] was designed specifically to target connectivity problems under structural parameterizations, and in particular treewidth. For many of the studied problems, they also provided SETH-based lower bounds that rule out any significant improvements to the base of the exponent. In particular, they obtained a SETH-tight algorithm for the Exact Leaf Spanning Tree problem – a variant of the spanning tree problem, where one requires the solution tree to have a given number of degree one vertices – where is the treewidth of the input graph and suppresses constant as well as polynomial factors of the input.
After the aforementioned work, there has been a series of papers studying the fine-grained complexity of different connectivity problems (using Cut&Count and other techniques) under structural parameters [2, 3, 14, 31, 33]. In particular, as mentioned in [7], Hegerfeld and Kratsch [32] and Bojikian and Kratsch [5, 6, 7] provided SETH-tight algorithms for all but one of the connectivity problems, whose SETH-tight complexity relative to treewidth was studied in [16, 17], when parameterized by clique-width, which is a well-established dense counterpart to treewidth. The single problem which was left open in that series of works was Exact Leaf Spanning Tree.
Aside from the above line of research, the complexity of constrained variants of the (Minimum) Spanning Tree problem was investigated in other related works as well. For example, Gargano and Rescigno [28] studied the variant of computing a spanning tree with minimum number of branching vertices parameterized by modular-width. Moreover, Ganian et al. [26] studied the directed version of degree constrained spanning tree, providing an XP algorithm for this problem when parameterized by clique-width.
Contributions.
The techniques used to obtain the above results – or any other known results on computing constrained spanning trees (see, e.g., [47]) – do not seem to translate into our setting. In fact, as our first contribution (Theorem 5.1) we rule out an algorithm with single exponential running time with constant dependence on the parameter, in contrast to the treewidth-based bounds discussed above. More precisely, we establish an SETH-based lower bound that essentially excludes any algorithm solving Specified Degree MST (the easiest of the three problems considered here) in time faster than , where is the maximum degree requirement in the image of , even if is edge-unweighted. We complement this lower bound with a tight algorithmic upper bound that holds for the most general of the three kinds of degree constraints and for polynomially bounded weight functions. In particular, we obtain a randomized algorithm solving Set of Degrees MST in time (Theorem 4.1) and show that this algorithm can also be translated to treewidth, albeit with an “almost optimal” running time of (Theorem 4.3).
The above results raise the question of whether one can also solve these problems on more general inputs, notably unweighted dense graphs.222Weights in simple dense graphs such as cliques can be used to model instances on arbitrary graphs. More concretely, can we efficiently compute degree-constrained spanning trees by exploiting the classical graph parameter clique-width ()? As our next contribution, in Theorem 3.1 we obtain a highly non-trivial deterministic -time algorithm solving Set of Degrees MST on unweighted -vertex graphs333As is common in related fine-grained upper bounds, we assume that a corresponding decomposition is provided as a witness [19, 1]. – a result which is tight under the ETH [20] and generalizes the known algorithm for Hamiltonian Path under the same parameterization [1].
Under current complexity assumptions, neither Theorem 4.1 nor Theorem 3.1 can be improved to yield fixed-parameter algorithms for our problems of interest under the considered structural parameterizations – indeed, any such algorithm would necessarily violate the aforementioned lower bounds for instances with sufficiently large . However, the question still remains whether one can obtain (tight) fixed-parameter algorithms under different, more restrictive parameterizations. As our third and final set of contributions, we obtain tight “fixed-parameter” running time bounds with respect to the graph parameter cutwidth [10, 44]. In particular, we design a randomized algorithm solving Set of Degrees MST in time (Theorem 4.2) and a complementary SETH-based lower bound which excludes running times of the form, e.g., , even for Specified Degree MST in the edge-unweighted case (Theorem 5.2).
We summarize all these results in Table 1. We remark that all our upper bounds work for the most general variant, namely Set of Degrees MST, while all our lower bounds are obtained for the most restrictive variant, Specified Degree MST, implying that, surprisingly, all three problems have the same complexity for each of the considered parameters.
Finally, we show that our technique for the clique-width upper bound can be adapted to obtain an ETH-tight single-exponential XP algorithm for the Exact Leaf Spanning Tree problem parameterized by clique-width. This settles the last remaining fine-grained question arising from the classical work of Cygan et al. [16, 17], as mentioned in the very recent work of Bojikian and Kratsch [7].
| Parameter | Specified Degree MST | Set of Degrees MST |
|---|---|---|
| Lower bound | Upper bound | |
| Clique-width | [20] | (Thm. 3.1) |
| Treewidth | (Thm. 5.1) | (Thm. 4.3) |
| Pathwidth | (Thm. 5.1) | (Thm. 4.1) |
| Cutwidth | (Thm. 5.2) | (Thm. 4.2) |
2 Problem Definitions
Degree-Constrained Spanning Tree Problems.
We formally define the different variants of the degree-constrained spanning tree problems studied in this work.
(Weighted) Set of Degrees MST
| Input: | Graph , edge weight , function , bound |
|---|---|
| Question: | Does admit a spanning tree of cost at most such that for each ? |
Bounded Degree MST and Specified Degree MST are defined analogously, but there the images of are sets of the form or (for some integer ), respectively. We use to denote . For the unweighted versions of the problems above, we omit the edge weights and the cost bound from the input and hence instances merely consist of a pair . The unweighted versions of all three considered problems are -hard as they admit a straightforward reduction from Hamiltonian Path. Clearly, (weighted) Set of Degrees MST generalizes both (weighted) Bounded Degree MST and (weighted) Specified Degree MST by definition. There is also a trivial weight- and graph-preserving reduction from (weighted) Specified Degree MST to (weighted) Bounded Degree MST where instances of Specified Degree MST not satisfying can be rejected, while an instance that satisfies this equality can be turned into an equivalent instance of Bounded Degree MST by replacing for each with .
Exact Leaf Spanning Tree.
As mentioned earlier, as an additional contribution we also obtain a more efficient algorithm for the Exact Leaf Spanning Tree problem:
Exact Leaf Spanning Tree
| Input: | Graph , integer |
|---|---|
| Question: | Does admit a spanning tree with exactly leaves? |
3 The Clique-Width Algorithms
High-level Summary.
To obtain our algorithm for Set of Degrees MST on (unweighted) graphs parameterized by clique-width, our high-level aim is to employ the typical leaf-to-root dynamic programming approach used in almost all applications of structural graph parameters. There, one intuitively seeks to identify and maintain a correspondence between a suitably defined notion of a “partial solution” in the graph constructed so far – the processed graph – and a (typically combinatorial and compact) representation of that partial solution that is stored as an entry in our records. However, attempting to follow this approach directly for any of our variants over a clique-width decompositions fails, as the number of natural “representations” of partial solutions is not bounded by (for any ). In order to circumvent this issue and obtain the sought-after single-exponential algorithm, we will “decompose” these initial representations into collections of more concise representations for partial solutions.
Towards this, we use a two-step representation procedure which characterizes the properties of the processed graph with a set of “nice” footprints that together are compatible with the same set of partial solutions in the rest of the graph. Note that the representation via footprints that we obtain is, by its nature, existential: instead of representing each partial solution Sol in the processed graph by a single footprint (as is standard), we use a set of nice footprints. Crucially, we provide a guarantee that for every full solution extending Sol there exists at least one footprint that can be extended to a (potentially very different) full solution.
Setup.
Our main contribution is a “requirement shifting” technique, that allows us, in the first place, to build a natural representation of a partial solution, but also more crucially, to reduce each such natural representation into a set of “nice” representations. Concretely, at each step of a clique-decomposition, one builds a partial labeled graph of the final graph with the vertices of partitioned into label classes. In a hypothetical solution, each vertex of will still receive a certain number of additional edges that have not been created yet. We call this number the (remaining) requirement of the vertex, whereas the intersection of the hypothetical solution with forms a spanning forest in that graph.
In a clique-decomposition, all vertices of the same label in will act as twins (i.e., receive the same added neighbors) in future steps of the decomposition. It is not difficult to show that one can accumulate the requirements of all vertices of the same label in each connected component of a partial solution to a single vertex. To see why this is valid, note that if the current partial solution is to be extended to a full solution in the final graph, then we can reroute the edges attached to vertices of the same label in a connected component to a single vertex representing all these vertices, without changing the degree requirements, the connectivity or the acyclicity of the rest of the graph. We refer to Figure 1(a)-(b) for an illustration of this idea.
Note that a connected component of zero requirement cannot be connected to any other component in the rest of the graph. Therefore, such a component either forms a final solution (if it spans all vertices of the graph), or the considered partial solution cannot be extended to a full solution. Thus, we can assume that there is at most one connected component with requirement zero.
Therefore, a natural representation of a partial solution in can be defined as a multiset of vectors of length , where for each connected component of we add a vector to with the th coordinate of this vector is defined by the total remaining degree requirement of all vertices with label in that component (see Figure 1(c)). We call this representation a pattern for . Using standard arguments, one can show that this builds a correct representation of the family of partial solutions, and that can be extended correctly along the decomposition, counting the total number of solutions in the graph. This basic representation via patterns forms the foundation for our arguments. However, the total number of such patterns is not bounded by for any function , as each coordinate of each vector can take values up to , and a dynamic program directly building on these would need to store multisets of up to such vectors.
The Shifting Technique.
In order to overcome this problem, we introduce a second layer of representation, that serves as the baseline for our technique. The end goal is to reduce each pattern to a compact family of “nice” patterns that we use to index our dynamic programming tables. Formally, we define nice patterns as follows:
Definition.
We call a pattern nice if contains at most one vector and for each coordinate , contains at most one non-unit vector such that .
In order to achieve this, we show that each pattern that is not nice can be reduced into two new “nicer” patterns , (i.e., each of , has strictly fewer non-zero entries in non-unit vectors than ). Crucially, behaves as an “OR” of and . We remark that this existence-preserving guarantee differs from the parity-preserving representations typically employed in conjunction with the Cut&Count technique – in fact, our approach yields deterministic algorithms parameterized by clique-width.
In particular, we show on one hand that both and are weaker than in the sense that each valid extension of either of , is also a valid extension for . On the other hand, we also prove that and together are exactly as strong as . In order to build and from , we branch over the ways in which two components of a partial solution are connected to each other in the final graph, which allows to shift (the rest of) the degree requirements between these two components. This allows us to accumulate requirements in fewer “big” components, resulting in nice patterns.
It is not hard to see that the total number of nice patterns is bounded by which matches our desired running time. However, since creating a nice pattern requires us to apply the shifting operation exhaustively, a brute-force recursive application of shifting could lead to an exponential blow-up in the number of patterns before they become nice. In order to overcome this problem, we apply the shifting operation in a carefully structured way which guarantees that the size of the intermediate pattern families never exceeds – see Figure 2 for an overview.
A second challenge the algorithm needs to overcome is that when one would need to add edges inside , it is not immediately obvious how this changes our patterns. We describe how this challenge can be overcome in the next paragraph which details the algorithm’s operation, but to facilitate the presentation of our ideas we design our dynamic programming algorithm along the closely related notion of NLC-width and NLC-decompositions. This is without loss of generality, as a clique-decomposition can be transformed into an NLC-decomposition of the same width in polynomial time [37]. The advantage of NLC-width here is that it avoids adding edges into the graph processed so far, which is important for dealing with the opaque representations we need to use for the algorithm.
The Algorithm.
We process the NLC-decomposition in a bottom-up manner, distinguishing two types of nodes: introduce vertex nodes, and join nodes. The latter performs a disjoint union of two previously constructed graphs, adds edges between these two graphs according to a set of specified label pairs, and relabels vertices based on a specified relabeling function.
For an introduce vertex node, the created graph contains a single partial solution, namely the forest consisting of the single introduced vertex. Here, instead of keeping a single entry in our table for this partial solution, at this stage we already account for all possible target requirements of the created vertex and keep a separate entry for each option.
For a join node, on a high level, we start by combining each pair of nice patterns at the two children nodes. For each such pair, our goal is to iterate over all possible ways of selecting the edges between them to include in the solution. This will result in a new family of partial solutions; after that, we apply the corresponding relabeling operations on the resulting family. We will then represent the resulting partial solutions using a family of nice patterns via the process described in Figure 2, thus completing the computation of our records for the node.
The most challenging part of the algorithm is to handle the aforementioned edge selection step. Note that a join operation could add edges between a pair of partial solutions, meaning that a direct approach would iterate over an exponential number of new partial solutions. To overcome this challenge, we first observe that adding an edge between two “unit-requirements” creates a connected component of zero-requirement, therefore we restrict to choosing at most one such edge. Using this, we can show that the exponentially-many ways of adding edges collapse into possible resulting patterns.
In particular, we distinguish three types of edges: the (at most one) edge between two unit components, edges between two big components, and edges between a big component and a unit component. The algorithm first exhaustively branches over the first two types of edge. Second, we branch to determine the number of edges of the third type incident to each vertex of a big component, and the number of unit components of each label incident to these “type-3” edges. Note that each type-3 edge “consumes” the requirement of this unit component, whereas the exact choice of which unit components are connected to which big components does not affect the resulting representation. Therefore, for each such choice, it suffices to verify the validity of the choice. We show that this final verification can be done via a reduction to the well-known Bipartite -Matching problem, which is solvable in polynomial time [13]. This allows us to establish our first main result:
Theorem 3.1.
There exists an algorithm that, given an -vertex instance of unweighted Set of Degrees MST and an NLC-decomposition of using labels, solves the problem in time .
Exact Leaf Spanning Tree.
Before we proceed with the remaining results for degree-constrained MST problems, we show that the shifting technique developed for Theorem 3.1 can also be adapted to obtain an ETH-tight algorithm for the Exact Leaf Spanning Tree problem parameterized by clique-width. Again, a partial solution of this problem is a spanning forest, where we mainly care about the number of leaves of each label in a connected component of the forest, and whether at least one inner vertex of each label exists in that component. Therefore, a natural definition of a pattern representing a partial solution consists of a vector that counts the number of isolated vertices of each label, and a multiset that contains an element for each remaining component. Each such element is a pair consisting of a vector counting the number of leaves of each label, and a set of labels that contain the labels of the inner vertices in that component.
In contrast to the previous section, instead of shifting requirements, intuitively we shift leaves (and inner vertices) between connected components of a partial solution. This requires us to allow, among others, the construction of connected components consisting of a single inner vertex. We achieve this by adding an additional “virtual” label , that will allow us to build artificial leaves and inner vertices when needed, whose count will not be considered in the final solution. After that we can apply a similar shifting technique as before, where we guess which leaves or inner vertices connect two components in the final solution, and shift all the other leaves and inner vertices between them accordingly.
The same notion of compatibility and equivalence of partial solutions as used for Set of Degrees MST carries over to this setting as well. The main difficulty arises when we attempt to resolve the bottleneck of adding edges between two partial solutions. In particular, the previous solution via using -matching will not apply to this setting – indeed, it is possible to create an exponential number of valid non-collapsing representations by adding different sets of join edges to a pair of partial solutions. This means that iterating over all possible representations instead of sets of edges will still not suffice to achieve our targeted running time bound. Intuitively, this issue arises because for Exact Leaf Spanning Tree, the result of adding an edge between a unit component and a big component depends on the label of the isolated vertex, whereas for Set of Degrees MST this was not the case.
We overcome this problem by introducing a more fine-grained notion of equivalence, where we require two equivalent partial solutions to not only complete the same set of partial solutions in the rest of the graph (as was the case for Set of Degrees MST), but additionally that the number of added edges between each pair of labels is the same. We note that, while this notion of equivalence is stronger than the one defined previously, the shifting operation employed there would also preserve this stronger notion of equivalence. Crucially, with this stronger notion of equivalence we can avoid iterating over all subsets of edges, and can instead add the edges one by one and reduce the resulting partial solutions after adding each edge. While more technically involved, this approach avoids the aforementioned exponential blow-up and yields an algorithm with the desired running time.
Theorem 3.2.
There exists an algorithm that, given an -vertex graph , an integer and an NLC-decomposition of using labels, decides whether contains a spanning tree of exactly leaves in time .
4 Cut & Count
To obtain our algorithms for pathwidth, treewidth and cutwidth, we make use of the aforementioned Cut&Count technique, that was introduced to deal with connectivity constraints in parameterized algorithms [17]. This technique is a two step randomized approach: First, using the isolation lemma, one can reduce a decision version of a connectivity problem to the counting (modulo 2) version. After that, instead of counting the solutions, the technique counts the so called “consistent cuts” of all relaxed (non-connected) solutions. This is equivalent to counting the number of ways to partition the vertices of a relaxed solution into two sides of a cut, such that each connected component is fully contained in one side of the cut, and by fixing the side of the cut of a single solution vertex. As a result, a relaxed solution admits an odd number of cuts if and only if it is connected. Therefore, non-connected solutions cancel out in the total count (modulo 2). Our algorithms combine this technique with a degree-counting argument.
Unfortunately, a direct application of this technique would not be able to break the barrier even for pathwidth, thus keeping a gap between the upper bound and our best achievable lower bound for each of these parameters. We close this gap for pathwidth by a novel “lazy coloring” technique, where the algorithm decides dynamically when to “fix” or “forget” the side of a consistent cut a vertex belongs to in a partial solution, depending on the current degree of that vertex in a partial solution (instead of statically fixing the side when the vertex is introduced).
Theorem 4.1.
There exists a Monte Carlo algorithm that, given an instance of the Set of Degrees MST problem together with a path decomposition of of width , solves the problem in time . The algorithm produces false negatives only, and outputs the right answer with probability at least one half.
In order to get a tight algorithm when parameterized by cutwidth, we use a given linear arrangement of width to build a path decomposition of the same width, with some additional desired properties. Using a state counting argument based on the AM/GM inequality [36], we show that the previous dynamic programming algorithm for pathwidth, based on our “lazy coloring” technique, only defines states at each bag of this path decomposition, which yields a SETH-tight single exponential bound for cutwidth as well.
Theorem 4.2.
There exists a Monte Carlo algorithm that, given an instance of the Set of Degrees MST problem, together with a linear arrangement of of width , solves this problem in time . The algorithm produces false negatives only, and outputs the right answer with probability at least one half.
Finally, while we cannot achieve the same improvement for treewidth, obtaining the current bound already requires non-trivial fast convolution techniques. We follow the approach of van Rooij [46] by applying multidimensional fast Fourier transformation. While a trivial non-cyclic application would add a factor to the base of the running time, we show, following an argument from [46] for generalized domination problems, that this additional factor can be omitted by the utilization of the so-called “filters” that cancel out cyclic dependencies while only adding a polynomial factor to the running time. As a result we obtain the following.
Theorem 4.3.
There exists a Monte Carlo algorithm that, given an instance of the Set of Degrees MST problem together with a nice tree decomposition of of width , solves the problem in time . The algorithm produces false negatives only and outputs the right answer with probability at least one half.
5 Lower Bounds
For our tight SETH-based lower bounds for pathwidth and cutwidth, on a high level we follow the approach of Lokshtanov, Marx, and Saurabh [40] – but with a twist. We start with an overview of this approach, which is essentially a reduction from a constraint satisfiability problem [39] to our problem, Specified Degree MST. For each variable, we construct a sequence of small components, where two consecutive components are separated by a cut-vertex; see Figure 3 for an illustration for pathwidth. These components encode the value of the corresponding variable, and we use the specified degree constraint to make sure that they encode the same value. Then for each constraint of the satisfiability instance, we have a gadget to combine a component from each involved variable to determine if the constraint is satisfied. Finally, we need to ensure that the solution is a spanning tree.
While the description above follows a general template for a SETH-reduction, our reductions also incorporate a new technique. This technique arises from the difficulty of obtaining a classical “one-to-one” reduction to our problem using standard gadgets. Intuitively, several constraints imposed by the desired lower bounds and the problem conflict with each other. For example, due to the specified degree constraint, in a one-to-one reduction, we may want to connect the first and the last components of the variable gadget so that the total degrees are preserved regardless of the value of the variable. However, it is not obvious how to do so while keeping both the pathwidth of the constructed graph and the maximum degree of the solution small. To circumvent this issue, we employ Turing reductions instead of the usual one-to-one reductions used for SETH; to the best of our knowledge, this is the first time such reductions are used for structural parameters. In the example above, with this approach, instead of connecting the first and the last components of the variable gadget, we can instead have some degree absorbers to accommodate the excess degree at each end of the gadget; although we do not know exactly what this excess degree is, we can show that there are only a polynomial number of possibilities across all variable gadgets. Using this technique, we can prove the desired result for pathwidth.
Theorem 5.1.
For every and every , unweighted Specified Degree MST cannot be solved in time unless the Strong Exponential Time Hypothesis fails.
We note that such a lower bound is highly unlikely to hold for , since this case is equivalent (up to a polynomial factor in the running time) to the Hamiltonian Path problem, which can be solved in (SETH-tight) running time [15].
There is also another highly non-standard behavior in our reduction specific to cutwidth. Instead of producing graphs with cutwidth where is the input complexity measure and is some fixed constant, we can only obtain graphs with cutwidth , where . Under normal circumstances, this would not allow us to obtain a tight bound under SETH. However, here we construct a family of reductions that allows us to set arbitrarily close to and show that this still suffices to achieve the following desired bound.
Theorem 5.2.
Assuming SETH, the unweighted Specified Degree MST problem cannot be solved in time for any .
6 Concluding Remarks
Our results not only provide a comprehensive and in-depth overview of the fine-grained complexity of computing a fundamental class of spanning trees, but also develop new techniques which we believe are applicable to other problems, including those related to graph factoring. One task left for future work is closing the small remaining gap between the upper bound for treewidth (Theorem 4.3) and the lower bound for pathwidth (Theorem 5.1); presently, it seems difficult to obtain further progress in either of these two directions. We remark that a similar gap also exists for the classical Hamiltonian Cycle problem [15], which has a tight lower and upper bound, but no matching tight bound for treewidth is known.
Alternatively, one may ask whether using more restrictive structural parameterizations – such as the treedepth of the input graph – can be used to design fixed-parameter algorithms for instances with large , similarly as was achieved in Theorem 4.2. Finally, a long-standing open question in the field [17, 42] is whether Cut&Count based algorithms can be derandomized while achieving the same asymptotic running time. To the best of our knowledge, all known deterministic techniques for connectivity problems parameterized by pathwidth (and treewidth) yield single exponential running time but with a blow up in the base of the exponent [2, 48, 22].
References
- [1] Benjamin Bergougnoux, Mamadou Moustapha Kanté, and O-joung Kwon. An optimal XP algorithm for hamiltonian cycle on graphs of bounded clique-width. Algorithmica, 82(6):1654–1674, 2020. doi:10.1007/S00453-019-00663-9.
- [2] Hans L. Bodlaender, Marek Cygan, Stefan Kratsch, and Jesper Nederlof. Deterministic single exponential time algorithms for connectivity problems parameterized by treewidth. Inf. Comput., 243:86–111, 2015. doi:10.1016/J.IC.2014.12.008.
- [3] Narek Bojikian, Vera Chekan, Falko Hegerfeld, and Stefan Kratsch. Tight bounds for connectivity problems parameterized by cutwidth. In Petra Berenbrink, Patricia Bouyer, Anuj Dawar, and Mamadou Moustapha Kanté, editors, 40th International Symposium on Theoretical Aspects of Computer Science, STACS 2023, Hamburg, Germany, March 7-9, 2023, volume 254 of LIPIcs, pages 14:1–14:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPIcs.STACS.2023.14.
- [4] Narek Bojikian, Alexander Firbas, Robert Ganian, Hung P. Hoang, and Krisztina Szilágyi. Fine-grained complexity of computing degree-constrained spanning trees. CoRR, abs/2503.15226, 2025. doi:10.48550/arXiv.2503.15226.
- [5] Narek Bojikian and Stefan Kratsch. A tight monte-carlo algorithm for steiner tree parameterized by clique-width. In Karl Bringmann, Martin Grohe, Gabriele Puppis, and Ola Svensson, editors, 51st International Colloquium on Automata, Languages, and Programming, ICALP 2024, Tallinn, Estonia, July 8-12, 2024, volume 297 of LIPIcs, pages 29:1–29:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPIcs.ICALP.2024.29.
- [6] Narek Bojikian and Stefan Kratsch. Tight bounds for connected odd cycle transversal parameterized by clique-width. In Akanksha Agrawal and Erik Jan van Leeuwen, editors, 20th International Symposium on Parameterized and Exact Computation, IPEC 2025, Warsaw, Poland, September 17-19, 2025, volume 358 of LIPIcs, pages 19:1–19:15. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. doi:10.4230/LIPIcs.IPEC.2025.19.
- [7] Narek Bojikian and Stefan Kratsch. Tight bounds for feedback vertex set parameterized by clique-width. arXiv preprint arXiv:2512.01900, 2025. doi:10.48550/arXiv.2512.01900.
- [8] Bernard Chazelle. A minimum spanning tree algorithm with inverse-ackermann type complexity. J. ACM, 47(6):1028–1047, 2000. doi:10.1145/355541.355562.
- [9] Bernard Chazelle. The soft heap: an approximate priority queue with optimal error rate. J. ACM, 47(6):1012–1027, 2000. doi:10.1145/355541.355554.
- [10] Fan RK Chung. On the cutwidth and the topological bandwidth of a tree. SIAM Journal on Algebraic Discrete Methods, 6(2):268–277, 1985.
- [11] Kamiel Cornelissen, Ruben Hoeksma, Bodo Manthey, N. S. Narayanaswamy, C. S. Rahul, and Marten Waanders. Approximation algorithms for connected graph factors of minimum weight. Theory Comput. Syst., 62(2):441–464, 2018. doi:10.1007/S00224-016-9723-Z.
- [12] Gérard Cornuéjols. General factors of graphs. J. Comb. Theory B, 45(2):185–198, 1988. doi:10.1016/0095-8956(88)90068-8.
- [13] William J Cook William H Cunningham and William R Pulleyblank Alexander Schrijver. Combinatorial optimization. NY, United States, 1005, 1998.
- [14] Radu Curticapean, Nathan Lindzey, and Jesper Nederlof. A tight lower bound for counting hamiltonian cycles via matrix rank. In Artur Czumaj, editor, Proceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2018, New Orleans, LA, USA, January 7-10, 2018, pages 1080–1099. SIAM, 2018. doi:10.1137/1.9781611975031.70.
- [15] Marek Cygan, Stefan Kratsch, and Jesper Nederlof. Fast hamiltonicity checking via bases of perfect matchings. J. ACM, 65(3):12:1–12:46, 2018. doi:10.1145/3148227.
- [16] Marek Cygan, Jesper Nederlof, Marcin Pilipczuk, Michal Pilipczuk, Johan M. M. van Rooij, and Jakub Onufry Wojtaszczyk. Solving connectivity problems parameterized by treewidth in single exponential time. In Rafail Ostrovsky, editor, IEEE 52nd Annual Symposium on Foundations of Computer Science, FOCS 2011, Palm Springs, CA, USA, October 22-25, 2011, pages 150–159. IEEE Computer Society, 2011. doi:10.1109/FOCS.2011.23.
- [17] Marek Cygan, Jesper Nederlof, Marcin Pilipczuk, Michal Pilipczuk, Johan M. M. van Rooij, and Jakub Onufry Wojtaszczyk. Solving connectivity problems parameterized by treewidth in single exponential time. ACM Trans. Algorithms, 18(2):17:1–17:31, 2022. doi:10.1145/3506707.
- [18] Mark N Ellingham, Yunsun Nam, and Heinz-Jürgen Voss. Connected (g, f)-factors. Journal of Graph Theory, 39(1):62–75, 2002. doi:10.1002/JGT.10019.
- [19] Fedor V. Fomin, Petr A. Golovach, Daniel Lokshtanov, and Saket Saurabh. Almost optimal lower bounds for problems parameterized by clique-width. SIAM J. Comput., 43(5):1541–1563, 2014. doi:10.1137/130910932.
- [20] Fedor V. Fomin, Petr A. Golovach, Daniel Lokshtanov, Saket Saurabh, and Meirav Zehavi. Clique-width III: hamiltonian cycle and the odd case of graph coloring. ACM Trans. Algorithms, 15(1):9:1–9:27, 2019. doi:10.1145/3280824.
- [21] Fedor V. Fomin, Fabrizio Grandoni, Daniel Lokshtanov, and Saket Saurabh. Sharp separation and applications to exact and parameterized algorithms. Algorithmica, 63(3):692–706, 2012. doi:10.1007/S00453-011-9555-9.
- [22] Fedor V. Fomin, Daniel Lokshtanov, and Saket Saurabh. Efficient computation of representative sets with applications in parameterized and exact algorithms. In Chandra Chekuri, editor, Proceedings of the Twenty-Fifth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2014, Portland, Oregon, USA, January 5-7, 2014, pages 142–151. SIAM, 2014. doi:10.1137/1.9781611973402.10.
- [23] Martin Fürer and Balaji Raghavachari. Approximating the minimum degree spanning tree to within one from the optimal degree. In Greg N. Frederickson, editor, Proceedings of the Third Annual ACM/SIGACT-SIAM Symposium on Discrete Algorithms, 27-29 January 1992, Orlando, Florida, USA, pages 317–324. ACM/SIAM, 1992. URL: http://dl.acm.org/citation.cfm?id=139404.139469.
- [24] Harold N. Gabow and Piotr Sankowski. Algorithms for weighted matching generalizations I: bipartite graphs, b-matching, and unweighted f-factors. SIAM J. Comput., 50(2):440–486, 2021. doi:10.1137/16M1106195.
- [25] Harold N. Gabow and Piotr Sankowski. Algorithms for weighted matching generalizations II: f-factors and the special case of shortest paths. SIAM J. Comput., 50(2):555–601, 2021. doi:10.1137/16M1106225.
- [26] Robert Ganian, Petr Hlinený, and Jan Obdrzálek. Clique-width: When hard does not mean impossible. In Thomas Schwentick and Christoph Dürr, editors, 28th International Symposium on Theoretical Aspects of Computer Science, STACS 2011, Dortmund, Germany, March 10-12, 2011, volume 9 of LIPIcs, pages 404–415. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2011. doi:10.4230/LIPIcs.STACS.2011.404.
- [27] Robert Ganian, N. S. Narayanaswamy, Sebastian Ordyniak, C. S. Rahul, and M. S. Ramanujan. On the complexity landscape of connected f-factor problems. Algorithmica, 81(6):2606–2632, 2019. doi:10.1007/S00453-019-00546-Z.
- [28] Luisa Gargano and Adele A. Rescigno. Spanning trees minimizing branching costs. Discret. Math. Theor. Comput. Sci., 27(2), 2025. doi:10.46298/DMTCS.13949.
- [29] L. A. Goddyn. Some open problems I like, 2004. URL: https://www.sfu.ca/˜goddyn/Problems/problems.html.
- [30] Michel X. Goemans. Minimum bounded degree spanning trees. In 47th Annual IEEE Symposium on Foundations of Computer Science (FOCS 2006), 21-24 October 2006, Berkeley, California, USA, Proceedings, pages 273–282. IEEE Computer Society, 2006. doi:10.1109/FOCS.2006.48.
- [31] Falko Hegerfeld and Stefan Kratsch. Solving connectivity problems parameterized by treedepth in single-exponential time and polynomial space. In Christophe Paul and Markus Bläser, editors, 37th International Symposium on Theoretical Aspects of Computer Science, STACS 2020, March 10-13, 2020, Montpellier, France, volume 154 of LIPIcs, pages 29:1–29:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2020. doi:10.4230/LIPIcs.STACS.2020.29.
- [32] Falko Hegerfeld and Stefan Kratsch. Tight algorithms for connectivity problems parameterized by clique-width. In Inge Li Gørtz, Martin Farach-Colton, Simon J. Puglisi, and Grzegorz Herman, editors, 31st Annual European Symposium on Algorithms, ESA 2023, September 4-6, 2023, Amsterdam, The Netherlands, volume 274 of LIPIcs, pages 59:1–59:19. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPIcs.ESA.2023.59.
- [33] Falko Hegerfeld and Stefan Kratsch. Tight algorithms for connectivity problems parameterized by modular-treewidth. In Daniël Paulusma and Bernard Ries, editors, Graph-Theoretic Concepts in Computer Science - 49th International Workshop, WG 2023, Fribourg, Switzerland, June 28-30, 2023, Revised Selected Papers, volume 14093 of Lecture Notes in Computer Science, pages 388–402. Springer, 2023. doi:10.1007/978-3-031-43380-1_28.
- [34] Russell Impagliazzo and Ramamohan Paturi. On the complexity of k-sat. J. Comput. Syst. Sci., 62(2):367–375, 2001. doi:10.1006/JCSS.2000.1727.
- [35] Russell Impagliazzo, Ramamohan Paturi, and Francis Zane. Which problems have strongly exponential complexity? J. Comput. Syst. Sci., 63(4):512–530, 2001. doi:10.1006/JCSS.2001.1774.
- [36] Bart M. P. Jansen and Jesper Nederlof. Computing the chromatic number using graph decompositions via matrix rank. Theor. Comput. Sci., 795:520–539, 2019. doi:10.1016/J.TCS.2019.08.006.
- [37] Ojvind Johansson. Clique-decomposition, nlc-decomposition, and modular decomposition-relationships and results for random graphs. Congressus Numerantium, pages 39–60, 1998.
- [38] Nathan Klein and Neil Olver. Thin trees for laminar families. In 64th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2023, Santa Cruz, CA, USA, November 6-9, 2023, pages 50–59. IEEE, 2023. doi:10.1109/FOCS57990.2023.00011.
- [39] Michael Lampis. Finer tight bounds for coloring on clique-width. SIAM J. Discrete Math., 34(3):1538–1558, 2020. doi:10.1137/19M1280326.
- [40] Daniel Lokshtanov, Dániel Marx, and Saket Saurabh. Known algorithms on graphs of bounded treewidth are probably optimal. ACM Trans. Algorithms, 14(2):13:1–13:30, 2018. doi:10.1145/3170442.
- [41] Jesper Nederlof. Fast polynomial-space algorithms using inclusion-exclusion. Algorithmica, 65(4):868–884, 2013. doi:10.1007/S00453-012-9630-X.
- [42] Jesper Nederlof, Michal Pilipczuk, Céline M. F. Swennenhuis, and Karol Wegrzycki. Hamiltonian cycle parameterized by treedepth in single exponential time and polynomial space. SIAM J. Discret. Math., 37(3):1566–1586, 2023. doi:10.1137/22M1518943.
- [43] Mohit Singh and Lap Chi Lau. Approximating minimum bounded degree spanning trees to within one of optimal. J. ACM, 62(1):1:1–1:19, 2015. doi:10.1145/2629366.
- [44] Dimitrios M. Thilikos, Maria J. Serna, and Hans L. Bodlaender. Cutwidth I: A linear time fixed parameter algorithm. J. Algorithms, 56(1):1–24, 2005. doi:10.1016/J.JALGOR.2004.12.001.
- [45] William Thomas Tutte. The factors of graphs. Canadian Journal of Mathematics, 4:314–328, 1952.
- [46] Johan M. M. van Rooij. Fast algorithms for join operations on tree decompositions. In Fedor V. Fomin, Stefan Kratsch, and Erik Jan van Leeuwen, editors, Treewidth, Kernels, and Algorithms - Essays Dedicated to Hans L. Bodlaender on the Occasion of His 60th Birthday, volume 12160 of Lecture Notes in Computer Science, pages 262–297. Springer, 2020. doi:10.1007/978-3-030-42071-0_18.
- [47] Luiz Viana, Manoel Campêlo, Ignasi Sau, and Ana Silva. A unifying model for locally constrained spanning tree problems. Journal of Combinatorial Optimization, 42(1):125–150, 2021. doi:10.1007/S10878-021-00740-2.
- [48] Michal Wlodarczyk. Clifford algebras meet tree decompositions. Algorithmica, 81(2):497–518, 2019. doi:10.1007/S00453-018-0489-3.
