WorksComputer Science
New Insights into the Parameterized Complexity of Cutwidth
Abstract
The Cutwidth problem asks for a linear ordering of the vertices that minimizes the maximum number of edges crossing between two consecutive positions. The problem is proven to be NP-hard by Gavril [CISS '77], which motivated research in parameterized complexity. A previously claimed FPT result for Cutwidth and Imbalance parameterized by twin cover by Gorzny and Buss [COCOON '19] was later invalidated. Misra and Mittal [Theor. Comput. Sci. '21] clarified this issue, proved that Imbalance is in XP parameterized by twin cover and in FPT parameterized by -bounded twin cover, i.e., where the size of the cliques outside the twin cover are bounded by . The analogous questions remained open for cutwidth. In this work, we answer one of them by showing that Cutwidth is FPT parameterized by -bounded twin cover. Additionally, we present an XP algorithm for Cutwidth parameterized by vertex integrity and prove W[1]-hardness for the parameter treedepth.
Introduction
The Cutwidth problem is a fundamental graph layout problem. We are given a graph with and we seek a linear ordering of the vertices, defined as a bijective function , that minimizes the maximum number of edges crossing a line between any two consecutive vertices. More formally, let be the set of all orderings of . The maximum-cut of associated with a permutation is defined as
The cutwidth value of a graph is the minimum possible maximum-cut over all its linear layouts, i.e., .
Definition 1 (Cutwidth). Given a graph , the Cutwidth problem asks for the optimal cutwidth value .
Cutwidth has numerous applications ranging from theoretical bounds to VLSI and bioinformatics [3, 5, 8, 13, 30].
The problem is NP-hard [19], even for restricted graph classes like planar graphs of maximum degree 3 [33] or split graphs, and consequently also chordal graphs [26]. The currently best exact algorithms for Cutwidth without any additional structure are proposed by Bodlaender, Fomin, Koster, Kratsch, and Thilikos [4].
Due to the complexity of the problem, several results regarding approximation [29, 1, 14, 11, 6] and restricted graphs [25, 37, 26, 31, 34, 24] exist. For an overview, we refer to [12]. Furthermore, parameterized approaches are of great interest. In a fundamental work, Fellows, Lokshtanov, Misra, Rosamond, and Saurabh [16] prove that multiple layout problems including Cutwidth are fixed parameter tractable (FPT) when parameterized by the size of the minimum vertex tex cover. Their -time algorithm was improved by Cygan, Lokshtanov, Pilipczuk, Pilipczuk, and Saurabh [10] to who also proved that this parameterization does not admit a polynomial kernel unless . The problem is also FPT when parameterized by the cutwidth value itself [36], treewidth or pathwidth combined with the maximum degree [35], the edge clique cover number [22], or when parameterized by restricted twin cover [22]. Cutwidth is in XP when parameterized by the neighborhood diversity [2]. Furthermore, the problem is NP-hard when parameterized by treewidth or pathwidth, which also implies NP-hardness when parameterized by cliquewidth [33].
The question whether Cutwidth is FPT parameterized by twin cover is of great interest and has gained some attention in the past. While the removal of a vertex cover produces an independent set, the removal of a twin cover generates disjoint cliques where all vertices have the same neighborhood. A formal definition for twin cover is given in § 2. Gorzny and Buss [23] claim that Cutwidth and Imbalance are both FPT parameterized by twin cover, which was later declared as incorrect [21]. Their approach contracted the cliques of true twins into single vertices, which loses too much information [32]. Misra and Mittal then showed that Imbalance is in XP when parameterized solely by twin cover and in FPT when parameterized by -bounded twin cover, i.e., where the maximum size of a clique is bounded by . Gorzny [22] corrected and limited their result by showing that Cutwidth is FPT parameterized by restricted twin cover, i.e., where the number of cliques with at least one edge is bounded. Whether Cutwidth can be solved in FPT-time parameterized solely by twin cover remains open. We take a step into this direction by giving an FPT algorithm for Cutwidth parameterized by -bounded twin cover. Notably, -bounded twin cover and restricted twin cover both generalize vertex cover and are generalized by twin cover but are still incomparable. There exist families of graphs with bounded -bounded twin cover number but unbounded restricted vertex cover and vice-versa.
In this work, we obtain new complexity results for five parameterizations (highlighted in bold in Figure 1). In Section 3, we first strengthen a structural, not invalidated result from [23] by proving that there exists a cutwidth-minimal ordering where the vertices of the cliques are placed contiguously and the cliques themselves follow a specific order. By fixing the twin cover and formulating an integer linear program (ILP), we obtain the following result.

Figure 1. Different parameters and their relationship and results regarding parameterization of Cutwidth. An arrow means that the pointed to parameter is more general and hardness propagates along arrows. Algorithmic results propagate in the reverse direction. All parameters marked with 🟦 admit an FPT algorithm for Cutwidth. 🟩 means there exists an XP algorithm for Cutwidth. 🟨 and 🟪 mean that the corresponding parameterized problem is W[1]-hard and NP-hard respectively. The remaining problems are open. The bold parameters are our contribution. This illustration is inspired by [20 Figure 1].
Theorem 1. Cutwidth is in FPT when parameterized by -bounded twin cover.
Furthermore, we explore more general parameters: In Section 4, we propose an XP algorithm for Cutwidth parameterized by vertex integrity by designing a state-bounded dynamic programming algorithm over the connected components. Additionally, we prove -hardness for Cutwidth parameterized by treedepth via a reduction from Multicolored Clique in Section 5.
Theorem 2. Cutwidth is in XP when parameterized by vertex integrity.
Theorem 3. Cutwidth is -hard when parameterized by treedepth.
These results directly imply that Cutwidth is in XP when parameterized by -bounded cluster vertex deletion set and W[1]-hard when parameterized by shrub-depth.
Preliminaries
For , we define and . We denote an undirected graph without self-loops by . For a subset of vertices , we denote by the subgraph induced by , i.e., . Furthermore, we define , and . We use to denote the set of maximal connected components of . For a subset of vertices , we denote the set of edges with exactly one end in by .
Given a linear ordering , we define as the first vertices in . With this notation, we can use to express the maximum cut of as .
We define the neighborhood of a vertex by and its closed neighborhood by . If all vertices in a subset have the same closed neighborhood, i.e., for all , it holds that , we call the vertices of a set of true twins. Note that this property is an equivalence relation.
Many structural graph parameters are defined via a separator . The removal of from leaves a subgraph , with connected components . Depending on the structural restrictions on and the components in , we obtain different parameters.
Definition 2 (ω-bounded twin cover). A separator is called a twin cover if the remaining connected components are sets of true twins, i.e., every induces a clique, and, for every pair , we have . Furthermore, is an -bounded twin cover of size if it is a twin cover, , and the number of vertices in each component does not exceed , i.e., for all .
For convenience, we usually write -bounded twin cover while omitting the size . However, we still refer to the definitions above.
A more general parameter only restricts the sizes of the separator and the components, without enforcing any internal structure on the components:
Definition 3 (vertex integrity). The vertex integrity of a graph is the minimum sum of the size of a separator and the maximum size of a connected component in , i.e., .
Finally, we define treedepth, which is even more general and is based on recursively removing vertices rather than analyzing connected components of a single separator.
Definition 4 (treedepth). The treedepth of a graph is
We use (❧) to indicate that the proof of a lemma is provided in the appendix.
An FPT Algorithm for -bounded Twin Cover
In this section, we present our FPT algorithm, which conceptually extends the approach of Fellows et al. [16] for Cutwidth parameterized by vertex cover. Their algorithm first guesses an ordering of the vertex cover vertices, reducing the problem to assigning the remaining independent vertices to the spaces (“locations”) between them. Within each location, the vertices are optimally ordered. Grouping independent vertices by their neighborhoods bounds the number of distinct vertex types by , enabling an ILP formulation with a number of variables bounded by a function of .
Let be an undirected graph and a twin cover. Throughout this section, we assume that an ordering of the twin cover vertices is given. W.l.o.g., we say . By a location, we refer to a position for the remaining vertices relative to . Location 0 is on the left of vertex , location is between and and location is on the right of (see Figure 2).

Figure 2. Ordered set of vertices. Circled vertices are part of a twin cover; triangular vertices are cliques of true twins. For the cliques in location 1, the connections to vertices of the twin cover and the partition into , , and are shown.
We adapt the methodology from [16] to -bounded twin cover. More precisely, we aim to find an ordering for the vertices in every location. However, considering every vertex individually is too expensive. Using the following structural insight from Gorzny and Buss [23], we may treat the remaining cliques of true twins as units while still taking the sizes into account.
Theorem 4 (Gorzny and Buss [23, Theorem 6]). For any graph , there exists a cutwidth-minimal ordering of such that each equivalence class of true twins appears consecutively in .
For us, this theorem means that we can imagine a clique as a single vertex and place these abstracted cliques into locations. We note that when a clique of true twins is placed somewhere the order in which the vertices of this clique are placed does not matter. Every order has the same cutwidth since all vertices have the same closed neighborhood.
We now establish a cutwidth-minimal ordering for cliques assigned to the same location. In [16], the vertices were ordered by their rank – the difference between the number of neighboring vertices or twin cover vertices on the left and right. This does not suffice in our case (Figure 3). Simply reversing the order breaks for other examples, such as cliques of size one. In fact, we have to consider the size of every clique while searching for a cutwidth-minimal ordering. Formally, we want to find a location assignment that assigns every clique a location as well as an order for the cliques in every location. To begin, notice that changing the order of two neighboring cliques in a location only changes the cuts in and between the cliques:
Figure 3. The figure depicts the resulting ordering and the induced cutwidth for two cliques with , at location based on their rank compared to an optimal ordering based on lemma 1.
Observation 1. Let be an ordering of vertices where two cliques appear consecutively. Let be the first position of a vertex of in and be the last position of a vertex of in . Let be the ordering obtained by switching the positions of and . Then,
Thus, to evaluate a swap, we only need to consider cuts in and between the two cliques.
To determine whether a swap is beneficial, we calculate the maximum cut within a single clique. For this, we differentiate two kinds of edges: The edges that have at least one endpoint in the clique and the edges that have no endpoint in the clique. Since the second kind of edges contribute equally to all cuts within the clique, we can ignore them when determining the clique’s maximum internal cut. This maximum inner cut depends on the location but is independent of other cliques. For a clique at location , it is given by
where (resp. ) are the number of vertices from (resp. ) that are connected to the clique (Figure 3). For more details see [22 Section 3.7 and Lemma 3.7.4].
Next, we extend the analysis to two neighboring cliques in location . If there are edges contributing to a cut in or between the two cliques and have no endpoint in either of the two cliques it has to contribute to every cut in or between. Let be the number of such edges. Then, the maximum cut inside and is given by
respectively. Swapping the order of and , the maximum cuts change to
This means, we can disregard , when evaluating whether a switch is beneficial. To capture this idea, we write
and introduce an order for the cliques based on this notion
for and . The following lemma shows that swapping two neighboring cliques such that they abide in location does not increase the cutwidth of an ordering.
Lemma 1. Let be an ordering of , and such that is directly left to in location and . Then, swapping the order of and does not increase the cutwidth of the ordering.
Proof. By Observation 1 we know that cutwidth at every position before and after the cliques remains the same. Let be first position of a vertex of in and the last position of a vertex of in . Then, is the number edges contributing to all cuts inside and between the cliques in that have no endpoint in either clique. Since , we know that
Thus, changing the order does not increase the cutwidth.
We would like to order the cliques in every location according to the predicate above. Unfortunately, this predicate is not transitive due to problems with cliques where . Let be a clique with and and let be a clique with , , and . Notice that . The same holds for with , , and . However, we have .
To circumvent this issue we first split each location in three parts , , and based on the rank (difference of and ):
for all and analogously, we define and by replacing the with and , respectively (Figure 2). Furthermore, we give an order for each of the three parts. The cliques in and may be placed in any order respecting . The order of the cliques in does not matter. In conclusion, we obtain the following lemma by iteratively applying Lemma 1.
Lemma 2 (@). Let be a graph, a twin cover of size of , and cutwidth-minimal ordering of , where each equivalence class of true twins appears consecutively. Then any ordering of that
agrees with on ( for all ),
has the same location assignment ,
for every the vertices of appear consecutively in location of ,
for every the cliques are placed in the order , , , and
the cliques in , respect the order
is also optimal.
Now, we are ready to optimally determine the location assignment. The general structure of the algorithm follows standard techniques for layout problems (e.g. [16, 32]): we first compute and guess the ordering of an -bounded twin cover. Using Lemma 2, we can then formulate an ILP to optimally distribute the cliques to the locations. This ILP has variables, thus by using the well-known algorithm by Lenstra [27], it can be solved in FPT-time proving Theorem 1. The full details of the algorithm, the ILP formulation, and its correctness are deferred to Section A.1.
An XP Algorithm for Vertex Integrity
Just by omitting the neighborhood restriction for the cliques, we loose the property (Theorem 4) that there always exists an optimal ordering where cliques are placed contiguously. For details see Section B.1. We therefore need a different approach.
Let a graph and an integer be given. We can find an -separator with in FPT-time or decide that it does not exist [17]. In the following, we assume a separator is given such that is the vertex integrity of .
To compute the optimal cutwidth of , we propose a dynamic programming (DP) algorithm that constructs the linear ordering from left to right, placing one vertex at a time. At any given position, the algorithm must decide whether to place a vertex from the separator or a vertex from one of the connected components in . Instead of tracking the exact permutation of all placed vertices, the DP only records the placed subset of and counts how many components of each structurally equivalent type currently have a specific subset of their vertices placed. As a key property, we use that only the already placed vertices matter for the current cut, not their exact order. Thus, multiple distinct sequences of vertex placements that result in the same set of placed vertices can be collapsed into a single DP state, where we only keep the minimum maximum-cut up to the current state. Like this, we iteratively build the layout until all vertices are placed.
We start with some definitions. Let be connected components, and define the induced subgraphs and . and are defined as equivalent if there exists a graph isomorphism (bijective mapping between graph vertices preserving adjacency) between and such that for all . We say that all equivalent components are of the same type by choosing an arbitrary representative subgraph for the equivalence class. Let be the set of all such component types. For each type , let be all connected components of with type . By the definition of type we have a graph isomorphism between and for every and .
We introduce an extended type to manage the subset of vertices of a component that have already been placed:
Here, represents the subset of placed vertices. Note that both, and are bounded by functions of . We provide more details for this in the proof of Lemma 5.
A configuration is a function , such that for all , that tracks which vertices of are placed grouped by type. A state describes all placed vertices up to position and is defined as a triple , where is a position in the layout, represents the separator vertices placed within the first positions, and is the current configuration, such that .
A state is a predecessor of if we obtain from by placing one vertex at position . More formally, when exactly one of the following holds:
Separator vertex placed: There is a vertex such that and .
Connected component vertex placed: and there is an extended type and a vertex such that
and for all other .
For a state , we define the set of predecessor states .
Finally, we adapt the definition of the size of a cut to this definition. Recall that there are no edges between different connected components. Thus, adapting this to our definition of states, we obtain with
that calculates the cut based on the vertices placed in this state. To show that this definition is sensible, we define the canonic states. Recall that for an ordering and the first vertices of are denoted by . We define and
that describe the vertices placed up to position by . The following lemma shows that the sizes of the actual cuts equal the values from our abstraction.
Lemma 3 (✿). For every ordering and we have .
To compute the optimal cutwidth, we define the DP table , which stores the minimum maximum-cut in the first positions over all orderings such that and for every state . We calculate the table entries as follows:
Base Case At , the only state is the empty placement. Thus, for and with for all , and otherwise, we set .
Recursive Step For , a separator subset , and a configuration , we minimize the maximum-cut over all possible predecessor states, and maximize that value against the current cut . Thus,
The following lemmas show that the dynamic program calculates what we claim.
Lemma 4. Let and , we have .
Proof. For , we have . For , we have and thus by induction
where the last equality follows from Lemma 3.
Let be the configuration where all vertices have been placed, i.e.,
Since and for every ordering we obtain the following corollary.
Corollary 1. .
The next lemma shows that we can find a concrete ordering such that based on the dynamic program table in XP time.
Lemma 5 (@). We can calculate the table and find an ordering such that for every in XP time.
The key insight to prove this lemma, is that when backtracking the states of our DP, we can place an arbitrary vertex that matches the transition of the DP (Lemma 3). Also, the number of states is bounded by for some computable function . With this, we have all necessary ingredients to prove that Cutwidth is XP parameterized by vertex integrity.
Theorem 2. Cutwidth is in XP when parameterized by vertex integrity.
Proof. We can find a separator that minimizes vertex integrity in FPT time [17]. By Lemma 5, we can calculate the dynamic program in XP time. Furthermore, we obtain an ordering from Lemma 5. By Corollary 1 we have .
W[1]-Hardness for Treedepth
To show that Cutwidth is W[1]-hard parameterized by treedepth we adapt the reduction of Monien and Sudborough that shows that weighted Cutwidth1 is NP-hard on trees with polynomial edge weights. The key of their proof is a reduction from ILPs with special structure to weighted Cutwidth on trees.
An NP-hard variant of 3-SAT can be modeled as such an ILP which shows the NP-hardness of weighted Cutwidth on trees with polynomial edge weights. We will use a different problem, namely MulticoloredClique, to show the W[1]-hardness of Cutwidth parameterized by treedepth.
We state the construction of Monien and Sudborough as the following Lemma which combines different results from their paper. We only analyze the bounds, as they are not explicitly discussed in their paper.
Lemma 6 ([33 Lemmas 2.3 and 2.4]). Given an ILP with and such that is even and for every with , we have . There exists an edge weighted tree with vertices, height , and weights bounded by where . Furthermore, there is a value such that if and only if there exists with .
The bound on the weight is only a rough estimate but sufficient since we only need polynomially bounded weights. To use this result for unweighted graphs, the weighted edges are substituted by parallel edges which in turn are replaced by 2-paths to obtain a graph without multiedges [33 Lemma 2.1]. The tree and the resulting graph have the same cutwidth since it is always optimal to move the midpoint of every created 2-path between the two end points. Further, the treedepth of the graph is linear in height of the tree.
To show the W[1]-hardness of cutwidth parameterized by treedepth we reduce from MulticoloredClique instead of 3-SAT. This problem is W[1]-hard when parameterized by the number of colors [15].
Definition 5 (Multicolored Clique). Given a graph with a partition/coloring of the vertices V=V_1\mathbin{\mathaccent\cdot\cup}\cdots\mathbin{\mathaccent\cdot\cup}V_k, the problem asks whether there exist a clique of size containing all colors, i.e., are there such that for all with .
To use this problem with the reduction from [33], we model this problem as an ILP with constraints. Then, the resulting tree has height and treedepth at most . The idea of the ILP formulation is that we have 0/1 variables for every vertex and every edge. We select a vertex for every color and an edge between all pairs of colorclasses. For every edge we make sure that the endpoints are selected vertices.
Lemma 7. Given an instance of MulticoloredClique G=(V=V_1\mathbin{\mathaccent\cdot\cup}\cdots\mathbin{\mathaccent\cdot\cup}V_k,E). There is an ILP , with variables, constraints, and such that there exists an with if and only if is a yes-instance. Furthermore, is even and for every with , we have .
Theorem 3. Cutwidth is W[1]-hard when parameterized by treedepth.
Proof. Let be an instance of MulticoloredClique with colors. Using Lemma 6 on the output of Lemma 7, we obtain an equivalent weighted Cutwidth instance. The resulting graph is a tree with height and polynomial edge weights. Now, we replace the weighted edges by parallel 2-paths where the amount of paths is the weight of the replaced edge. This results in a equivalent Cutwidth instance [33].
Next, we argue that the treedepth of this graph is bounded by : Eliminating the vertices of the original tree layer by layer results in a graph which only contains the newly added midpoints of the 2-paths. All of these vertices are isolated. Thus, the number of the layers is at most the height of the tree plus one, i.e., the treedepth is .
Altogether, we have constructed a parameterized reduction from MulticoloredClique parameterized by the number of colors to Cutwidth parameterized by the treedepth of the graph. The claim follows from the -hardness of MulticoloredClique [15]. □
Conclusion
While we gave an FPT algorithm for Cutwidth parameterized by -bounded twin cover, the question of whether the problem is in FPT parameterized solely by twin cover remains unresolved. We refined the structural understanding of optimal solutions of Cutwidth parameterized by twin cover. Furthermore, we established that Cutwidth is -hard when parameterized by treedepth and in XP when parameterized by vertex integrity. For vertex integrity, it is currently unknown whether an FPT algorithm exists. Since this parameter sits directly at the edge between our XP and -hardness results, determining its exact complexity provides a interesting direction for future research. An overview of our results, as well as remaining open questions, can be seen in Figure 1.
Acknowledgments. Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – 528381760.
Omitted Proofs of Section 3
Lemma 2 (✂). Let be a graph, a twin cover of size of , and cutwidth-minimal ordering of , where each equivalence class of true twins appears consecutively. Then any ordering of that
agrees with on ( for all ),
has the same location assignment ,
for every the vertices of appear consecutively in location of ,
for every the cliques are placed in the order , and
the cliques in respect the order
is also optimal.
Proof. We start with the ordering given by . In this ordering the vertices of all equivalence classes appear consecutively. In the remaining proof we only swap neighboring equivalence classes in the same location and thus the constructed ordering will also have this property.
Let , be neighboring cliques at location . We show that and thus if is left of we can swap the cliques without increasing the cutwidth by Lemma 1.
We have and due to and . Thus,
and
which implies .
In the same way, we can show a similar result for cliques from and . Therefore, we can swap neighboring cliques until we reach the desired partition without increasing the cutwidth. The obtained order satisfies the first four properties. Next, we show that is transitive when restricted to cliques in . Let . Since and , we have
Therefore, the relation is transitive when restricted to cliques in and thus a total preorder (reflexive, transitive, and total) but notably not antisymmetric. The equivalence classes of the equivalence relation induced by on may contain multiple cliques. Equivalent cliques may be freely interchanged/swapped as and together imply .
::: This allows us to swap the cliques in into any order respecting while not increasing the cutwidth. Then, we can reach any order of cliques in respecting by swapping cliques in equivalence classes without increasing the cutwidth.
Analogously, we can prove the same for when restricted to cliques from and we can order the cliques in according to it. Cliques in can be swapped arbitrarily, since for all .
ILP Formulation and FPT Algorithm
For the ILP, we guess the ordering of the vertices in a twin cover of size and then place the remaining vertices optimally in the locations before, between, or after the twin cover vertices. Using the strong structural result from the prior section, our algorithm achieves FPT-time.
In order to guess the ordering of the twin cover , we first need to determine an -bounded twin cover of size .
Lemma 9. Given and a graph , we can, in FPT-time, either find an -bounded twin cover of size at most of , or decide that it does not exist.
Proof. First, we compute all sets of true twins in time using [18 Lemma 5]. Note that within a set, all vertices have the same closed neighborhood. Thus, all vertices of this set that are not part of the twin cover, form a single component. So, for each set with more than vertices, i.e., , we add vertices to the twin cover . As all vertices have the same closed neighborhood, they can be chosen arbitrarily. This step runs in time .
Now, let be the graph after removing all vertices in the current twin cover . We now proceed as done by Ganian in [18, Theorem 4] for input parameter : In time , we remove all twin edges in where a twin edge denotes an edge between two true twins. Then in time , we compute the vertex cover of the remaining graph [7]. By [18 Lemma 2], this is a twin cover of . Therefore, we add these vertices to the twin cover . If now , there does not exist an -bounded twin cover of size at most in . Otherwise, return . The total running time of the algorithm is .
Given such an -bounded twin cover with , we guess the ordering of with an additional overhead of . In the following, we assume that such ordering is fixed and known. By Lemma 2, we can fix the order of the clique types within each location. We denote the ordering of the cliques at location by . By fulfilling the stated properties, the lemma shows that the ordering is optimal w.r.t. a given location assignment. The remaining task is to determine this location assignment optimally. To this end, we partition the cliques of into a set of types . We say a clique is of type if its neighborhood in the twin cover is exactly and it contains exactly vertices. We formulate the assignment as an ILP to find how many cliques of each type occur in each location to minimize the maximum-cut.
Let the variable refer to the cutwidth value. Thus, our objective is
Additionally, we introduce the integer variables for all and , which denotes how many cliques of type are placed at location . We also introduce a binary variable that equals 1 if at least one clique of type is placed at location , and 0 otherwise, i.e., we have
Since , this behavior is ensured by the following three constraints:
Now, we determine the maximum-cut that occurs when cutting through a clique of a given type at a specific location . Analogously to and , we define and as the number of twin cover vertices to the left and right, respectively, that are connected to a clique of type at location . Furthermore, we assume that the maximum inner cut is precomputed for all cliques and locations.
To ensure we account for all relevant edges exactly once, recall that the graph is a disjoint union of cliques. Therefore, any edge in belongs to exactly one of three categories: (1) both endpoints are in , (2) one endpoint is in and the other in , or (3) both endpoints are strictly within the same clique in .
Inner Cut (): The here considered edges have at least one vertex within this clique (Figure 4a). By definition, captures all such edges. If no such clique is assigned to this location (), this value is 0. Hence,
Figure 4. The figure illustrates the different edge types that need to be considered when calculating the maximum-cut within clique at location . Figure 4a illustrates for . Figure 4b illustrates clique of type and of type at location . In fig. 4c, edges between and cliques at locations are considered. Figure 4d depicts edges between vertices of the twin cover. Note that is not depicted but the visualization is similar to Figure 4b. In general, vertices of the twin cover are denoted as ◉, one clique as ▲ and individual vertices of a clique as ●. Accordingly, vertices and cliques at the considered location are colored blue. Note that an edge between cliques (▲) and vertices are multiple edges.
Twin Cover – Other cliques of type at location (): These are edges connecting to the remaining cliques of the identical type at . Because they share the same rank and neighborhood, the maximum cut occurs when is placed at the outermost boundary of this type group (leftmost if , or rightmost otherwise):
Twin Cover – Cliques of different type at location (): These are edges crossing that connect to cliques of type at location (Figure 4b). Based on derived from Lemma 2, these are edges from left of to cliques placed right of , and from right of to cliques placed left of . Let and . Then,
Twin Cover – Cliques at other locations (): These are edges crossing location that connect to cliques at any other location (Figure 4c). Thus,
Twin Cover – Twin Cover (): These are edges connecting a twin cover vertex on the left of to one on the right of (Figure 4d). This value
is constant for fixed :
Since the vertices of the cliques are placed consecutively, edges solely between vertices of cliques with do not cross clique . Same applies to all edges between vertices of cliques at location (respectively ) to vertices of the twin cover to the left (respectively to the right) of . Additionally by definition of the twin cover, we do not have any edges connecting distinct cliques. Thus, the linear constraints bounding the cutwidth is defined by the components stated above:
Finally, we need to ensure that we assign the cliques that actually appear in our input graph , i.e., that the sum of all cliques of a type over all locations equals the number of their appearances in the input graph . The following constraint ensures this property, where denotes the number of occurrences of a clique of type in :
In total this results in an ILP with constraints and variables. The largest coefficient within the constraints is and the variables can be upper bounded by .
Lemma 10. Let be a graph and an -bounded twin cover. There exists a twin cover ordering such that the minimum value of satisfying the ILP constraints (2), (3), and (4) with respect to equals the minimal cutwidth of $G.
Proof. Let denote the optimal cutwidth of . Let be an optimal ordering of such that it fulfills the structural properties of Lemma 2 and . Such an ordering maps directly to a feasible ILP assignment. Additionally, we can derive an optimal ordering from an optimal ILP solution.
Let be the ordering of the twin cover vertices induced by . We will show that for this , the minimum value satisfying the ILP constraints (2), (3), and (4) equals . We prove this by showing and separately.
: By Lemma 2, we can assume w.l.o.g. that places the vertices of each clique contiguously and orders the cliques as follows:
cliques belonging to are ordered according to and placed leftmost in location ,
cliques belonging to are ordered according to and placed rightmost in location , and
cliques belonging to are placed in between and while the order does not matter.
For each and , let be the number of cliques of type assigned to location by . Set if , and 0 otherwise. By Lemma 10, every clique is assigned to exactly one location in the ordering . This ensures that , satisfying (4). By definition of , (2) also holds.
By definition of the edge classes, the sum is the maximum-cut of a clique of type at location in . Since is the global maximum over all positions in the ordering, we have
for all and . Note that the maximum-cut of a clique can be within or at the boundary of this clique. For all empty locations, the maximum-cut at that location is , as there are no cliques at that location and the other summands equal 0. Thus, we still obtain
Thus, substituting yields a solution to (3). Since is the minimum feasible value for , it follows that .
: Let be an optimal solution to (2), (3), and (4) with respect to . We construct an ordering of as follows: First, place all vertices of according to . Then, for each and , place exactly cliques of type at location . Order the cliques as described in Lemma 2. Since the cliques consist of true twins and using Theorem 4, the vertices of a clique can now be placed contiguously in arbitrary order.
Since the variables satisfy (4), the sum of assigned cliques of type over all locations is . Thus, the assignment places every vertex of exactly once. Since also the vertices in are placed exactly once, this forms a complete linear ordering of .
By Lemma 2, the global maximum-cut of must occur either within or directly adjacent to a clique assigned to some location , or strictly between two twin cover vertices when the location does not have any assigned cliques. In the first case, the maximum-cut is defined by the right-hand side of (3). Since is an upper bound of this sum for all and , we have . In the second case, the cut equals . Observe that for any type , the right-hand side of (3) includes these terms alongside additional edge counts (, , and ). Because these additional terms are non-negative, the constraint evaluated for any arbitrary type ensures . Thus, we again have .
Since is a valid ordering of , its maximum-cut cannot be strictly less than the optimal cutwidth . Thus, .
Combining both bounds yields , completing the proof.
To solve the ILP, we rely on the well-known fixed-parameter tractability of ILPs parameterized by the number of variables . While Lenstra [27] and Kannan [28] originally established this for ILP feasibility, their framework can be adapted via a binary search over the objective value to solve the optimization version. Specifically, an ILP can be solved optimally in time , where denotes the input instance, is its encoding length and and are upper bounds on the absolute values of the variables and coefficients, respectively [9].
Since our formulation has variables, we can find the optimal solution in time . Altogether, we obtain an FPT-algorithm for Cutwidth parameterized by -bounded twin cover.
Theorem 1. Cutwidth is in FPT when parameterized by -bounded twin cover.
Proof. By Lemma 9, we can find an -bounded twin cover of size in time . Having this twin cover , we try all orderings of its vertices and solve the corresponding ILP in time .
In total, this results in a running time of
which is FPT parameterized by and . By Lemma 10, there exists a twin cover ordering for which the ILP computes the minimum cutwidth. By exhaustively testing all possible orderings , we thus find the optimal cutwidth.
Omitted Proofs of Section 4
Why the Approach for -bounded Twin Cover is Difficult to Generalize
One might intuitively expect that a similar property holds for the cliques obtained by the removal of a cluster vertex deletion set. This would allow us to again treat cliques as single units, assign them to locations, and order them via a result similar to Lemma 2. However, this is not the case. An example graph that demonstrates this property is given in Figure 5.
Figure 5. A graph with a minimal -bounded cluster vertex deletion set of size 3 with . The 2-bounded cluster vertex deletion set is marked by circles. Removing these three vertices leaves one 2-clique and two 3-cliques. On the right a cutwidth-minimal ordering of the graph achieving a cutwidth of three. Every ordering that places the 2-clique consecutively has cutwidth at least four.
A similar approach would still be possible if we can show that there is an optimal solution in which the vertices of connected components appear consecutively in every location. We were not able to show such a structural result or find a counter example yet.
Omitted Proofs
Lemma 3 (⊗). For every ordering and we have .
Proof. We distinguish two kinds of edges: Edges between the vertices of and edges that are incident to at least one vertex in . The second kind of edge can be considered on a per connected component basis. Since , we have
is a subgraph of for every . To avoid counting the cut edges in multiple times we count them separately and remove them from every . We further analyze the second kind of edges:
Combining both shows that
Lemma 5 (⊗). We can calculate the table and find an ordering such that for every in time.
Proof. We first argue the time needed to calculate the dynamic program. To that end, we start by bounding the number of states. Since and every component satisfies , the number of internal edges (edges connecting a vertex in with another vertex in ) and external neighborhood combinations (edges connecting a vertex in with a vertex in ) is bounded by a function of . Specifically, there are at most possibilities for the internal edges of and at most possibilities for the edges between and . Hence,
Since , the number of extended types is bounded by . When bounding the number of states, we have that and that the number of subsets of is at most . With , we obtain that the total number of configurations is bounded by . Thus, the dynamic table has at most entries. Since we can calculate the recursive step in the dynamic program in XP time, we can calculate the entire table in XP time.
Next, we discuss how to obtain the ordering . By the definition of recurrence of the dynamic program, there are states
such that for all and for all . To find these states, we backtrack through the dynamic programming table, which can be done in XP time. We construct by placing vertices from to . For , let be the vertices we placed up to and including position (). Let . We consider the difference between and . By the definition of , we have to consider two cases:
Separator vertex placed: There is a vertex such that and . We set and .
Connected component vertex placed: and there is an extended type and a vertex such that
There is a connected component such that . Such a connected component always exists since by our construction we ensure that . We set and .
Since we keep track of the placed vertices in , no vertex is placed twice. Thus, is a well-defined ordering. Furthermore, and for all . Lastly, we show that . We have for every . Due to Lemma 3, we can bound the maximum cut in :
Omitted Proofs of Section 5
Lemma 6 (🔗 [33 Lemmas 2.3 and 2.4]). Given an ILP with and such that is even and for every with , we have . There exists an edge weighted tree with vertices, height , and weights bounded by where . Furthermore, there is a value such that if and only if there exists with .
Proof. In the proof of Lemma 2.3 the ILP is transformed so that it fulfills the preconditions of Lemma 2.4. We do not explicitly state these four steps, nor the proof. However, we analyze how the transformations in Lemma 2.3 change the properties of the matrix and how this results in a weighted tree in Lemma 2.4 of [33]. The remaining parts are proven in the original paper.
Lemma 2.3 Let be a bound on the largest absolute entries in the transformed matrix and right-hand side after the -th transformation and let and be the corresponding dimensions of the transformed matrix.
Since the sum of rows are added to the values and two new columns are added, we have , , and .
Two columns are added with entries bounded by and the right-hand side is adjusted accordingly. This yields , , and .
Large values are added to entries and the right-hand side to order the rows. The resulting ILP has , , and .
The entries in the first row are doubled. We have , , and .
Lemma 2.4 The constructed tree is a collection of paths of length joined together at a common root. The edge weights are at most .
Combining the lemmas yields the desired result.
Lemma 7 (🔗). Given an instance of MulticoloredClique . There is an ILP , with variables, constraints, and such that there exists an with if and only if is a yes-instance. Furthermore, is even and for every with , we have .
Proof. Let be the set of edges with one endpoint in and one in . For all vertices we introduce a variable and for all edges , we introduce a variable . Further, we assume that the vertices are numbered from 1 to and we obtain the number via a bijection . We formulate the following ILP with and
where , , and . The first constraint ensures that for every color exactly one vertex is selected and the second ensures the same for the edges between color classes. The third constraint guarantees that the endpoints of every selected edge are selected.
When has a multicolored clique of size then this clique contains exactly one vertex from every color class. Further, between clique vertices of different color classes there is an edge. We set the corresponding variables in the ILP to one and all other variables to zero. The first two constraints are satisfied because we select exactly one vertex/edge for every class/between two classes. The third constraint is fulfilled since all selected edges are between vertices of the clique.
If we have a solution for the ILP, we have selected exactly one vertex for every color class and exactly one edge between different color classes due to first two constraints. Thus, in the third constraint both sums have exactly one variable set to one. Rearranging the constraints shows
for all with . Since is a bijection, the selected edges are between the selected vertices. The ILP solution selects edges between every pair of color classes and together with the third constraint this implies that the selected vertices form a multicolored clique of size .
This ILP may not fulfill the condition that is even and every solution with has . We modify the ILP such that the conditions are fulfilled. To this end, we define a new matrix and right-hand side
This system is equivalent to the previous system since the newly added columns do not interact with the old system and are always satisfiable. Furthermore, this system has an even number of variables and every solution has exactly variables set to one. ∎
References
- [1]Arora, S., Frieze, A., Kaplan, H.: A new rounding procedure for the assignment problem with applications to dense graph arrangement problems. In: Proceedings of 37th Conference on Foundations of Computer Science. pp. 21–30 (1996). https://doi.org/10.1109/SFCS.1996.548460
- [2]Bakken, O.R.: Arrangement Problems Parameterized by Neighbourhood Diversity. Master’s thesis, University of Bergen (2018), https://hdl.handle.net/1956/18843
- [3]Blin, G., Fertin, G., Hermelin, D., Vialette, S.: Fixed-parameter algorithms for protein similarity search under mrna structure constraints. Journal of Discrete Algorithms 6(4), 618–626 (2008). https://doi.org/10.1016/j.jda.2008.03.004
- [4]Bodlaender, H.L., Fomin, F.V., Kostochka, A.M.C.A., Kratsch, D., Thilikos, D.M.: A note on exact algorithms for vertex ordering problems on graphs. Theory Comput. Syst. 50(3), 420–432 (2012). https://doi.org/10.1007/S00224-011-9312-0
- [5]Breuer, M.A.: A class of min-cut placement algorithms. In: Proceedings of the 14th Design Automation Conference. p. 284–290. DAC ’77 (1977), https://dl.acm.org/citation.cfm?id=809144
- [6]Casel, K., Day, J.D., Fleischmann, P., Kociumaka, T., Manea, F., Schmid, M.L.: Graph and string parameters: Connections between pathwidth, cutwidth and the locality number. ICALP 132, 109:1–109:16 (2019). https://doi.org/10.4230/LIPIcs.ICALP.2019.109
- [7]Chen, J., Kanj, I.A., Xia, G.: Improved upper bounds for vertex cover. Theor. Comput. Sci. 411(40-42), 3736–3756 (2010). https://doi.org/10.1016/J.TCS.2010.06.026
- [8]Chung, F.R.K.: On the cutwidth and the topological bandwidth of a tree. SIAM J. Algebraic Discrete Methods 6(2), 268–277 (1985). https://doi.org/10.1137/0606026
- [9]Cygan, M., Fomin, F.V., Kowalik, L., Lokshtanov, D., Marx, D., Pilipczuk, M., Pilipczuk, M., Saurabh, S.: Parametrized Algorithms. Springer (2015)
- [10]Cygan, M., Lokshtanov, D., Pilipczuk, M., Pilipczuk, M., Saurabh, S.: On cutwidth parameterized by vertex cover. Algorithmica 68(4), 940–953 (2014)
- [11]Díaz, J., Penrose, M.D., Petit, J., Serna, M.J.: Approximating layout problems on random geometric graphs. J. Algorithms 39(1), 78–116 (2001). https://doi.org/10.1006/JAGM.2000.1149
- [12]Díaz, J., Petit, J., Serna, M.J.: A survey of graph layout problems. ACM Comput. Surv. pp. 313–356 (2002)DOI
- [13]Djidjev, H., Vrto, I.: Crossing numbers and cutwidths. Journal of Graph Algorithms and Applications 7, 245–251 (01 2003). https://doi.org/10.7155/jgaa.00069
- [14]Even, G., Naor, J., Rao, S., Schieber, B.: Divide-and-conquer approximation algorithms via spreading metrics. J. ACM 47(4), 585–616 (2000). https://doi.org/10.1145/347476.347478
- [15]Fellows, M.R., Hermelin, D., Rosamond, F., Vialette, S.: On the parameterized complexity of multiple-interval graph problems. Theoretical Computer Science 410(1), 53–61 (2009). https://doi.org/10.1016/j.tcs.2008.09.065
- [16]Fellows, M.R., Lokshtanov, D., Misra, N., Rosamond, F.A., Saurabh, S.: Graph layout problems parameterized by vertex cover. In: ISAAC. Lecture Notes in Computer Science, vol. 5369, pp. 294–305. Springer (2008). https://doi.org/10.1007/978-3-540-92182-0_28
- [17]Fellows, M.R., Stueckle, S.: The immersion order, forbidden subgraphs and the complexity of network integrity. Journal of Combinatorial Mathematics and Combinatorial Computing (1989)
- [18]Ganian, R.: Improving vertex cover as a graph parameter. Discret. Math. Theor. Comput. Sci. 17(2), 77–100 (2015). https://doi.org/10.46298/DMTCS.2136
- [19]Gavril, F.: Some np-complete problems on graphs. In: 11th Conference on Information Sciences and Systems (1977)
- [20]Gima, T., Kim, E.J., Köhler, N., Melissinos, N., Vasilakis, M.: Bandwidth Parameterized by Cluster Vertex Deletion Number. In: IPEC. pp. 21:1–21:15 (2023). https://doi.org/10.4230/LIPIcs.IPEC.2023.21
- [21]Gorzny, J.: "imbalance, cutwidth, and the structure of optimal orderings" errata (2021), https://jgorzny.ca/wp-content/uploads/2025/02/imbalance-errata.pdf
- [22]Gorzny, J.: Related Orderings of AT-Free Graphs. Ph.D. thesis, University of Waterloo (2022), https://hdl.handle.net/10012/18079
- [23]Gorzny, J., Buss, J.F.: Imbalance, cutwidth, and the structure of optimal orderings. In: COCOON. pp. 219–231 (2019). https://doi.org/10.1007/978-3-030-26176-4_18
- [24]Harper, L.H.: Optimal assignments of numbers to vertices. Journal of the Society for Industrial and Applied Mathematics 12(1), 131–135 (1964). https://doi.org/10.1137/0112012
- [25]Heggernes, P., van ’t Hof, P., Lokshtanov, D., Nederlof, J.: Computing the cutwidth of bipartite permutation graphs in linear time. SIAM Journal on Discrete Mathematics 26(3), 1008–1021 (2012). https://doi.org/10.1137/110830514
- [26]Heggernes, P., Lokshtanov, D., Mihai, R., Papadopoulos, C.: Cutwidth of split graphs and threshold graphs. SIAM J. Discrete Math. 25, 1418–1437 (2011). https://doi.org/10.1137/080741197
- [27]Jr., H.W.L.: Integer programming with a fixed number of variables. Math. Oper. Res. 8(4), 538–548 (1983). https://doi.org/10.1287/moor.8.4.538
- [28]Kannan, R.: Minkowski’s convex body theorem and integer programming. Math. Oper. Res. 12(3), 415–440 (1987). https://doi.org/10.1287/moor.12.3.415
- [29]Leighton, T., Rao, S.: An approximate max-flow min-cut theorem for uniform multicommodity flow problems with applications to approximation algorithms. In: 29th Annual Symposium on Foundations of Computer Science. pp. 422–431 (1988). https://doi.org/10.1109/SFCS.1988.21958
- [30]Leiserson, C.E.: Area-efficient graph layouts. In: Proceedings of the 21st Annual Symposium on Foundations of Computer Science. p. 270–281 (1980). https://doi.org/10.1109/SFCS.1980.13
- [31]Lengauer, T.: Upper and lower bounds on the complexity of the min-cut linear arrangement problem on trees. SIAM Journal on Algebraic Discrete Methods 3(1), 99–113 (1982). https://doi.org/10.1137/0603010
- [32]Misra, N., Mittal, H.: Imbalance parameterized by twin cover revisited. Theor. Comput. Sci. 895, 1–15 (2021). https://doi.org/10.1016/J.TCS.2021.09.017
- [33]Monien, B., Sudborough, I.: Min cut is np-complete for edge weighted trees. Theoretical Computer Science 58(1), 209–229 (1988). https://doi.org/10.1016/0304-3975(88)90028-X
- [34]Nakano, K.: Linear layout of generalized hypercubes. Int. J. Found. Comput. Sci. 14(1), 137–156 (2003). https://doi.org/10.1142/S0129054103001637
- [35]Thilikos, D.M., Serna, M., Bodlaender, H.L.: Cutwidth II: Algorithms for partial w-trees of bounded degree. Journal of Algorithms 56(1), 25–49 (2005). https://doi.org/10.1016/j.jalgor.2004.12.003
- [36]Thilikos, D.M., Serna, M.J., Bodlaender, H.L.: Cutwidth I: A linear time fixed parameter algorithm. J. Algorithms 56(1), 1–24 (2005). https://doi.org/10.1016/J.JALGOR.2004.12.001
- [37]Yannakakis, M.: A polynomial algorithm for the min-cut linear arrangement of trees. J. ACM 32(4), 950–988 (1985). https://doi.org/10.1145/4221.4228


