Tight Bounds for Some Classical Problems Parameterized by Cutwidth
Abstract
Cutwidth is a widely studied parameter and it quantifies how well a graph can be decomposed along small edge-cuts. It complements pathwidth, which captures decomposition by small vertex separators, and it is well-known that cutwidth upper-bounds pathwidth. The SETH-tight parameterized complexity of problems on graphs of bounded pathwidth (and treewidth) has been actively studied over the past decade while for cutwidth the complexity of many classical problems remained open.
For Hamiltonian Cycle, it is known that a algorithm is optimal for pathwidth under SETH [Cygan et al. JACM 2018]. Van Geffen et al. [J. Graph Algorithms Appl. 2020] and Bojikian et al. [STACS 2023] asked which running time is optimal for this problem parameterized by cutwidth. We answer this question with by providing matching upper and lower bounds. Second, as our main technical contribution, we close the gap left by van Heck [2018] for Partition Into Triangles (and Triangle Packing) by improving both upper and lower bound and getting a tight bound of , which to our knowledge exhibits the only known tight non-integral basis apart from Hamiltonian Cycle [Cygan et al. JACM 2018] and -Hitting Set [SODA 2025]. We show that the cuts inducing a disjoint union of paths of length three (unions of so-called -cuts) lie at the core of the complexity of the problem – usually lower-bound constructions use simpler cuts inducing either a matching or a disjoint union of bicliques. Finally, we determine the optimal running times for Max Cut () and Induced Matching () by providing matching lower bounds for the existing algorithms – the latter result also answers an open question for treewidth by Chaudhary and Zehavi [WG 2023]. ††Due to space constraints, we defer full proofs and technical details to the full version [8].
Keywords and phrases:
Parameterized complexity, cutwidth, Hamiltonian cycle, triangle packing, max cut, induced matchingCopyright and License:
2012 ACM Subject Classification:
Theory of computation Parameterized complexity and exact algorithmsEditors:
Anne Benoit, Haim Kaplan, Sebastian Wild, and Grzegorz HermanSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
In parameterized complexity the (worst-case) complexity of problems is expressed in terms of input size and one or more parameters, often denoted . The parameter can, for example, be the size of the sought solution or some measure of the structure of the input. The goal is to understand the influence of solution size or structure on the complexity. A problem is said to be fixed-parameter tractable with parameter if it admits an algorithm with running time of (also denoted by ) for some computable function . For -hard problems, this function is usually exponential and it may be doubly exponential or worse.
This motivates a line of research devoted to the study of the smallest possible functions for various problem-parameter combinations. In this context, one is often interested in -hard problems and hence, conjectures stronger than are assumed for conditional lower bounds. For example, it has been shown that unless the Exponential Time Hypothesis (ETH) fails, some problems do not admit algorithms with running time for any constant (e.g., [38]) – algorithms with such a running time are called single-exponential. For problems admitting single-exponential algorithms, it is natural to search for the smallest value of for which such an algorithm exists. An even stronger conjecture called the Strong Exponential Time Hypothesis (SETH) has been assumed to prove for many problems that existing algorithms with some running time are essentially optimal, i.e., for any , there is no algorithm for this problem running in time . This conjecture states, informally speaking, that the SAT problem cannot be solved much more efficiently than brute-forcing all truth-value assignments.
SETH-tight complexity of problems parameterized by treewidth has been actively studied over the last decade. This was initiated by Lokshtanov et al. [37] who showed that for many classical graph problems (e.g., Independent Set or Max Cut) the folklore dynamic-programming (DP) algorithms are essentially optimal under SETH. In parallel, there is also a line of research devoted to accelerating the existing DP algorithms by employing more careful analysis and advanced tools like fast subset convolution (e.g., [4, 48, 5]), Discrete Fourier Transform (e.g., [47]), rank-based approach (e.g., [6]), isolation lemma ([40]), and Cut&Count (e.g., [17]), we refer to the survey by Nederlof [41] for more details.
Such dynamic-programming algorithms on graphs of bounded treewidth employ the fact that those graphs can be decomposed along small vertex separators and therefore, when processing this decomposition in a bottom-up way, one only needs to remember how a partial solution interacts with the current small separator, also called a bag. Thus it is also natural to study parameters based on small edge-cuts (as edge-counterparts of vertex separators). A linear arrangement of a graph places its vertices on a horizontal line so that no two vertices have the same -coordinate. Now suppose every edge is drawn as an -monotone curve, then the cutwidth of this linear arrangement is the maximum number of edges crossing any vertical line – observe that the edges crossing such a line separate the vertices on the left side of the vertical line from the vertices on the right side so they form an edge-cut. The cutwidth of the graph, denoted , is then the minimum over all of its linear arrangements. It is well-known that pathwidth, denoted , can be defined similarly but instead of the edges crossing the vertical line, one counts its end-vertices on, say, the right side of the cut. In particular, this implies that the cutwidth of a graph upper-bounds its pathwidth.
Due to this relation, every -time algorithm is also a -time algorithm. However, it is possible that a problem admits a more efficient algorithm when parameterized by cutwidth than when parameterized by pathwidth. For example, Edge Disjoint Paths is -hard for pathwidth [20] but becomes for cutwidth [24]. This difference sparked deeper interest in studying the cutwidth parameter, and in distinguishing problems whose complexity differ between these two parameterizations. On a finer level, for some of the problems for which the SETH-tight complexity parameterized by treewidth is known, the study continued for the parameterization by cutwidth. The SETH-tight bounds parameterized by cutwidth are known for Independent Set and Dominating Set [45], Odd Cycle Transversal [7], Chromatic Number [30], #-Coloring [26], as well as a list of connectivity problems (e.g., Feedback Vertex Set and Steiner Tree) [7]. The Chromatic Number problem exposes again a particularly interesting behavior: for treewidth, it is known that for any , the folklore algorithm is optimal under SETH [37], but for cutwidth Jansen and Nederlof [30] proved that there is a (randomized) algorithm computing the chromatic number of the graph in time , i.e., independent of the number of colors in question. Recently, a notable progress was also made for -Homomorphism: Groenland et al. [25] provided a non-algorithmic proof of the existence of so-called representative sets of certain small size on which a dynamic-programming algorithm can rely, and they also provided a lower-bound construction matching the size of these representative sets. They leave it open, though, whether representative sets of small size can also be found efficiently.
The above-mentioned paper by Lokshtanov et al. [37] provided SETH-tight lower bounds for six classical graph problems, namely Independent Set, Dominating Set, Partition Into Triangles, Odd Cycle Transversal, -Coloring (for any fixed ), and Max Cut when parameterized by treewidth [37]. The SETH-tight complexity of these problems parameterized by cutwidth was only partially known till now.
Our results.
As a first contribution, we resolve the complexity of the two remaining problems from [37], namely Partition Into Triangles (and also Triangle Packing) as well as Max Cut when parameterized by cutwidth. The study of Partition into Triangles parameterized by cutwidth was initiated by van Heck [46]: it was shown that the problem admits a algorithm and no algorithm exists for any unless SETH fails. In this work, we close this gap by providing an algorithm that solves Triangle Packing in time , together with a matching SETH-based lower bound for the Partition Into Triangles. There is a trivial reduction from Partition Into Triangles to Triangle Packing and hence, is the SETH-optimal running time for both problems. Our algorithm is a straightforward dynamic programming over a path decomposition. While a simple analysis yields running time over a path decomposition of width , we show that given a linear arrangement of cutwidth , one can construct a specific path decomposition form , where a careful analysis shows that the number of states in the dynamic programming is bounded by , resulting in the desired running time. A bottleneck for the running time are the so-called -cuts, i.e., bipartite graphs consisting of a disjoint paths of length three. We show that these cuts inherently determine the complexity of this problem, as the lower bound construction also relies on them. For Max Cut we provide a lower bound showing that no algorithm can solve this problem for any implying that the folklore algorithm for tree decompositions is optimal for cutwidth as well.
Apart from these two problems, we resolve two further open questions. We show that SETH-tight complexity of Hamiltonian Cycle is when parameterized by cutwidth – this was asked by van Geffen et al. [45] and Bojikian et al. [7]. Let us remark, that although for pathwidth it is known that the algorithm is optimal for Hamiltonian Cycle, the complexity relative to treewidth remains a challenging open problem. Finally, Chaudhary and Zehavi [13] developed a algorithm for Induced Matching problem and an SETH-based lower bound excluding algorithms for any . They conjectured that their algorithm is optimal and asked for a matching lower bound. We confirm their conjecture and provide a stronger result, namely that Induced Matching cannot be solved in for any when parameterized by cutwidth – this resolves the complexity of the problem for both treewidth and cutwidth. 111Recently, the conjecture was also independently confirmed by Vasilakis and Lampis [36] by providing a matching lower bound for the parameterization by pathwidth. We remark that our lower bound for cutwidth is a stronger result.
| Triangle Packing (TP) | ||
| Partition into Trianlges (PT) | ||
| Hamiltonian Cycle (HC) | ||
| Max Cut (MC) | ||
| Induced Matching (IM) |
Related Work.
The (S)ETH tight complexity of problems parameterized by structural parameters has been widely studied. Apart from the already mentioned results, there is a long list of papers related to such algorithms on graphs of bounded treewidth (e.g., [10, 14, 15, 18, 19, 21, 22, 32, 43, 44]), treedepth (e.g., [27, 31, 32, 42]), clique-width (e.g., [1, 2, 9, 23, 28, 31, 33]), rank-width (e.g., [3, 11]), and cutwidth (e.g., [7, 39]). There is also a line of work devoted to conjectures weaker than SETH and yielding the same lower bounds for structural parameterizations (e.g., [12, 35, 34]).
Organization.
We start by providing a short summary of the used notation. Section 3 is devoted to Triangle Packing, there we provide our algorithm together with the main steps required to justify its running time. We also sketch the lower-bound construction. After that in Section 4 we present the main idea behind the lower bound state the lower bound for Hamiltonian Cycle. In Section 5 we state our lower bounds for Induced Matching and Max Cut. We conclude in Section 6 by providing some open questions.
2 Preliminaries
We use notation to suppress factors polynomial in the input size. For an integer by we denote the set (in particular, we have ) and by we denote the set . For a vector over a ground set and a mapping for some set , we denote by the vector .
Given a graph and a vertex , the neighborhood of in is defined as . We omit the index when clear from the context. For an edge set , we define and we define as the set of end-points of . For a vertex set and a vertex we define and . We define as the set of all connected components of , where a connected component of is a maximal connected subgraph of .
We base our lower bounds on the Strong Exponential Time Hypothesis (SETH) [29]:
Conjecture 1 (SETH).
For every , there exists a constant such that -SAT cannot be solved in time , where is the number of variables.
Cutwidth.
A linear arrangement of a graph is a linear ordering of . We define , and for . We define the cut-graph at as the bipartite graph . The set denotes the edge set of . The cutwidth of is defined as . The cutwidth of is defined as , where the minimum is taken over all linear arrangements of . We define and as the set of the left and right endpoints of edges in , respectively. Finally, for , we define , i.e., contains all left end-points of the edges of together with .
Path decompositions.
A path decomposition of a graph is a pair , where is a simple path and the following properties hold:
-
1.
For every vertex , the set induces a non-empty connected subgraph of .
-
2.
For every edge , there exists a node with .
Let be the nodes of in the order they occur on . The sets are called bags. For every , we define , , and . A path decomposition is nice, if we have and for any two consecutive nodes on , we have . Hence, one can define a nice path decomposition by a sequence of introduce- and forget-vertex operations. It is sometimes useful to have designated introduce-edge operations as well, in this case, we call the path decomposition very nice. For a node of a very nice path decomposition, by we denote the (not necessarily induced) subgraph of whose vertex resp. edge set consists of the vertices resp. edges of introduced in this decomposition up to the node .
3 Triangle Packing
A triangle packing of a graph is a subgraph of such that each connected component of is a cycle of length three, the size of is the number of its connected components. In the Triangle Packing problem, given a graph and a positive integer , we are asked whether there exists a triangle packing of size in . In the Partition into Triangles problem, we are asked whether a triangle packing of size exists in . We obtain the following result:
Theorem 2.
There exists an algorithm that given an instance of Triangle Packing together with a linear arrangement of of width at most , runs in time and outputs whether admits a triangle packing of size .
We emphasize that in what follows we only provide a sketch of the proof of this theorem and we refer to the full version for all details.
Let be an instance of Triangle Packing and let be a linear arrangement of of cutwidth at most . First, we describe a dynamic-programming algorithm over a nice path decomposition of . After that, we construct a nice path decomposition of from and show that it has certain useful properties, namely, the number of possible states of our dynamic-programming algorithm is bounded for each bag.
Algorithm over a path decomposition
Let be a nice path decomposition of . For every node of , every set , and every integer , we define the family of all triangle packings of of size whose intersection with is precisely and furthermore, each triangle in this packing contains at least one vertex of (i.e., forgotten already). We define the set consisting of all subsets such that is non-empty. We call the set of realizable states at . For a set , let be the set of states “induced” by the set .
A straightforward algorithm computing all sets can be informally summarized as follows. Let be the node preceding . At every node forgetting a vertex, say , we iterate over all triangles containing the vertex whose other end-points are still in the bag, iterate over all sets in , and “combine” the two if they are vertex-disjoint. For every we also add to as the corresponding triangle packing of remains “valid” in . At every introduce-node we just keep the family . Recall that the root-node, say , of the nice path decomposition is an empty bag. Then the graph admits a triangle packing of size if and only if holds. We can show that if denotes the maximum size of a family over all nodes and all integers , then all families can be computed in time . In order to achieve this, we describe a data structure that allows the insertion of a single “state” in time polynomial in as well as the iteration over all states present in the data structure in time . In the remainder of the proof, we show how to get a nice path decomposition of from its linear arrangement so that the value of is sufficiently small.
From linear arrangement to path decomposition
To obtain the desired path decomposition we will proceed as follows. We will first define a set of the so-called checkpoint bags corresponding to the cut graphs of . Later we will show how to add so-called transition bags to turn this sequence into a nice path decomposition, while still keeping the number of possible states bounded.
First, for a bipartite graph (think of ), we define the sets and by an iterative process formally defined next. The set is intended to represent the set of vertices from the left side of the cut that are forgotten already, while the set corresponds to the vertices on the right side of the cut that are introduced already. To ensure that the corresponding “ordering” of the forget- and introduce-operations even yields a valid path decomposition, i.e., no vertex is forgotten before one of its neighbors is introduced, we will ensure that contains all neighbors of .
Clearly, one can safely forget a vertex if all of its neighbors have already been introduced. We additionally apply the following non-trivial rule. We forget a vertex if (1) it has a single neighbor in that is not introduced yet, and (2) the vertex has degree at most two in . In this case we introduce the unique missing neighbor of before forgetting . We define as the vertices on the right side that have not been introduced yet, i.e., do not belong to . We provide formal definitions of these sets (see Figure 1 for an illustration):
Definition 3.
Let be a bipartite graph. First, we define . For , let , and let . We define the sets recursively as follows:
In the full version we show, that there exists an integer such that for all . Let be the smallest such value. We define , , and . We also define the sets and as the vertices of that have exactly one or at least two neighbors in , respectively. Finally, we define the bag at as .
For every , we define , , , , and . We call the set of forgotten vertices at , the set of introduced vertices, and the set of unintroduced vertices.
It can be shown that is a vertex separator for every : this follows from the fact that is the neighborhood of . Furthermore, we show in the full version that if in Definition 3 instead of , we start with the set of the vertices already forgotten at the previous cut, then we obtain the same set of vertices forgotten at the current cut. From this we can then conclude that a nice path decomposition of can be constructed by using as the main building blocks. We emphasize that the sequence of vertex separators itself does not even necessarily contain every vertex of . To resolve this, we will turn it into a nice path decomposition by adding the so-called transition bags. The bags are called the checkpoint bags, and denote the corresponding nodes in the arising path decomposition.
The reason why we distinguish the sets and is two-fold. First, to bound the number of states in terms of cutwidth, we will “assign” the edges of the cut to certain sets of vertices in the bag, these sets are then called components. Since every vertex in has at least two neighbors in , and since no vertex of belongs to the bag by definition, we can assign at least two cut-edges to every vertex of . Based on this, we show that for some components of a specific structure, enough edges of the cut can be assigned to these components to “allow” all possible state combinations of the vertices of these components. Let us elaborate a bit more on what we mean by this. Our goal is to bound the number of states of the bag in terms of the number of edges in the cut . To prove the desired bound, it suffices to partition the bag into the components, partition the edges of the cut to be assigned to these components, and then show that the bound holds for each component with respect to the number of assigned edges. We will show that if a component contains a vertex from , then for the number of vertices of this component and the number of edges assigned to it, we have , i.e., the desired bound holds even without a further careful analysis. We will provide more details later. Second, we also need to ensure that along the way between the checkpoint bags, i.e., in transition bags, we do not have too many possible states. This will be achieved by a careful choice of the ordering in which the vertices are forgotten and introduced. The sets and will be used to determine this ordering.
Bounding the number of realizable states
We define the graph as to represent the part of the cut restricted to the vertices introduced so far (i.e., we discard the not yet introduced vertices of from ). For a set of vertices on the right side of the cut-graph , we also define the graph that additionally removes the vertices from the right side of the cut. This graph will be crucial to bound the number of the possible states for the transition bags: for example, the graph will be useful to analyze the first step of the transition from the cut to the cut , i.e., removing from the right side of the cut.
Definition 4.
For every and , we define the set of all edges of incident with and we define .
By definition of the bipartite graph , each edge of either has both end-points in some connected component of , or it has its left end-point in some connected component of and its right end-point in . First, this implies that we have for every connected component of . And second, it shows that every edge of is incident with the vertices of exactly one connected component of . Therefore, the sets for partition . This will be crucial to bound the number of states in the checkpoint bags. An analogous argument shows that for any choice of , the sets for partition the set as well.
Now we aim at showing that for each connected component , the number of possible states of is upper-bounded by . The bound on then follows by the fact that the sets are pairwise disjoint. This will actually be the part where it becomes evident, as we shall see in the following proof, that the so-called -cuts form the bottleneck of the algorithm: We will distinguish different types of components of and the tight upper bound on the number of possible states is achieved by the -cuts.
We actually prove a more general statement. First, we prove that the claimed bound holds not only for , but for any connected component of where is arbitrary. Here it is important to remember that only contains vertices from the right side of the cut. Second, we will show that the bound holds even if we allow to add any subset of to every realizable state. This motivates the next definition of the set which can be considered as a robust generalization of the set of possible states: intuitively, this permits us to say that even if we allow, instead of , an arbitrary graph on the left-hand side of the cut (i.e., a triangle packing is allowed to use an arbitrary subset of vertices on the left-hand side), the number of states is still bounded. This will later allow us to prove the bound for the transition bags as well, given that the transitions are carried out in the correct order. For every and every , we will use as a shorthand for .
Definition 5.
For , , and , we define
For a connected component of a subgraph of , we use and as shorthands for and , respectively. Now we prove the main technical lemma.
Lemma 6.
For all , all , and all it holds that .
Sketch.
Let , , , , and . By definition of these sets we thus get . First of all, it can be argued that the claim is true whenever so we assume in the remainder. The proof is based on two main inequalities. The first follows directly from the definition of the : as every element of is a subset of , we have:
| (1) |
For the second inequality, recall that holds, i.e., we have . Since is a connected component of , its edge set contains at least edges. Moreover, we claim that holds. Recall that by definition of the sets and for (see Definition 3), we have that : this is because a vertex can only be added to (i.e., introduced) if at least one of its neighbors is added to (i.e., forgotten). Furthermore, for any vertex in , the unique vertex in due to which was introduced belongs to the same connected component . Thus we have . Finally, recall that by definition, each vertex of has exactly one neighbor in while each vertex of has at least two neighbors in . Hence, it holds that . It follows that , and hence we get:
| (2) |
First, assume that at least one of the following hold: contains a cycle, or is not empty, or , or has a neighbor in . It is not hard to verify that in this case holds and therefore, .
In the remainder of the proof we may thus assume that is a tree, is empty, , and each neighbor of in belongs to . We can show that in this case, each vertex of has degree at most 2 in . After that we carry out an extensive case distinction and show that in each case, there exists a constant fraction of all subsets of that are certainly not elements of . The main idea behind each of the cases is to find a vertex, say , in with certain nice properties, namely there exists a constant-sized subset, say , of such that any triangle packing using has to use at least one of the vertices in . Thus, every subset of that contains and has an empty intersection with is not a possible state – let us remark that this intuition reflects the proof in an overly simplified manner for space reasons.
The simplest of these cases is when contains a leaf in . Then let be the unique neighbor of in . As was introduced due to forgetting one of its neighbors, this neighbor has to be , i.e., we have . As , there exists a vertex adjacent to . Since every vertex in has degree at most in , the vertex does not have neighbors other than and . Recall that the dynamic-programming algorithm only considers triangles where at least one vertex is forgotten already. Since is the unique forgotten neighbor of , every such triangle packing containing the vertex , uses the triangle . Recall that we have . Hence, for every , the property implies . This way we exclude one fourth of all subsets of from and get:
where the last inequality holds due to .
This is the spot where a -cut occurs: If contains exactly three edges, then it consists of the vertices as well as a vertex, say , adjacent to only, and induces a -cut. Recall that by definition we have (i.e., the bag contains and ) since the vertices and are forgotten, i.e., belong to . One can verify that in this case all states other than are possible and therefore, the above inequality is tight and the equality is achieved by a -cut.
If contains no leaves in , we can show that holds. Analyzing the structure of the cut, we then show the inequality implying the desired bound.
By applying the above lemma with , we can show that the number of states at each checkpoint bag is upper-bounded by :
Corollary 7.
For all and , it holds that .
Due to space constraints, we omit the proof of the following bound for transition bags. It relies on a careful choice of the ordering of the forget- and introduce-operations together with an involved analysis of the relation between the connected components of the graphs and as well as the states of these components:
Lemma 8.
For every transition node and every , it holds that .
In Figure 2 we sketch the idea behind our lower-bound construction matching the running time of our algorithm from the previous subsection and refer to the full version for a formal description. We prove the following result for Partition into Triangles:
Theorem 9.
Assuming SETH, there exists no algorithm that solves Partition into Triangles on graphs given with linear arrangements of cutwidth in time for any .
Since there is a trivial reduction from Partition into Triangles to Triangle Packing, this lower bound then also holds for Triangle Packing and so the running time of is optimal for both problems under SETH.
4 Hamiltonian Cycle
For a graph , a set of edges is called a Hamiltonian cycle of if induces a single cycle visiting all vertices of . In the Hamiltonian Cycle problem, we are given a graph and asked if there is a Hamiltonian cycle in .
Here we provide a randomized algorithm solving Hamiltonian Cycle in time on graphs provided with a linear arrangement of cutwidth . For this we adapt the algorithm by Cygan et al. [16] working on graphs provided with a path decomposition of pathwidth . We will transform a linear arrangement of cutwidth into a path decomposition having a useful algorithmic property, namely, the dynamic-programming table as defined by Cygan et al. has only non-zero entries and there is an efficient way to determine the “certainly zero” entries. Now we provide some details. The algorithm by Cygan et al. [16] strongly relies on their algebraic result about the -rank of a certain “compatibility” matrix reflecting, for each pair of perfect matchings, whether their union is a Hamiltonian cycle. We summarize the necessary parts of this result:
Theorem 10 ([16]).
Let be even. Then there exists a set of perfect matchings of the complete graph with the following properties: (1) , (2) can be computed in time , and (3) for every matching , there exists a unique matching such that forms a Hamiltonian cycle of .
Observe that the third property implies that one can partition the set into pairs of matchings such that the union of two perfect matchings forms a Hamiltonian cycle, if and only if the two matchings are paired in this partition. In other words, the family induces a permutation submatrix of the compatibility matrix mentioned above. Like Cygan et al., we will sometimes identify some ordered set, say , of even cardinality with the vertex set of . Then by we denote the set obtained from by identifying the elements of with . In particular, every element of is a perfect matching on the vertex set .
In the following, we assume that the graph is provided with a weight function . As many other algorithms for connectivity problems, the algorithm of Cygan et al. [16] makes use of the classic isolation lemma (see [40]) and samples in a certain probabilistic way. Their algorithm works on a very nice path decomposition of the input graph . Essentially, it processes such a path decomposition and for every bag, counts, modulo 2, the number of subgraphs of the already processed graph such that every vertex in this subgraph has degree 2, except for vertices in the current bag which may have lower degree. The dynamic-programming table refines these counts depending on the weight of the subgraph, its degree sequence on the bag, and whether this subgraph forms a single cycle with a certain matching defined on the vertex set of the bag. A crucial implication of Theorem 10 (as proven in their paper) is that instead of taking all such matchings into account, it suffices to consider only the “base matchings” from to solve the problem. Now we summarize this more formally:
Definition 11 ([16]).
A partial cycle cover of a graph is a set of edges such that every vertex has at most two incident edges in this set. For every node of the provided very nice path decomposition, every where has even cardinality, every , and every , the value is defined as the number, modulo 2, of partial cycle covers of the graph with the following properties:
-
1.
the set of edges induces a single cycle,
-
2.
the total weight (with respect to ) of the edges in is ,
-
3.
every vertex has precisely incident edges in ,
-
4.
every vertex has precisely two incident edges in .
We say that a partial cycle cover of has footprint on if it satisfies the last two items.
Theorem 12 ([16]).
Let be a non-first node of a very nice path decomposition of a graph and let denote its predecessor. For any fixed where has even cardinality, every , and every , given the table , the value can be computed in time by querying entries of .
Let be a graph and let be a linear arrangement of of cutwidth at most . The aim now is to compute from a path decomposition of with certain nice properties to which we will later apply the algorithm from Theorem 12. We recall that by definition for every , the set consists of all left end-points of the edges in the st cut of together with the vertex . Thus, we have and for all . It is well-known that the sequence of bags is a path decomposition of (see e.g., [26] for the idea and [7] for a formal proof). To reverse the ordering in which these bags are traversed, for every , we define the set .
Definition 13.
For a node of a path decomposition we define the sets
We call a mapping relevant if all of the following hold: (1) is even, (2) , and (3) .
Lemma 14.
Let be a node of a very nice path decomposition of and be a partial cycle cover of . Let be such that has footprint . Then is relevant.
Furthermore, if holds, then the number of pairs such that is relevant and is upper-bounded by .
Sketch.
Let be a partial cycle cover of and let be such that has footprint . By definition of a footprint, all end-vertices of belong to . Furthermore, every vertex of degree 1 resp. 2 in has the degree of at least 1 resp. 2 in so the first claim holds. Now let and . The number of pairs such that is relevant and is at most
A careful analysis upper-bounds this by if holds.
Lemma 15.
From the linear arrangement of the graph , in polynomial time we can construct a very nice path decomposition of in which each node satisfies .
Sketch.
The desired path decomposition is obtained by starting with the nodes corresponding to the bags , respectively, and making the decomposition very nice by a careful choice of the ordering of introduce-vertex-, introduce-edge-, and forget-vertex-operations. This ordering, in particular, ensures that the graph contains no edges with both end-points in . We recall that for every , all vertices in the bag (apart from ) are left end-points of edges in the cut (whose size is bounded by ). So every vertex in resp. contributes 1 resp. at least 2 to the size of . And therefore is upper-bounded by . We also show that the intermediate bags added to make the decomposition very nice also have this property as they can be upper-bounded using for some . We can then run the dynamic-programming algorithm from Theorem 12 restricted to relevant footprints only to compute the values for every “reasonable” integer where denotes the root of a path decomposition satisfying the above lemma. Cygan et al. [16] show that this information suffices to find out, with high probability, if the graph admits a Hamiltonian cycle. We refer to the full version for all details.
Theorem 16.
There exists a one-sided error Monte-Carlo algorithm that takes a graph together with a linear arrangement of of cutwidth at most , runs in time , and solves the Hamiltonian Cycle problem. The algorithm cannot give false positives and may give false negatives with probability at most .
Cygan et al. [16] showed that unless SETH fails, no algorithm working on path decompositions of pathwidth can solve the problem in time for any . We show that their ideas are also useful to exclude the algorithms for any . To ensure that the construction has bounded cutwidth (and not only pathwidth), we modify the connections between path gadgets and employ new clause gadgets:
Theorem 17.
Assuming SETH, there is no algorithm that solves Hamiltonian Cycle on graphs given with linear arrangements of cutwidth in time for any .
5 Max Cut and Induced Matching
In Induced Matching, given a graph and an integer , we are asked whether contains a matching of cardinality such that is an induced subgraph of , i.e., there are no edges other than with both endpoints in . We prove the following result:
Theorem 18.
Assuming SETH, there is no algorithm that solves Induced Matching on graphs given with linear arrangements of cutwidth in time for any .
We recall that the treewidth of a graph is upper-bounded by its cutwidth. This shows that the algorithm by Chaudhary and Zehavi [13] working on graphs provided with tree decompositions of treewidth at most is optimal for both treewidth and cutwidth and thus answers their open question. In Max Cut we are given a graph and asked to partition its vertex set into two sets to maximize the number of edges between these sets. We prove that the folklore algorithm working on graphs provided with tree decompositions of treewidth at most is optimal for both treewidth and cutwidth:
Theorem 19.
Assuming SETH, there is no algorithm that solves Max Cut on graphs given with linear arrangements of cutwidth in time for any .
6 Conclusion and Future Work
Our results together with previous work [7, 30] show an interesting variety of behaviors for the complexity of problems relative to treewidth/pathwidth vs. relative to cutwidth: We may get the same tight bound, a small decrease in complexity, or a substantial decrease. We also discovered two more rare examples of tight exponential bounds with non-integral bases, especially Triangle Packing, which has an integral base relative to treewidth. In our opinion, this makes parameterization by cutwidth a very good test bed for deepening the understanding of dynamic programming and width parameters.
There are several avenues for future work: (i) Some edge-disjoint packing problems are intractable for treewidth but we may be able to dertermine tight bounds for cutwidth. (ii) Going beyond classical problems, it would be interesting to determine the tight complexity of -domination problems for cutwidth which is known for treewidth [21]. (iii) Closing the gap for -Homomorphism left by Groenland et al. [25] is a challenging open question.
References
- [1] Benjamin Bergougnoux and Mamadou Moustapha Kanté. Fast exact algorithms for some connectivity problems parameterized by clique-width. Theor. Comput. Sci., 782:30–53, 2019. doi:10.1016/j.tcs.2019.02.030.
- [2] Benjamin Bergougnoux and Mamadou Moustapha Kanté. More Applications of the d-Neighbor Equivalence: Acyclicity and Connectivity Constraints. SIAM J. Discret. Math., 35(3):1881–1926, 2021. doi:10.1137/20M1350571.
- [3] Benjamin Bergougnoux, Tuukka Korhonen, and Jesper Nederlof. Tight Lower Bounds for Problems Parameterized by Rank-Width. In Petra Berenbrink, Patricia Bouyer, Anuj Dawar, and Mamadou Moustapha Kanté, editors, 40th International Symposium on Theoretical Aspects of Computer Science, STACS 2023, March 7-9, 2023, Hamburg, Germany, volume 254 of LIPIcs, pages 11:1–11:17. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPIcs.STACS.2023.11.
- [4] Andreas Björklund, Thore Husfeldt, Petteri Kaski, and Mikko Koivisto. Fourier meets möbius: fast subset convolution. In David S. Johnson and Uriel Feige, editors, Proceedings of the 39th Annual ACM Symposium on Theory of Computing, San Diego, California, USA, June 11-13, 2007, pages 67–74. ACM, 2007. doi:10.1145/1250790.1250801.
- [5] Andreas Björklund, Thore Husfeldt, Petteri Kaski, Mikko Koivisto, Jesper Nederlof, and Pekka Parviainen. Fast Zeta Transforms for Lattices with Few Irreducibles. ACM Trans. Algorithms, 12(1):4:1–4:19, 2016. doi:10.1145/2629429.
- [6] 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.
- [7] 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, March 7-9, 2023, Hamburg, Germany, volume 254 of LIPIcs, pages 14:1–14:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPIcs.STACS.2023.14.
- [8] Narek Bojikian, Vera Chekan, and Stefan Kratsch. Tight Bounds for some Classical Problems Parameterized by Cutwidth. CoRR, abs/2502.15884, 2025. doi:10.48550/arXiv.2502.15884.
- [9] Narek Bojikian and Stefan Kratsch. A tight Monte-Carlo algorithm for Steiner Tree parameterized by clique-width. CoRR, abs/2307.14264, 2023. doi:10.48550/arXiv.2307.14264.
- [10] Glencora Borradaile and Hung Le. Optimal Dynamic Program for r-Domination Problems over Tree Decompositions. In Jiong Guo and Danny Hermelin, editors, 11th International Symposium on Parameterized and Exact Computation, IPEC 2016, August 24-26, 2016, Aarhus, Denmark, volume 63 of LIPIcs, pages 8:1–8:23. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2016. doi:10.4230/LIPIcs.IPEC.2016.8.
- [11] Binh-Minh Bui-Xuan, Jan Arne Telle, and Martin Vatshelle. H-join decomposable graphs and algorithms with runtime single exponential in rankwidth. Discret. Appl. Math., 158(7):809–819, 2010. doi:10.1016/j.dam.2009.09.009.
- [12] Barış Can Esmer, Jacob Focke, Dániel Marx, and Paweł Rzążewski. Fundamental Problems on Bounded-Treewidth Graphs: The Real Source of Hardness. In Karl Bringmann, Martin Grohe, Gabriele Puppis, and Ola Svensson, editors, 51st International Colloquium on Automata, Languages, and Programming (ICALP 2024), volume 297 of Leibniz International Proceedings in Informatics (LIPIcs), pages 34:1–34:17, Dagstuhl, Germany, 2024. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ICALP.2024.34.
- [13] Juhi Chaudhary and Meirav Zehavi. P-Matchings Parameterized by 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 217–231. Springer, 2023. doi:10.1007/978-3-031-43380-1_16.
- [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] Radu Curticapean and Dániel Marx. Tight conditional lower bounds for counting perfect matchings on graphs of bounded treewidth, cliquewidth, and genus. In Robert Krauthgamer, editor, Proceedings of the Twenty-Seventh Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2016, Arlington, VA, USA, January 10-12, 2016, pages 1650–1669. SIAM, 2016. doi:10.1137/1.9781611974331.ch113.
- [16] 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.
- [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. CoRR, abs/1103.0534, 2011. arXiv:1103.0534.
- [18] 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.
- [19] Baris Can Esmer, Jacob Focke, Dániel Marx, and Pawel Rzazewski. List homomorphisms by deleting edges and vertices: tight complexity bounds for bounded-treewidth graphs. CoRR, abs/2210.10677, 2022. doi:10.48550/arXiv.2210.10677.
- [20] Krzysztof Fleszar, Matthias Mnich, and Joachim Spoerhase. New algorithms for maximum disjoint paths based on tree-likeness. Math. Program., 171(1-2):433–461, 2018. doi:10.1007/S10107-017-1199-3.
- [21] Jacob Focke, Dániel Marx, Fionn Mc Inerney, Daniel Neuen, Govind S. Sankar, Philipp Schepper, and Philip Wellnitz. Tight Complexity Bounds for Counting Generalized Dominating Sets in Bounded-Treewidth Graphs. In Nikhil Bansal and Viswanath Nagarajan, editors, Proceedings of the 2023 ACM-SIAM Symposium on Discrete Algorithms, SODA 2023, Florence, Italy, January 22-25, 2023, pages 3664–3683. SIAM, 2023. doi:10.1137/1.9781611977554.ch140.
- [22] Jacob Focke, Dániel Marx, and Pawel Rzazewski. Counting list homomorphisms from graphs of bounded treewidth: tight complexity bounds. In Joseph (Seffi) Naor and Niv Buchbinder, editors, Proceedings of the 2022 ACM-SIAM Symposium on Discrete Algorithms, SODA 2022, Virtual Conference / Alexandria, VA, USA, January 9 – 12, 2022, pages 431–458. SIAM, 2022. doi:10.1137/1.9781611977073.22.
- [23] Robert Ganian, Thekla Hamm, Viktoriia Korchemna, Karolina Okrasa, and Kirill Simonov. The Fine-Grained Complexity of Graph Homomorphism Parameterized by Clique-Width. In Mikolaj Bojanczyk, Emanuela Merelli, and David P. Woodruff, editors, 49th International Colloquium on Automata, Languages, and Programming, ICALP 2022, July 4-8, 2022, Paris, France, volume 229 of LIPIcs, pages 66:1–66:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPIcs.ICALP.2022.66.
- [24] Robert Ganian and Sebastian Ordyniak. The Power of Cut-Based Parameters for Computing Edge-Disjoint Paths. Algorithmica, 83(2):726–752, 2021. doi:10.1007/S00453-020-00772-W.
- [25] Carla Groenland, Isja Mannens, Jesper Nederlof, Marta Piecyk, and Pawel Rzazewski. Towards Tight Bounds for the Graph Homomorphism Problem Parameterized by Cutwidth via Asymptotic Matrix Parameters. In Karl Bringmann, Martin Grohe, Gabriele Puppis, and Ola Svensson, editors, 51st International Colloquium on Automata, Languages, and Programming, ICALP 2024, July 8-12, 2024, Tallinn, Estonia, volume 297 of LIPIcs, pages 77:1–77:21. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPICS.ICALP.2024.77.
- [26] Carla Groenland, Isja Mannens, Jesper Nederlof, and Krisztina Szilágyi. Tight Bounds for Counting Colorings and Connected Edge Sets Parameterized by Cutwidth. In Petra Berenbrink and Benjamin Monmege, editors, 39th International Symposium on Theoretical Aspects of Computer Science, STACS 2022, March 15-18, 2022, Marseille, France (Virtual Conference), volume 219 of LIPIcs, pages 36:1–36:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPIcs.STACS.2022.36.
- [27] 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.
- [28] 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.
- [29] 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.
- [30] 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.
- [31] Ioannis Katsikarelis, Michael Lampis, and Vangelis Th. Paschos. Structural parameters, tight bounds, and approximation for (k, r)-center. Discret. Appl. Math., 264:90–117, 2019. doi:10.1016/j.dam.2018.11.002.
- [32] Ioannis Katsikarelis, Michael Lampis, and Vangelis Th. Paschos. Structurally parameterized d-scattered set. Discret. Appl. Math., 308:168–186, 2022. doi:10.1016/j.dam.2020.03.052.
- [33] Michael Lampis. Finer tight bounds for coloring on clique-width. SIAM J. Discret. Math., 34(3):1538–1558, 2020. doi:10.1137/19M1280326.
- [34] Michael Lampis. Circuits and Backdoors: Five Shades of the SETH, 2024. doi:10.48550/arXiv.2407.09683.
- [35] Michael Lampis. The Primal Pathwidth SETH. In Yossi Azar and Debmalya Panigrahi, editors, Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2025, New Orleans, LA, USA, January 12-15, 2025, pages 1494–1564. SIAM, 2025. doi:10.1137/1.9781611978322.47.
- [36] Michael Lampis and Manolis Vasilakis. Structural Parameterizations for Induced and Acyclic Matching. CoRR, abs/2502.14161, 2025. doi:10.48550/arXiv.2502.14161.
- [37] 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.
- [38] Daniel Lokshtanov, Dániel Marx, and Saket Saurabh. Slightly Superexponential Parameterized Problems. SIAM Journal on Computing, 47(3):675–702, 2018. doi:10.1137/16M1104834.
- [39] Dániel Marx, Govind S. Sankar, and Philipp Schepper. Degrees and Gaps: Tight Complexity Results of General Factor Problems Parameterized by Treewidth and Cutwidth. In Nikhil Bansal, Emanuela Merelli, and James Worrell, editors, 48th International Colloquium on Automata, Languages, and Programming, ICALP 2021, July 12-16, 2021, Glasgow, Scotland (Virtual Conference), volume 198 of LIPIcs, pages 95:1–95:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021. doi:10.4230/LIPIcs.ICALP.2021.95.
- [40] Ketan Mulmuley, Umesh V. Vazirani, and Vijay V. Vazirani. Matching is as easy as matrix inversion. Comb., 7(1):105–113, 1987. doi:10.1007/BF02579206.
- [41] Jesper Nederlof. Algorithms for NP-Hard Problems via Rank-Related Parameters of Matrices. 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 145–164. Springer, 2020. doi:10.1007/978-3-030-42071-0_11.
- [42] Jesper Nederlof, Michał Pilipczuk, Céline M. F. Swennenhuis, and Karol Węgrzycki. Hamiltonian Cycle Parameterized by Treedepth in Single Exponential Time and Polynomial Space. In Proc. WG 2020, volume 12301 of Lecture Notes Comput. Sci., pages 27–39, 2020. doi:10.1007/978-3-030-60440-0_3.
- [43] Karolina Okrasa, Marta Piecyk, and Pawel Rzazewski. Full Complexity Classification of the List Homomorphism Problem for Bounded-Treewidth Graphs. In Fabrizio Grandoni, Grzegorz Herman, and Peter Sanders, editors, 28th Annual European Symposium on Algorithms, ESA 2020, September 7-9, 2020, Pisa, Italy (Virtual Conference), volume 173 of LIPIcs, pages 74:1–74:24. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2020. doi:10.4230/LIPIcs.ESA.2020.74.
- [44] Karolina Okrasa and Pawel Rzazewski. Fine-Grained Complexity of the Graph Homomorphism Problem for Bounded-Treewidth Graphs. SIAM J. Comput., 50(2):487–508, 2021. doi:10.1137/20M1320146.
- [45] Bas A. M. van Geffen, Bart M. P. Jansen, Arnoud A. W. M. de Kroon, and Rolf Morel. Lower Bounds for Dynamic Programming on Planar Graphs of Bounded Cutwidth. J. Graph Algorithms Appl., 24(3):461–482, 2020. doi:10.7155/jgaa.00542.
- [46] Ivo van Heck. Triangle partition on graphs of bounded cutwidth upper- and lower bounds on algorithmic and communication complexity. Master’s thesis, Eindhoven University of Technology, Eindhoven, June 2018. Available at https://pure.tue.nl/ws/portalfiles/portal/109480417/Thesis0775551_Ivo_van_Heck.pdf.
- [47] 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.
- [48] Johan M. M. van Rooij. A Generic Convolution Algorithm for Join Operations on Tree Decompositions. In Rahul Santhanam and Daniil Musatov, editors, Computer Science – Theory and Applications – 16th International Computer Science Symposium in Russia, CSR 2021, Sochi, Russia, June 28 – July 2, 2021, Proceedings, volume 12730 of Lecture Notes in Computer Science, pages 435–459. Springer, 2021. doi:10.1007/978-3-030-79416-3_27.
