2012 ACM Subject Classification Theory of computation → Parameterized complexity and exact algorithms; Theory of computation → Graph algorithms analysis
Keywords and phrases Cluster Editing, parameterized complexity, solution-based parameters, above-guarantee parameterization, kernelization, W [ 1 ] W[1] W [ 1 ] -hardness
Acknowledgements This work was initiated at a research retreat around Rolf Fest held in Jena, Germany, in July 2026. We thank Falk Hüffner for interesting discussions.
Introduction
In Cluster Editing we are given a graph G G G and an integer k k k and want to know whether at most k k k edges can be toggled (deleted if present, added if not) such that G G G becomes a cluster graph , a disjoint union of cliques (equivalently, a P 3 P_3 P 3 -free graph). It is one of the proving grounds for parameterized algorithmics, serving as touchstone for kernelization [35 , 53 , 15 ] , subexponential algorithms and matching running time lower bounds [29 , 44 ] , fixed-parameter enumeration [19 ] , structural and other alternative parameterizations [44 , 1 ] , above-guarantee parameterizations [57 , 46 ] , and algorithm engineering [7 , 37 , 3 ] , including the PACE challenge 2021 [41 ] . It was subject to a race improving the base of the exponential running-time part from 2.27 [35 ] via a series of improvements [34 , 6 , 8 ] to 1.62 [5 ] , and to a race decreasing the kernel size from O ( k 2 ) O(k^2) O ( k 2 ) vertices [35 ] via 24 k 24k 24 k [26 ] and 4 k 4k 4 k [36 ] to 2 k 2k 2 k vertices [15 , 12 ] .
About 15 years ago, another race started for many parameterized problems; the race to prove tractability results for smaller and smaller parameters [51 , 25 , 43 ] (see also ref.s [54 , 4 , 20 ] ). The most salient direction that researchers focused on here was to explore how graph problems behave under different graph-structural parameterizations. This has resulted in an immense range of papers and it is by now fairly well understood which structural graph parameters yield tractability for which classical problems; see, e.g., algorithmic meta-theorems [16 , 17 , 9 ] , the studies introducing various structural parameters [27 , 31 , 45 , 30 , 21 ] , and systematic studies of individual problems [38 , 48 ] . The initial ideas were much broader, however. For instance, Komusiewicz and Niedermeier [43 ] proposed studying solution-based parameters: parameterizing by features of the solution, including above- or below-guarantee parameterizations, but also other structural features of the solution. While a number of case studies exist [40 , 42 , 44 , 47 , 29 , 55 , 39 , 14 , 1 , 28 , 56 , 32 ] , solution-based parameters have been studied far less systematically and are less well understood. We contribute to closing this gap by studying a natural solution-based parameter for Cluster Editing.
In particular, Komusiewicz and Niedermeier asked whether Cluster Editing is fixed-parameter tractable with respect to the number ℓ \ell ℓ of allowed edge deletions [43 p. 26] : Clearly, ℓ ≤ k \ell\le k ℓ ≤ k and the case ℓ = 0 \ell= 0 ℓ = 0 is trivial. More generally, there is a trivial O ( n 2 ℓ + 2 ) O(n^{2\ell+2}) O ( n 2 ℓ + 2 ) -time algorithm. In Section D we show that on a large fraction of PACE Challenge 2021 instances, the median value of ℓ \ell ℓ is 0.73 times the optimal number of edits, which would make it an interesting replacement for k k k in FPT algorithms. Bounding the modifications locally has been studied: Komusiewicz and Uhlmann [44 ] bound the number of edits incident to each vertex, and Abu-Khzam [1 ] separately bounds the numbers of additions and deletions incident to each vertex, showing NP-hardness even when each vertex is incident to at most one deletion and two additions. The global number ℓ \ell ℓ of deletions, however, has surprisingly not been studied so far; we aim to close this gap. The bad news up front is that Cluster Editing parameterized by ℓ \ell ℓ is W[1 ] -hard.
Towards the good news, a second motivation for our research comes from the unreasonable effectiveness of practical implementations for Cluster Editing: The most effective algorithms are based on fixed-parameter algorithms for k k k [41 , 3 ] . But this parameter is relatively large in practical data (see Section D), yet the algorithms are quite efficient. What explains this? One direction that researchers have explored is that the lower bounds employed by the implemented algorithms [33 , 3 ] are quite close to the optimal solution (see also Section D); in particular they use packings of modification-disjoint P 3 P_3 P 3 s or stars, where modification disjointness means that each two packed P 3 P_3 P 3 s do not overlap in two vertices. However, parameterizing Cluster Editing by the number μ \mu μ of edits beyond the lower bound given by a modification-disjoint packing of P 3 P_3 P 3 s results in a para-NP-hard problem [46 ] . Hence, this is no theoretical explanation of the observed efficiency. While parameterizing above a vertex-disjoint packing of P 3 P_3 P 3 s yields fixed-parameter tractability [57 ] , this parameter is still often large in practice (Section D). Towards explaining this discrepancy, we in particular show that Cluster Editing becomes fixed-parameter tractable when parameterizing above a modification-disjoint P 3 P_3 P 3 -packing (which is practically close to zero) together with the number ℓ \ell ℓ of deletions (which is often significantly smaller than k k k , see Section D). It also allows for a polynomial-size problem kernel wrt. ℓ \ell ℓ and μ \mu μ combined and both these results transfer to the case where we replace μ \mu μ by the excess σ \sigma σ over a modification-disjoint star packing.
Towards a more general understanding, we then broaden our attention to H H H -Free Editing, where for some fixed graph H H H we want to toggle at most k k k edges in an input graph G G G to ensure that the resulting graph is H H H -free, that is, it has no copy of H H H as an induced subgraph. Similar to Cluster Editing, H H H -Free Editing is NP-hard [2 ] and FPT wrt. k k k [10 ] . A well-known special case is Diamond-free Editing, which corresponds to H H H being K 4 K_4 K 4 missing one edge, where even polynomial-size problem kernels are known [13 ] ; their existence is settled for some other special cases of H H H as well [49 ] . When parameterizing H H H -Free Editing with the number of deletions ℓ \ell ℓ , the picture changes: Aravind, Sandeep, and Sivadasan [2 ] showed that adding edges to make a graph H H H -free is NP-hard whenever H H H misses at least two edges. This leaves H H H -Free Editing NP-hard for ℓ = 0 \ell= 0 ℓ = 0 in these cases. Otherwise, if H H H misses at most one edge, then H H H -Free Editing with Few Deletions is trivially in XP by guessing the deletions and then adding the missing edge for each induced copy of H H H . As we show, it is also W[1 ] -hard with respect to ℓ \ell ℓ . On the positive side, we show that the above fixed-parameter algorithms for Cluster Editing with respect to ℓ \ell ℓ combined with μ \mu μ transfer to H H H -Free Editing when replacing the underlying packing of μ \mu μ with a packing of copies of H H H . We leave open whether polynomial-size problem kernels exist for this parameterization.
Organization and results After formally defining Cluster Editing with Few Deletions and H H H -Free Editing with Few Deletions and collecting notation in § 2 , we prove our hardness results in § 3 . Theorem 3 shows that Cluster Editing with Few Deletions is W[1 ] -hard parameterized by ℓ \ell ℓ , even combined with the pathwidth and the feedback edge set number of the input graph. This answers the question of Komusiewicz and Niedermeyer [43 p. 26] negatively. The reduction is from Multicolored Clique and adapts a reduction of Enciso et al. [23 ] for equitable connected partitions. Theorem 5 extends the hardness to H H H -Free Editing with Few Deletions for every H = K η − e H = K_\eta- e H = K η − e with η ≥ 4 \eta\ge4 η ≥ 4 , with the feedback vertex set number in place of the feedback edge set number. In § 4 , we combine ℓ \ell ℓ with the excess μ \mu μ above a modification-disjoint P 3 P_3 P 3 -packing. Theorem 7 solves Cluster Editing with Few Deletions in O ( 4 μ + ℓ ⋅ ( n + m + μ ) ) O(4^{\mu+\ell}\cdot(n+m+\mu)) O ( 4 μ + ℓ ⋅ ( n + m + μ )) time, Theorem 12 transfers fixed-parameter tractability to H H H -Free Editing with Few Deletions, with the excess over a modification-disjoint packing of induced copies of H H H in place of μ \mu μ , and Theorem 13 replaces the P 3 P_3 P 3 -packings in Theorem 7 by packings of stars with corresponding excess σ \sigma σ . We then give a kernel for Cluster Editing with Few Deletions with O ( ( ℓ + μ ) 2 ) O((\ell+\mu)^2) O (( ℓ + μ ) 2 ) vertices and O ( ( ℓ + μ ) 3 ) O((\ell+\mu)^3) O (( ℓ + μ ) 3 ) edges (Theorem 16) and a polynomial kernel for ℓ + σ \ell+\sigma ℓ + σ (Theorem 22). § 6 concludes with open questions. Proofs of results marked with ⋆ \star ⋆ are deferred to the appendix, which also contains our experiments (Section D).
Preliminaries
A cluster graph is a graph whose connected components are cliques. This is equivalent to not containing any induced P 3 P_3 P 3 (a path on three vertices). For an undirected graph G = ( V , E ) G = (V, E) G = ( V , E ) and a set F ⊆ ( V 2 ) F \subseteq\binom{V}{2} F ⊆ ( 2 V ) , the graph G △ F : = ( V , E △ F ) G \triangle F := (V, E \triangle F) G △ F := ( V , E △ F ) , where △ \triangle △ is the symmetric difference, is obtained by toggling every pair in F F F . The pairs in F ∩ E F \cap E F ∩ E are the edge deletions , and the pairs in F ∖ E F \setminus E F ∖ E are the edge additions . Our study deals mainly with the following problem.
Cluster Editing with Few Deletions
Input: An undirected graph G = ( V , E ) G = (V, E) G = ( V , E ) and non-negative integers k k k and ℓ \ell ℓ .
Question: Is there a set F ⊆ ( V 2 ) F \subseteq\binom{V}{2} F ⊆ ( 2 V ) such that ∣ F ∣ ≤ k |F| \leq k ∣ F ∣ ≤ k , ∣ F ∩ E ∣ ≤ ℓ |F \cap E| \leq\ell ∣ F ∩ E ∣ ≤ ℓ , and G △ F G \triangle F G △ F is a cluster graph?
We also consider the following generalization. Let H H H be a graph. A graph G G G is H H H -free if it does not contain an induced subgraph isomorphic to H H H . For example, the P 3 P_3 P 3 -free graphs are exactly the cluster graphs.
H H H -Free Editing with Few Deletions
Input: An undirected graph G = ( V , E ) G = (V, E) G = ( V , E ) and non-negative integers k k k and ℓ \ell ℓ .
Question: Is there a set F ⊆ ( V 2 ) F \subseteq\binom{V}{2} F ⊆ ( 2 V ) such that ∣ F ∣ ≤ k |F| \leq k ∣ F ∣ ≤ k , ∣ F ∩ E ∣ ≤ ℓ |F \cap E| \leq\ell ∣ F ∩ E ∣ ≤ ℓ , and G △ F G \triangle F G △ F is H H H -free?
Our algorithms use lower bounds given by packings of induced subgraphs. For an induced subgraph Q Q Q of G G G , we call mod ( Q ) : = ( V ( Q ) 2 ) \operatorname{mod}(Q) := \binom{V(Q)}{2} mod ( Q ) := ( 2 V ( Q ) ) the modification set of Q Q Q : toggling a pair in mod ( Q ) \operatorname{mod}(Q) mod ( Q ) changes G [ V ( Q ) ] G[V(Q)] G [ V ( Q )] , whereas toggling a pair outside mod ( Q ) \operatorname{mod}(Q) mod ( Q ) does not. A collection of induced subgraphs of G G G is modification disjoint if their modification sets are pairwise disjoint, that is, if any two of them share at most one vertex. If Q Q Q is isomorphic to K h − e K_h - e K h − e for some h ≥ 3 h \geq3 h ≥ 3 , for instance if Q Q Q is a P 3 P_3 P 3 , then we call the unique pair of nonadjacent vertices of $Q its missing pair miss ( Q ) \operatorname{miss}(Q) miss ( Q ) .
For a graph G G G , let pw ( G ) \operatorname{pw}(G) pw ( G ) denote its pathwidth, let fvs ( G ) \operatorname{fvs}(G) fvs ( G ) denote the minimum size of a vertex set whose removal makes G G G a forest, and let fes ( G ) \operatorname{fes}(G) fes ( G ) denote the minimum size of an edge set whose removal makes G G G a forest. We write [ p ] : = { 1 , … , p } [p] := \{1, \ldots, p\} [ p ] := { 1 , … , p } for a positive integer p p p .
Parameterized complexity. We use standard notions of parameterized complexity [18 , 22 , 50 ] . A decision problem is a set Π \Pi Π whose elements are called instances , together with a subset of Π \Pi Π whose elements are called the yes-instances . The remaining instances are the no-instances . A parameterized problem is a pair ( Π , κ ) (\Pi, \kappa) ( Π , κ ) of a decision problem Π \Pi Π and a computable function κ : Π → N \kappa: \Pi\to\mathbb{N} κ : Π → N , the parameterization ; for an instance I I I , the number κ ( I ) \kappa(I) κ ( I ) is its parameter . The problem is fixed-parameter tractable (FPT) if there is an FPT-algorithm , that decides every instance I I I in f ( κ ( I ) ) ⋅ ∣ I ∣ O ( 1 ) f(\kappa(I)) \cdot|I|^{O(1)} f ( κ ( I )) ⋅ ∣ I ∣ O ( 1 ) time for some computable function f f f . Showing that a parameterized problem is W[1 ] -hard shows that it is presumably not fixed-parameter tractable, since otherwise FPT = W[1 ] , which is considered unlikely. A problem kernel is a polynomial-time algorithm that maps every instance I I I to an equivalent instance I ′ I' I ′ , that is, I I I is a yes-instance if and only if I ′ I' I ′ is, such that ∣ I ′ ∣ ≤ h ( κ ( I ) ) |I'| \leq h(\kappa(I)) ∣ I ′ ∣ ≤ h ( κ ( I )) for some computable function h h h , the size of the kernel. If h h h is a polynomial, then the kernel is a polynomial kernel .
One common technique for designing FPT-algorithms is branching : A branching rule for Π \Pi Π is a partial map R R R from Π \Pi Π to the set of finite subsets of Π \Pi Π , and the instances on which R R R is defined are the instances that R R R applies to. The rule R R R is safe if every instance I I I that it applies to satisfies: I I I is a yes-instance of Π \Pi Π if and only if R ( I ) R(I) R ( I ) contains a yes-instance of Π \Pi Π .
Hardness
We resolve the open question of Komusiewicz and Niedermeier [43 ] in the negative by showing that Cluster Editing with Few Deletions is W[1 ] -hard with respect to ℓ \ell ℓ (§ 3.2 ). Afterwards, we generalize the result to H H H -Free Editing with Few Deletions (§ 3.3 ). for all graphs H H H that are a clique minus one edge, such as diamonds. Both reductions share a common core, the choice graph , which we introduce first (§ 3.1 ).
The hardness is based on the following idea. With only few deletions allowed, we may be forced to cut an input graph into connected components such that the remaining edit budget suffices to complete them into cliques. Since completing a sparse graph requires roughly a quadratic number of edge additions, the overall number of additions is minimized if the connected components after the deletions have pairwise equal size. Indeed, Enciso et al. [23 Thm. 1] showed that partitioning a graph into r r r connected parts whose sizes differ by at most one is W[1 ] -hard parameterized by r r r . We closely follow their reduction from Multicolored Clique, which encodes vertex and edge choices by the positions at which specific paths are cut. Recall that an instance of Multicolored Clique consists of a graph J J J together with a partition U 1 , … , U p U_1,\ldots,U_p U 1 , … , U p of its vertex set U U U into color classes , and the parameter p p p ; we refer to the index i i i of U i U_i U i as a color . It is a yes-instance if J J J contains a clique containing exactly one vertex of every color class. We assume without loss of generality that each color class contains n 0 n_0 n 0 vertices, say U i = { u i 1 , … , u i n 0 } U_i = \{u_i^1,\ldots,u_i^{n_0}\} U i = { u i 1 , … , u i n 0 } , and that there are at least p ≥ 3 p \ge3 p ≥ 3 color classes.
Choice Gadgets and the Choice Graph
Both reductions are based on the choice graph which allows us to select the vertices and edges of the clique in J J J in terms of so-called choices . The choice graph is built from so-called choice gadgets which differ between the two reductions, but share the following structure. Let b b b be a positive integer and let A = { a 1 , … , a T } ⊆ [ b ] A = \{a_1,\ldots,a_T\} \subseteq[b] A = { a 1 , … , a T } ⊆ [ b ] with a 1 < ⋯ < a T a_1 < \cdots< a_T a 1 < ⋯ < a T . An ( A , b ) (A,b) ( A , b ) -choice gadget from a vertex x x x to a vertex y y y is a graph Q Q Q with x , y ∈ V ( Q ) x,y \in V(Q) x , y ∈ V ( Q ) , the endpoints of Q Q Q , together with T T T options o 1 , … , o T o_1,\ldots,o_T o 1 , … , o T , each of which is a vertex or an edge of Q Q Q ; the option o t o_t o t has value a t a_t a t . The vertices in V ( Q ) ∖ { x , y } V(Q) \setminus\{x,y\} V ( Q ) ∖ { x , y } are the inner vertices of Q Q Q .
For integers λ ≥ 1 \lambda\ge1 λ ≥ 1 and c ≥ 0 c \ge0 c ≥ 0 , we say that Q Q Q has the ( λ , c ) (\lambda,c) ( λ , c ) -option property if, for every t ∈ [ T ] t \in[T] t ∈ [ T ] , removing o t o_t o t from Q Q Q leaves a connected component containing x x x with exactly λ a t + c \lambda a_t + c λ a t + c inner vertices and a different connected component containing y y y with exactly λ ( b − a t ) + c \lambda(b-a_t)+c λ ( b − a t ) + c inner vertices. That is, choosing an option of value a a a splits the gadget such that x x x receives a share that is proportional to a a a and y y y a share that is proportional to b − a b-a b − a .
Construction 1 (Choice graph). We are given a choice gadget construction and an instance of Multicolored Clique with above naming and assumptions. Let m 0 : = ∣ E ( J ) ∣ m_0 := |E(J)| m 0 := ∣ E ( J ) ∣ and fix an arbitrary ordering of the edges such that E ( J ) = { e 1 , … , e m 0 } E(J) = \{e_1,\ldots,e_{m_0}\} E ( J ) = { e 1 , … , e m 0 } . We call γ \gamma γ the identifier of the edge e γ e_\gamma e γ . Set z 0 : = 2 m 0 + 10 z_0 := 2m_0+10 z 0 := 2 m 0 + 10 and, for distinct i , j ∈ [ p ] i,j \in[p] i , j ∈ [ p ] , define
A i 0 : = { θ z 0 ∣ θ ∈ [ n 0 ] } , A_i^0 := \{\theta z_0 \mid\theta\in[n_0]\}, A i 0 := { θ z 0 ∣ θ ∈ [ n 0 ]} , A i , j j : = { θ z 0 + γ ∣ θ ∈ [ n 0 ] , u ∈ U j , { u i θ , u } ∈ E ( J ) such that edge { u i θ , u } has identifier γ } . A_{i,j}^j := \{\theta z_0+\gamma\mid\theta\in[n_0],\ u \in U_j,\ \{u_i^\theta,u\} \in E(J)\text{ such that edge }\{u_i^\theta,u\}\text{ has identifier }\gamma\}. A i , j j := { θ z 0 + γ ∣ θ ∈ [ n 0 ] , u ∈ U j , { u i θ , u } ∈ E ( J ) such that edge { u i θ , u } has identifier γ } . For each ordered color pair ( i , j ) (i,j) ( i , j ) with i ≠ j i \ne j i = j , create two anchor roots N i j N_i^j N i j and P i j P_i^j P i j . For i ∈ [ p ] i \in[p] i ∈ [ p ] , let succ i \operatorname{succ}_i succ i be the cyclic permutation of [ p ] ∖ { i } [p]\setminus\{i\} [ p ] ∖ { i } that maps every color to the next larger one, and the largest one to the smallest one. For every ordered color pair ( i , j ) (i,j) ( i , j ) , add the following three new choice gadgets (see Figure 1 ):
a local gadget , which is an ( A i , j j , n 0 z 0 + m 0 ) (A_{i,j}^j,n_0z_0+m_0) ( A i , j j , n 0 z 0 + m 0 ) -choice gadget from N i j N_i^j N i j to P i j P_i^j P i j ;
a successor gadget , which is an ( A i 0 , n 0 z 0 ) (A_i^0,n_0z_0) ( A i 0 , n 0 z 0 ) -choice gadget from P i j P_i^j P i j to N i succ i ( j ) N_i^{\operatorname{succ}_i(j)} N i succ i ( j ) ; and
a mirror gadget , which is an ( [ m 0 ] , m 0 ) ([m_0],m_0) ([ m 0 ] , m 0 ) -choice gadget from P i j P_i^j P i j to N j i N_j^i N j i .
Let Q \mathcal{Q} Q be the set of all these choice gadgets. The resulting graph is the choice graph .
Figure 1. Left: the choice graph for p = 3 p = 3 p = 3 . Each choice gadget is represented by one edge. For each color, the local and successor gadgets form a four-cycle; the mirror gadgets join different color cycles. Right: the { 2 , 3 , 5 } \{2,3,5\} { 2 , 3 , 5 } ,6-choice gadget from x x x to y y y of Construction 2; deleting its option o t o_t o t (labeled with its value) leaves exactly that many of its six inner vertices in the component of x x x .
The choice graph has r : = 2 p ( p − 1 ) r := 2p(p-1) r := 2 p ( p − 1 ) anchor roots and q : = ∣ Q ∣ = 3 p ( p − 1 ) q := |\mathcal{Q}| = 3p(p-1) q := ∣ Q ∣ = 3 p ( p − 1 ) choice gadgets, which pairwise intersect at most in a common endpoint. Every anchor root is an endpoint of exactly three choice gadgets: P i j P_i^j P i j of the three choice gadgets for ( i , j ) (i,j) ( i , j ) , and N i j N_i^j N i j of the local gadget for ( i , j ) (i,j) ( i , j ) , the successor gadget for ( i , succ − 1 ( j ) ) (i,\operatorname{succ}^{-1}(j)) ( i , succ − 1 ( j )) , and the mirror gadget for ( j , i ) (j,i) ( j , i ) . If all choice gadgets are connected, then so is the choice graph: the local and successor gadgets of color i i i form a cycle through all color-i i i anchor roots; the mirror gadgets connect these cycles.
A selection chooses one option o Q o_Q o Q of every choice gadget Q ∈ Q Q \in\mathcal{Q} Q ∈ Q . If Q Q Q is an ( A Q , b Q ) (A_Q,b_Q) ( A Q , b Q ) -choice gadget from x x x to y y y and o Q o_Q o Q has value a a a , then Q Q Q contributes a a a to x x x and b Q − a b_Q-a b Q − a to $y. The selection is balanced if every anchor root receives contributions summing to exactly d : = n 0 z 0 + m 0 d := n_0z_0+m_0 d := n 0 z 0 + m 0 from its three incident choice gadgets. Note that these notions only depend on the parameters and the options of the choice gadgets, but not on their structure.
Lemma 1 (⋆). For every choice gadget construction, the choice graph returned from Construction 1 has a balanced selection if and only if the given instance of Multicolored Clique is a yes-instance.
Reading d d d in base z 0 z_0 z 0 explains the construction: its z 0 z_0 z 0 -digit n 0 n_0 n 0 represents a vertex index, and its unit digit m 0 m_0 m 0 represents an edge identifier. Choosing the option of value θ z 0 + γ \theta z_0+\gamma θ z 0 + γ in the local gadget for ( i , j ) (i,j) ( i , j ) thus chooses the vertex u θ i u_\theta^i u θ i together with an incident edge into U j U_j U j with identifier γ \gamma γ . The successor gadgets pass on vertex indices only, forcing all local gadgets of color i i i to choose the same vertex; the mirror gadgets pass on edge identifiers only, forcing the local gadgets for ( i , j ) (i,j) ( i , j ) and ( j , i ) (j,i) ( j , i ) to choose the same edge. We give the details in Section A.1.
In both reductions, a solution will cut every choice gadget by removing its chosen option, and the option property translates contributions into numbers of vertices.
Observation 2. Suppose that every choice gadget of the choice graph has the ( λ , c ) (\lambda,c) ( λ , c ) -option property, and let ( o Q ) Q ∈ Q (o_Q)_{Q\in\mathcal{Q}} ( o Q ) Q ∈ Q be a selection. After removing all options o Q o_Q o Q , every anchor root v v v lies in its own connected component, which contains exactly λ s v + 3 c \lambda s_v+3c λ s v + 3 c inner vertices of choice gadgets, where s v s_v s v is the sum of the contributions of the three choice gadgets incident with v v v . In particular, all these components contain exactly λ d + 3 c \lambda d+3c λ d + 3 c inner vertices if and only if the selection is balanced.
Proof. Since choice gadgets pairwise intersect at most in a common endpoint, the component of v v v consists of v v v and, for each of the three choice gadgets Q Q Q incident with v v v , the component of Q − o Q Q-o_Q Q − o Q containing v v v . By the option property, the latter does not contain the other endpoint of Q Q Q , and it contains exactly λ a + c \lambda a+c λa + c inner vertices if Q Q Q contributes a a a to v v v .
Hardness for Cluster Editing
Theorem 3 (⋆). Cluster Editing with Few Deletions is W[1 ] -hard parameterized by the deletion budget ℓ \ell ℓ . The hardness also holds for the combined parameter ℓ + pw ( G ) + fes ( G ) \ell+\operatorname{pw}(G)+\operatorname{fes}(G) ℓ + pw ( G ) + fes ( G ) .
For Cluster Editing with Few Deletions, the choice gadgets are paths with attached leaves, and their options are edges.
Construction 2 (Choice gadget for Theorem 3). For A = { a 1 , … , a T } ⊆ [ b ] A=\{a_1,\ldots,a_T\}\subseteq[b] A = { a 1 , … , a T } ⊆ [ b ] with a 1 < ⋯ < a T a_1<\cdots<a_T a 1 < ⋯ < a T , an ( A , b ) (A,b) ( A , b ) -choice gadget from a vertex x x x to a vertex y y y is constructed as follows. Create a path ( v 1 , … , v T + 1 ) (v_1,\ldots,v_{T+1}) ( v 1 , … , v T + 1 ) with v 1 = x v_1=x v 1 = x and v T + 1 = y v_{T+1}=y v T + 1 = y . Attach a 1 a_1 a 1 new leaves to v 1 v_1 v 1 , a t − a t − 1 − 1 a_t-a_{t-1}-1 a t − a t − 1 − 1 new leaves to v t v_t v t for t ∈ { 2 , … , T } t\in\{2,\ldots,T\} t ∈ { 2 , … , T } , and b − a T b-a_T b − a T new leaves to v T + 1 v_{T+1} v T + 1 . We call v 1 , … , v T + 1 v_1,\ldots,v_{T+1} v 1 , … , v T + 1 the spine vertices and the edges of ( v 1 , … , v T + 1 ) (v_1,\ldots,v_{T+1}) ( v 1 , … , v T + 1 ) the spine edges of the choice gadget. The options are the spine edges, where o t : = { v t , v t + 1 } o_t:=\{v_t,v_{t+1}\} o t := { v t , v t + 1 } has value a t a_t a t for t ∈ [ T ] t\in[T] t ∈ [ T ] .
The choice gadget has b b b inner vertices; deleting option o t o_t o t leaves a t a_t a t of them in the component of x x x and the other b − a t b-a_t b − a t in the component of y y y . So it has the ( 1 , 0 ) (1,0) ( 1 , 0 ) -option property.
The choice graph alone does not quite do the trick; we need to ensure that merging two anchor roots is unaffordable by attaching many leaves to each anchor root, making it part of a large star. The unaffordability is captured by Lemma 4 below.
Lemma 4 (⋆). Let G G G be a graph and let ℓ \ell ℓ , r r r , and d d d be integers such that ℓ ≤ r d \ell\le rd ℓ ≤ r d and let h = 9 r d h=9rd h = 9 r d . Suppose that G G G contains r r r pairwise vertex-disjoint induced stars, each with h h h vertices. Let G ~ \widetilde{G} G be a cluster graph obtained from G G G by at most k = ℓ + r ( h + d 2 ) k=\ell+r\binom{h+d}{2} k = ℓ + r ( 2 h + d ) edge edits, of which at most ℓ \ell ℓ are deletions. Then no cluster of G ~ \widetilde{G} G contains more than one center of the stars.
Turning the anchor roots into big stars finishes our construction.
Construction 3. Given an instance of Multicolored Clique with graph J J J and a partition of its vertices into U 1 , … , U p U_1,\ldots,U_p U 1 , … , U p , each of size n 0 n_0 n 0 , with m 0 : = ∣ E ( J ) ∣ m_0:=|E(J)| m 0 := ∣ E ( J ) ∣ , we construct an instance ( G ⋆ , k ⋆ , ℓ ⋆ ) (G^\star,k^\star,\ell^\star) ( G ⋆ , k ⋆ , ℓ ⋆ ) of Cluster Editing with Few Deletions as follows.
Apply Construction 1 using Construction 2 for the choice gadgets and the above instance. Define h : = 9 r d h:=9rd h := 9 r d . To each anchor root, we attach h − 1 h-1 h − 1 new leaves, its private leaves; together with the anchor root, they form a star with h h h vertices, the anchor block of the anchor root. Call the resulting graph G ⋆ G^\star G ⋆ with n : = ∣ V ( G ⋆ ) ∣ n:=|V(G^\star)| n := ∣ V ( G ⋆ ) ∣ vertices and m : = ∣ E ( G ⋆ ) ∣ m:=|E(G^\star)| m := ∣ E ( G ⋆ ) ∣ edges. Finally, set ℓ ⋆ : = q \ell^\star:=q ℓ ⋆ := q and k ⋆ : = r ( h + d 2 ) − m + 2 ℓ ⋆ k^\star:=r\binom{h+d}{2}-m+2\ell^\star k ⋆ := r ( 2 h + d ) − m + 2 ℓ ⋆ .
Let us give some intuition for the correctness. We have r h rh r h vertices in anchor blocks. Each local, successor, and mirror gadget has, respectively, n 0 z 0 + m 0 n_0z_0+m_0 n 0 z 0 + m 0 , n 0 z 0 n_0z_0 n 0 z 0 , and m 0 m_0 m 0 non-endpoint vertices; this sums to p ( p − 1 ) ⋅ 2 d = r d p(p-1)\cdot2d=rd p ( p − 1 ) ⋅ 2 d = r d . Therefore, we have n = r ( h + d ) n=r(h+d) n = r ( h + d ) vertices.
After using the deletion budget, we have m − ℓ ⋆ m-\ell^\star m − ℓ ⋆ remaining edges. By Lemma 4, each anchor root is in its own cluster, so we have at least r r r clusters. The remaining addition budget thus suffices to obtain a cluster graph only if after the deletions, we have exactly r r r size-( h + d ) (h+d) ( h + d ) components which in turn is only possible if the deletion budget was used to obtain a balanced selection, allowing us to invoke Lemma 1.
Hardness for H H H -free Editing
We now turn to H H H -Free Editing with Few Deletions, H H H being a clique minus one edge.
Theorem 5 (⋆). For every fixed η ≥ 4 \eta\ge4 η ≥ 4 and H = K η − e H=K_\eta-e H = K η − e , H H H -Free Editing with Few Deletions is W[1 ] -hard parameterized by the deletion budget ℓ \ell ℓ . The hardness also holds for the combined parameter ℓ + pw ( G ) + fvs ( G ) \ell+\operatorname{pw}(G)+\operatorname{fvs}(G) ℓ + pw ( G ) + fvs ( G ) .
We again use the choice graph from § 3.1 and follow the ideas of Theorem 3. Lifting them to H = K η − e H=K_\eta-e H = K η − e requires the following ingredients (see Figure 2 ).
Figure 2. (a) An ( A , b ) (A,b) ( A , b ) -choice gadget for H-FREE EDITING WITH FEW DELETIONS with T = 3 T=3 T = 3 option vertices (squares), its filler segments (small circles, with the number of vertices indicated), and a vertex z 1 z_1 z 1 of the clique Z Z Z (dotted edges). Deleting the edge { z 1 , u 2 } \{z_1,u_2\} { z 1 , u 2 } detaches the grey option vertex u 2 u_2 u 2 : among the attached vertices, the leaves of u 2 u_2 u 2 become isolated and the two sides of the choice gadget fall apart; the left side then contains λ a 2 + 1 \lambda a_2+1 λ a 2 + 1 inner vertices and the right side λ ( b − a 2 ) + 1 \lambda(b-a_2)+1 λ ( b − a 2 ) + 1 inner vertices. (b) The anchor block of an anchor root v v v : a star with L − 1 L-1 L − 1 leaves together with σ = ℓ ⋆ + 1 \sigma=\ell^\star+1 σ = ℓ ⋆ + 1 pairwise disjoint shields (cliques on η − 2 \eta-2 η − 2 vertices, each completely joined to v v v ). Dotted edges lead to the clique Z Z Z , which is complete to V ( G A ) V(G_A) V ( G A ) and to the clique W W W ; the latter keeps the edges inside Z Z Z undeletable.
A universal clique. We add a clique Z Z Z on η − 3 \eta-3 η − 3 vertices that is complete to the graph G A G_A G A consisting of the choice graph and the anchor blocks. As long as none of these edges are deleted, every induced P 3 P_3 P 3 in G A G_A G A forms an induced H H H together with Z Z Z ; hence, G A G_A G A has to be turned into a cluster graph, just as for Cluster Editing with Few Deletions.
Protecting Z Z Z . A further clique W W W on 2 ℓ ⋆ + η 2\ell^\star+\eta 2 ℓ ⋆ + η vertices that is complete to Z Z Z makes it impossible to delete edges inside Z Z Z .
Detaching as a new way of cutting. A solution may also delete edges between Z Z Z and a vertex x x x of G A G_A G A . Such a detached vertex no longer needs to be in a cluster with its neighbors in G A G_A G A , so a single deletion may cut a choice gadget at x x x (details after Construction 5). We design the choice gadgets such that detaching one of their designated option vertices is the only affordable way to cut them.
Shields. Detaching an anchor root would cut all of its choice gadgets at once. To prevent this, every anchor root receives ℓ ⋆ + 1 \ell^\star+1 ℓ ⋆ + 1 disjoint cliques on η − 2 \eta-2 η − 2 vertices, called shields , such that detaching it requires a deletion in every shield, which would be too expensive.
Back to cluster editing. With these ingredients, the attached vertices induce a cluster graph, and the detached vertices interact only in a controlled way with its clusters (Lemma 6). Isolating the detached vertices yields a cluster graph that is close to G A G_A G A and to which Lemma 4 applies as in Theorem 3.
Construction 4 (Choice gadget for Theorem 5). Let β : = max { 1 , η − 4 } \beta:= \max\{1,\eta- 4\} β := max { 1 , η − 4 } and λ : = β + 2 \lambda:= \beta+ 2 λ := β + 2 .
For A = { a 1 , … , a T } ⊆ [ b ] A = \{a_1,\ldots,a_T\} \subseteq[b] A = { a 1 , … , a T } ⊆ [ b ] with a 1 < ⋯ < a T a_1 < \cdots< a_T a 1 < ⋯ < a T , an ( A , b ) (A,b) ( A , b ) -choice gadget from a vertex x x x to a vertex y y y is constructed as follows (see Figure 2 (a)). Introduce T T T option vertices u 1 , … , u T u_1,\ldots,u_T u 1 , … , u T . For each t ∈ { 0 , … , T } t \in\{0,\ldots,T\} t ∈ { 0 , … , T } , create a filler segment P t P_t P t , which is a path on c t c_t c t filler vertices with
c 0 : = λ a 1 + 1 , c t : = λ ( a t + 1 − a t − 1 ) + 1 ( t ∈ [ T − 1 ] ) , c T : = λ ( b − a T ) + 1. (1) c_0 := \lambda a_1 + 1,\qquad c_t := \lambda(a_{t+1}-a_t-1)+1\quad(t \in[T-1]),\qquad c_T := \lambda(b-a_T)+1. \tag*{(1)} c 0 := λ a 1 + 1 , c t := λ ( a t + 1 − a t − 1 ) + 1 ( t ∈ [ T − 1 ]) , c T := λ ( b − a T ) + 1. (1) Create a path, the spine, by concatenating x , P 0 , u 1 , P 1 , … , u T , P T , y x,P_0,u_1,P_1,\ldots,u_T,P_T,y x , P 0 , u 1 , P 1 , … , u T , P T , y . Its vertices other than x x x and y y y are the inner spine vertices. Finally, attach β \beta β new leaves to each option vertex u t u_t u t . The options are the option vertices, where o t : = u t o_t := u_t o t := u t has value a t a_t a t for t ∈ [ T ] t \in[T] t ∈ [ T ] .
Recall that the inner vertices of the choice gadget are all its vertices other than x x x and y y y , including the leaves. Removing option o t o_t o t leaves P 0 , u 1 , … , u t − 1 , P t − 1 P_0,u_1,\ldots,u_{t-1},P_{t-1} P 0 , u 1 , … , u t − 1 , P t − 1 and the leaves of u 1 , … , u t − 1 u_1,\ldots,u_{t-1} u 1 , … , u t − 1 in the component of x x x , that is, λ a t + 1 \lambda a_t+1 λ a t + 1 inner vertices by Equation (1) . Symmetrically, the component of y y y has λ ( b − a t ) + 1 \lambda(b-a_t)+1 λ ( b − a t ) + 1 inner vertices. So the choice gadget has the ( λ , 1 ) (\lambda,1) ( λ , 1 ) -option property. Unlike for Cluster Editing with Few Deletions, u t u_t u t and its β \beta β leaves belong to neither component. By Observation 2, the anchor roots should thus receive d ^ : = λ d + 3 = λ ( n 0 z 0 + m 0 ) + 3 \hat{d} := \lambda d+3=\lambda(n_0z_0+m_0)+3 d ^ := λ d + 3 = λ ( n 0 z 0 + m 0 ) + 3 inner vertices each.
Construction 5 . Given an instance of Multicolored Clique with graph J J J and a partition of its vertices into U 1 , … , U p U_1,\ldots,U_p U 1 , … , U p , each of size n 0 n_0 n 0 , with m 0 : = ∣ E ( J ) ∣ m_0 := |E(J)| m 0 := ∣ E ( J ) ∣ , we construct an instance ( G ⋆ , k ⋆ , ℓ ⋆ ) (G^\star,k^\star,\ell^\star) ( G ⋆ , k ⋆ , ℓ ⋆ ) of H-Free Editing with Few Deletions as follows (see Figure 2 (b)).
Apply Construction 1 using Construction 4 for the choice gadgets and the above instance. Let L : = 9 r ( d ^ + ( q + 1 ) ( η − 2 ) ) L := 9r\bigl(\hat{d}+(q+1)(\eta-2)\bigr) L := 9 r ( d ^ + ( q + 1 ) ( η − 2 ) ) . To each anchor root v v v , we add L − 1 L-1 L − 1 new leaves, each adjacent to v v v . Moreover, we add σ : = q + 1 \sigma:= q+1 σ := q + 1 so-called shields: pairwise disjoint cliques on η − 2 \eta-2 η − 2 new vertices that are all adjacent to v v v . The anchor block of v v v consists of v v v , its leaves and its shields. Hence, the anchor block has h : = L + σ ( η − 2 ) h := L+\sigma(\eta-2) h := L + σ ( η − 2 ) vertices. Let G A G_A G A be the graph formed by the choice graph plus the anchor blocks, and let n A n_A n A and m A m_A m A be the number of its vertices and edges. To G A G_A G A , add a set Z Z Z of η − 3 \eta-3 η − 3 new vertices that form a clique and are all adjacent to all vertices in G A G_A G A . Further, add a set W W W of ω : = 2 q + η \omega:= 2q+\eta ω := 2 q + η new vertices that form a clique and are all adjacent to all vertices in Z Z Z (but have no neighbor in G A G_A G A ). Call the resulting graph G ⋆ G^\star G ⋆ . Finally, set ℓ ⋆ : = q \ell^\star:= q ℓ ⋆ := q and k ⋆ : = r ( h + d ^ 2 ) − m A + ( β + 3 ) q k^\star:= r\left(\frac{h+\hat{d}}{2}\right)-m_A+(\beta+3)q k ⋆ := r ( 2 h + d ^ ) − m A + ( β + 3 ) q .
We now give details to Ingredient 3. Consider a solution F F F respecting the bounds k ⋆ k^\star k ⋆ and ℓ ⋆ \ell^\star ℓ ⋆ and let G ~ : = G ⋆ △ F \widetilde{G}:=G^\star\mathbin{\triangle}F G := G ⋆ △ F . If F F F contains no deletion incident with a vertex of Z Z Z , then Z Z Z is a clique that is complete to V ( G A ) V(G_A) V ( G A ) in G ~ \widetilde{G} G , and G ~ \widetilde{G} G is H H H -free if and only if G ~ [ V ( G A ) ] \widetilde{G}[V(G_A)] G [ V ( G A )] is a cluster graph. The solution may however delete edges between Z Z Z and G A G_A G A (and this is the intended mechanism in our reduction). Hence, we record for each vertex x ∈ V ( G A ) x\in V(G_A) x ∈ V ( G A ) the set of neighbors in Z Z Z it loses in a solution, that is, we let Z x : = { z ∈ Z ∣ { z , x } ∉ E ( G ~ ) } Z_x:=\{z\in Z\mid\{z,x\}\notin E(\widetilde{G})\} Z x := { z ∈ Z ∣ { z , x } ∈ / E ( G )} . We call a vertex x ∈ V ( G A ) x\in V(G_A) x ∈ V ( G A ) detached if Z x ≠ ∅ Z_x\ne\emptyset Z x = ∅ , i.e., at least one edge incident with x x x was removed, and attached otherwise. Denote by X X X the set of detached and by Y : = V ( G A ) ∖ X Y:=V(G_A)\setminus X Y := V ( G A ) ∖ X the set of attached vertices in G A G_A G A . Solutions with at most ℓ ⋆ \ell^\star ℓ ⋆ deletions have the following properties.
Lemma 6 (⋆ \star ⋆ ). Let F ⊆ ( V ( G ⋆ ) 2 ) F\subseteq\binom{V(G^\star)}{2} F ⊆ ( 2 V ( G ⋆ ) ) have at most ℓ ⋆ \ell^\star ℓ ⋆ deletions. If G ~ : = G ⋆ △ F \widetilde{G}:=G^\star\mathbin{\triangle}F G := G ⋆ △ F is H H H -free, then, with X X X , Y Y Y , and the sets Z x Z_x Z x defined with respect to G ~ \widetilde{G} G ,
(i) Z Z Z induces a clique in G ~ \widetilde{G} G ;
(ii) G ~ [ Y ] \widetilde{G}[Y] G [ Y ] is a cluster graph; and
(iii) every detached vertex x ∈ X x\in X x ∈ X is adjacent to at most ∣ Z x ∣ |Z_x| ∣ Z x ∣ vertices of a cluster of G ~ [ Y ] \widetilde{G}[Y] G [ Y ] .
With this, the correctness follows the lines of Theorem 3; see Section A.3 for the full proof. First, no anchor root v v v is detached: otherwise, as v v v has more than ℓ ⋆ \ell^\star ℓ ⋆ shields, some shield of v v v is not incident with any deletion, and v v v is adjacent to all of its η − 2 > ∣ Z v ∣ \eta- 2 > |Z_v| η − 2 > ∣ Z v ∣ vertices, which are attached and lie in one cluster, contradicting Lemma 6(iii). Second, isolating the detached vertices yields a cluster graph G † G^\dagger G † ; as all detached vertices have small degree, G † G^\dagger G † arises from G A G_A G A by few deletions, and Lemma 4 shows that no cluster of G † G^\dagger G † , and hence of G ~ [ Y ] \widetilde{G}[Y] G [ Y ] , contains two anchor roots. Thus, every choice gadget has to be cut, by detaching one of its inner spine vertices or by deleting a spine edge, and as ℓ ⋆ = q \ell^\star= q ℓ ⋆ = q , every choice gadget is cut exactly once. Third, cutting at a filler vertex or at a spine edge leaves more vertices in the components of the anchor roots than detaching an option vertex, which also cuts off its β \beta β leaves; by convexity, the addition budget then does not suffice. Hence, the detached vertices are option vertices, one per choice gadget, and, as for Cluster Editing with Few Deletions, the budget forces all components of anchor roots to have the same size h + d ^ h + \hat{d} h + d ^ . By Observation 2, the detached option vertices thus form a balanced selection, and Lemma 1 yields a multicolored clique.
FPT-algorithms wrt. Deletions Combined with Above-guarantees
Cluster Editing with Few Deletions
We now prove the following.
Theorem 7 (⋆ \star ⋆ ). An instance of Cluster Editing with Few Deletions given together with a modification-disjoint collection P \mathcal{P} P of induced P 3 P_3 P 3 ’s of the input graph can be decided in O ( 4 μ + ℓ ⋅ ( n + m + μ ) ) O(4^{\mu+\ell} \cdot(n + m + \mu)) O ( 4 μ + ℓ ⋅ ( n + m + μ )) time, where μ = k − ∣ P ∣ \mu= k - |\mathcal{P}| μ = k − ∣ P ∣ .
The basic strategy is to first tentatively add all missing edges of the P 3 P_3 P 3 ’s in the packing. If this gives a cluster graph, we have found a solution. Otherwise, we can find an induced P 3 P_3 P 3 , say Q Q Q , in the augmented graph. As we will see, there is always a solution that either adds the missing edge, yielding excess over the packing, or performs an edge-deletion in the neighborhood of Q Q Q .
For an induced P 3 P_3 P 3 Q Q Q of G G G with edges { p , q } \{p,q\} { p , q } and { q , r } \{q,r\} { q , r } , the definitions in § 2 give miss ( Q ) = { p , r } \operatorname{miss}(Q) = \{p,r\} miss ( Q ) = { p , r } and mod ( Q ) = { { p , q } , { q , r } , { p , r } } \operatorname{mod}(Q) = \{\{p,q\},\{q,r\},\{p,r\}\} mod ( Q ) = {{ p , q } , { q , r } , { p , r }} ; these are precisely the three vertex pairs whose toggling destroys Q Q Q . In the following we assume that, along with the instance, we are given a modification-disjoint collection P \mathcal{P} P of induced P 3 P_3 P 3 ’s of the input graph, and we define the above-guarantee parameter μ : = k − ∣ P ∣ \mu:= k - |\mathcal{P}| μ := k − ∣ P ∣ . Clearly, if μ < 0 \mu< 0 μ < 0 , then we face a no-instance and we thus assume μ ≥ 0 \mu\ge0 μ ≥ 0 . We may also assume that P \mathcal{P} P is inclusion-maximal: further induced P 3 P_3 P 3 ’s whose modification sets are disjoint from those of the current members can be added greedily, each decreasing μ \mu μ by one.
For a modification-disjoint collection P \mathcal{P} P of induced P 3 P_3 P 3 ’s of G G G , let miss ( P ) : = { miss ( Q ) ∣ Q ∈ P } \operatorname{miss}(\mathcal{P}) := \{\operatorname{miss}(Q) \mid Q \in\mathcal{P}\} miss ( P ) := { miss ( Q ) ∣ Q ∈ P } collect the missing pairs of the members of P \mathcal{P} P and let
G P : = ( V ( G ) , E ( G ) ∪ miss ( P ) ) (2) G^{\mathcal{P}} := (V(G), E(G) \cup\operatorname{miss}(\mathcal{P})) \tag*{(2)} G P := ( V ( G ) , E ( G ) ∪ miss ( P )) (2)
be the graph obtained from G G G by adding all of them. Distinct members of P \mathcal{P} P have disjoint modification sets and hence distinct missing pairs, so ∣ miss ( P ) ∣ = ∣ P ∣ |\operatorname{miss}(\mathcal{P})| = |\mathcal{P}| ∣ miss ( P ) ∣ = ∣ P ∣ . Adding miss ( P ) \operatorname{miss}(\mathcal{P}) miss ( P ) is thus a cheapest way of destroying all members of P \mathcal{P} P , and it is the only such way that spends no deletion. We treat it as the default and deviate from it only when forced to.
We call a tuple ( G , k , ℓ , P ) (G,k,\ell,\mathcal{P}) ( G , k , ℓ , P ) a packed instance if ( G , k , ℓ ) (G,k,\ell) ( G , k , ℓ ) is an instance of Cluster Editing with Few Deletions and P \mathcal{P} P is a modification-disjoint collection of induced P 3 P_3 P 3 ’s of G G G , and we call it a yes-instance if ( G , k , ℓ ) (G,k,\ell) ( G , k , ℓ ) is one.
The rule below destroys a fixed induced P 3 P_3 P 3 of G P G^{\mathcal{P}} G P with edges { u , v } \{u,v\} { u , v } and { v , w } \{v,w\} { v , w } . A cluster graph contains no induced P 3 P_3 P 3 , so a solution adds { u , w } \{u,w\} { u , w } or keeps one of { u , v } \{u,v\} { u , v } and { v , w } \{v,w\} { v , w } out of the cluster graph, and the rule branches on these three possibilities. Adding { u , w } \{u,w\} { u , w } is an edit of G G G outside P \mathcal{P} P and is charged as one towards μ \mu μ . For the other two the pair kept out may or may not be an edge of G G G , and the case in which it is not does not immediately reduce the parameter. To deal with that, say we keep out the nonedge { u , v } \{u,v\} { u , v } of G G G . There is an induced P 3 P_3 P 3 in G G G that was responsible for { u , v } \{u,v\} { u , v } being added to G P G^{\mathcal{P}} G P . Keeping { u , v } \{u,v\} { u , v } out now means that we also have to delete one of the other edges of this P 3 P_3 P 3 , giving an additional deletion which decreases parameter ℓ \ell ℓ . Figure 3 shows the resulting packed instances in this case.
Figure 3. Branching Rule 8 applied to the induced P 3 P_3 P 3 on u u u , v v v , w w w of G P G^{\mathcal{P}} G P , in the case that { u , v } \{u,v\} { u , v } is the missing pair of the member Q Q Q of P \mathcal{P} P on u u u , x x x , v v v , and that { v , w } \{v,w\} { v , w } is an edge of G G G . Keeping { u , v } \{u,v\} { u , v } out removes Q Q Q from the collection, so the pair is no longer added and Q Q Q has to be destroyed by one of its own two edges; this is the item that produces two packed instances rather than one.
Each produced packed instance thus records one edit, a toggled pair f f f , and it is given the collection P − f : = { Q ∈ P ∣ f ∉ mod ( Q ) } \mathcal{P}-f := \{Q \in\mathcal{P} \mid f \notin\operatorname{mod}(Q)\} P − f := { Q ∈ P ∣ f ∈ / mod ( Q )} of those members that this edit leaves intact.
Branching Rule 8. Let ( G , k , ℓ , P ) (G,k,\ell,\mathcal{P}) ( G , k , ℓ , P ) be a packed instance such that G P G^{\mathcal{P}} G P is not a cluster graph, and let u u u , v v v , w w w induce a P 3 P_3 P 3 in G P G^{\mathcal{P}} G P with edges { u , v } \{u,v\} { u , v } and { v , w } \{v,w\} { v , w } . Produce the following packed instances.
( G + { u , w } , k − 1 , ℓ , P ) (G+\{u,w\}, k-1, \ell, \mathcal{P}) ( G + { u , w } , k − 1 , ℓ , P ) .
For each e ∈ { { u , v } , { v , w } } e \in\{\{u,v\},\{v,w\}\} e ∈ {{ u , v } , { v , w }} with e ∈ E ( G ) e \in E(G) e ∈ E ( G ) , the packed instance ( G − e , k − 1 , ℓ − 1 , P − e ) (G-e,k-1,\ell-1,\mathcal{P}-e) ( G − e , k − 1 , ℓ − 1 , P − e ) .
For each e ∈ { { u , v } , { v , w } } e \in\{\{u,v\},\{v,w\}\} e ∈ {{ u , v } , { v , w }} with e ∉ E ( G ) e \notin E(G) e ∈ / E ( G ) , let Q e Q_e Q e denote the member of P \mathcal{P} P with miss ( Q e ) = e \operatorname{miss}(Q_e)=e miss ( Q e ) = e and produce, for each of the two edges f ∈ mod ( Q e ) ∩ E ( G ) f \in\operatorname{mod}(Q_e) \cap E(G) f ∈ mod ( Q e ) ∩ E ( G ) , the packed instance ( G − f , k − 1 , ℓ − 1 , P − f ) (G-f,k-1,\ell-1,\mathcal{P}-f) ( G − f , k − 1 , ℓ − 1 , P − f ) .
We next verify that the rule is well defined, decreases μ + ℓ \mu+\ell μ + ℓ , and that it is safe.
Lemma 9 (⋆ \star ⋆ ). Branching Rule 8 is well defined and produces at most five packed instances. Every produced packed instance ( G ′ , k ′ , ℓ ′ , P ′ ) (G',k',\ell',\mathcal{P}') ( G ′ , k ′ , ℓ ′ , P ′ ) satisfies ( k ′ − ∣ P ′ ∣ ) + ℓ ′ ≤ ( k − ∣ P ∣ ) + ℓ − 1 (k'-|\mathcal{P}'|)+\ell' \le(k-|\mathcal{P}|)+\ell-1 ( k ′ − ∣ P ′ ∣ ) + ℓ ′ ≤ ( k − ∣ P ∣ ) + ℓ − 1 .
Lemma 10. Branching Rule 8 is safe.
Proof. Each packed instance produced by the rule has the form ( G ′ , k − 1 , ℓ ′ , P ′ ) (G',k-1,\ell',\mathcal{P}') ( G ′ , k − 1 , ℓ ′ , P ′ ) with G ′ : = G △ { f } G' := G\triangle\{f\} G ′ := G △ { f } for a single pair f f f , where ℓ ′ = ℓ − 1 \ell'=\ell-1 ℓ ′ = ℓ − 1 if f ∈ E ( G ) f\in E(G) f ∈ E ( G ) and ℓ ′ = ℓ \ell'=\ell ℓ ′ = ℓ otherwise: f = { u , w } ∉ E ( G ) f=\{u,w\}\notin E(G) f = { u , w } ∈ / E ( G ) in Item 1, and f ∈ E ( G ) f\in E(G) f ∈ E ( G ) in Items 2 and 3. The graphs G G G and G ′ G' G ′ differ only in the pair f f f . Hence every F ′ ⊆ ( V ( G ) 2 ) F' \subseteq\binom{V(G)}{2} F ′ ⊆ ( 2 V ( G ) ) satisfies G ′ △ F ′ = G △ ( F ′ △ { f } ) G'\triangle F'=G\triangle(F'\triangle\{f\}) G ′ △ F ′ = G △ ( F ′ △ { f }) , and every pair g ≠ f g\ne f g = f lies in E ( G ) E(G) E ( G ) if and only if it lies in E ( G ′ ) E(G') E ( G ′ ) .
Suppose first that one of the produced packed instances is a yes-instance, and let F ′ F' F ′ be a solution of ( G ′ , k − 1 , ℓ ′ ) (G',k-1,\ell') ( G ′ , k − 1 , ℓ ′ ) . Then F : = F ′ △ { f } F:=F'\triangle\{f\} F := F ′ △ { f } satisfies that G △ F = G ′ △ F ′ G\triangle F=G'\triangle F' G △ F = G ′ △ F ′ is a cluster graph and ∣ F ∣ ≤ ∣ F ′ ∣ + 1 ≤ k |F|\le|F'|+1\le k ∣ F ∣ ≤ ∣ F ′ ∣ + 1 ≤ k . Every pair in F ′ ∩ E ( G ) F'\cap E(G) F ′ ∩ E ( G ) other than f f f lies in F ′ ∩ E ( G ′ ) F'\cap E(G') F ′ ∩ E ( G ′ ) , so ∣ F ∩ E ( G ) ∣ ≤ ℓ ′ + 1 = ℓ |F\cap E(G)|\le\ell'+1=\ell ∣ F ∩ E ( G ) ∣ ≤ ℓ ′ + 1 = ℓ if f ∈ E ( G ) f\in E(G) f ∈ E ( G ) and ∣ F ∩ E ( G ) ∣ ≤ ℓ ′ = ℓ |F\cap E(G)|\le\ell'=\ell ∣ F ∩ E ( G ) ∣ ≤ ℓ ′ = ℓ otherwise. Thus ( G , k , ℓ ) (G,k,\ell) ( G , k , ℓ ) is a yes-instance.
Suppose conversely that ( G , k , ℓ , P ) (G,k,\ell,\mathcal{P}) ( G , k , ℓ , P ) is a yes-instance and let F F F be a solution of ( G , k , ℓ ) (G,k,\ell) ( G , k , ℓ ) . We claim that F F F contains the pair f f f for one of the produced packed instances. This finishes the proof: F ′ : = F ∖ { f } F':=F\setminus\{f\} F ′ := F ∖ { f } satisfies that G ′ △ F ′ = G △ F G'\triangle F'=G\triangle F G ′ △ F ′ = G △ F is a cluster graph, ∣ F ′ ∣ = ∣ F ∣ − 1 ≤ k − 1 |F'|=|F|-1\le k-1 ∣ F ′ ∣ = ∣ F ∣ − 1 ≤ k − 1 , and F ′ ∩ E ( G ′ ) = ( F ∩ E ( G ) ) ∖ { f } F'\cap E(G')=(F\cap E(G))\setminus\{f\} F ′ ∩ E ( G ′ ) = ( F ∩ E ( G )) ∖ { f } , which has size ∣ F ∩ E ( G ) ∣ − 1 ≤ ℓ − 1 = ℓ ′ |F\cap E(G)|-1\le\ell-1=\ell' ∣ F ∩ E ( G ) ∣ − 1 ≤ ℓ − 1 = ℓ ′ if f ∈ E ( G ) f\in E(G) f ∈ E ( G ) and size ∣ F ∩ E ( G ) ∣ ≤ ℓ = ℓ ′ |F \cap E(G)| \le\ell= \ell' ∣ F ∩ E ( G ) ∣ ≤ ℓ = ℓ ′ otherwise; so the packed instance for f f f is a yes-instance. It remains to prove the claim. The graph G △ F G \triangle F G △ F is a cluster graph and thus contains no induced P 3 P_3 P 3 , so { u , w } ∈ E ( G △ F ) \{u,w\} \in E(G \triangle F) { u , w } ∈ E ( G △ F ) or { u , v } ∉ E ( G △ F ) \{u,v\} \notin E(G \triangle F) { u , v } ∈ / E ( G △ F ) or { v , w } ∉ E ( G △ F ) \{v,w\} \notin E(G \triangle F) { v , w } ∈ / E ( G △ F ) . In the first case { u , w } ∉ E ( G P ) ⊇ E ( G ) \{u,w\} \notin E(G^{\mathcal{P}}) \supseteq E(G) { u , w } ∈ / E ( G P ) ⊇ E ( G ) gives { u , w } ∈ F \{u,w\} \in F { u , w } ∈ F , the pair of Item 1. In the remaining cases let e ∈ { { u , v } , { v , w } } e \in\{\{u,v\},\{v,w\}\} e ∈ {{ u , v } , { v , w }} with e ∉ E ( G △ F ) e \notin E(G \triangle F) e ∈ / E ( G △ F ) . If e ∈ E ( G ) e \in E(G) e ∈ E ( G ) , then e ∈ F e \in F e ∈ F , the pair of Item 2 for e e e . If e ∉ E ( G ) e \notin E(G) e ∈ / E ( G ) , then e ∈ miss ( P ) e \in\operatorname{miss}(\mathcal{P}) e ∈ miss ( P ) and e ∉ F e \notin F e ∈ / F ; since Q e Q_e Q e is an induced P 3 P_3 P 3 in G G G we have F ∩ mod ( Q e ) ≠ ∅ F \cap\operatorname{mod}(Q_e) \ne\varnothing F ∩ mod ( Q e ) = ∅ , so F F F contains one of the two edges of Q e Q_e Q e , and these are the pairs of Item 3 for e . ▲ e. \blacktriangle e . ▲
From the safety of Branching Rule 8 and the fact that it is a 5-way branching that decreases μ + ℓ \mu+\ell μ + ℓ by at least one in each case we would now straightforwardly get a O ( 5 μ + ℓ ⋅ ( n + m + μ ) ) O(5^{\mu+\ell}\cdot(n+m+\mu)) O ( 5 μ + ℓ ⋅ ( n + m + μ )) -time algorithm. With the following observation we can reduce the exponential part to 4 μ + ℓ 4^{\mu+\ell} 4 μ + ℓ : If u , v , w u,v,w u , v , w induce a P 3 P_3 P 3 in which at most one of { u , v } \{u,v\} { u , v } and { v , w } \{v,w\} { v , w } is not in E ( G ) E(G) E ( G ) , then the branching factor is 4 instead. Such a P 3 P_3 P 3 always exists:
Lemma 11. Let P \mathcal{P} P be a modification-disjoint collection of induced P 3 P_3 P 3 's of a graph G G G and suppose that G P G^{\mathcal{P}} G P is not a cluster graph. Then G P G^{\mathcal{P}} G P contains three vertices that induce a P 3 P_3 P 3 in which at least one of the two edges is an edge of G G G .
Proof. Let u , v , w u,v,w u , v , w induce a P 3 P_3 P 3 in G P G^{\mathcal{P}} G P with edges { u , v } \{u,v\} { u , v } and { v , w } \{v,w\} { v , w } . If one of these two pairs lies in E ( G ) E(G) E ( G ) , then we are done, so assume that both lie in miss ( P ) \operatorname{miss}(\mathcal{P}) miss ( P ) . Let Q 1 ∈ P Q_1 \in\mathcal{P} Q 1 ∈ P be the member with miss ( Q 1 ) = { u , v } \operatorname{miss}(Q_1)=\{u,v\} miss ( Q 1 ) = { u , v } and let x x x be its third vertex, and let Q 2 ∈ P Q_2 \in\mathcal{P} Q 2 ∈ P be the member with miss ( Q 2 ) = { v , w } \operatorname{miss}(Q_2)=\{v,w\} miss ( Q 2 ) = { v , w } and let y y y be its third vertex. Then { u , x } , { x , v } , { v , y } , { y , w } ∈ E ( G ) \{u,x\},\{x,v\},\{v,y\},\{y,w\} \in E(G) { u , x } , { x , v } , { v , y } , { y , w } ∈ E ( G ) .
The vertices u , v , w , x , y u,v,w,x,y u , v , w , x , y are pairwise distinct. Indeed, x ∉ { u , v } x \notin\{u,v\} x ∈ / { u , v } and y ∉ { v , w } y \notin\{v,w\} y ∈ / { v , w } because Q 1 Q_1 Q 1 and Q 2 Q_2 Q 2 are P 3 P_3 P 3 's; x ≠ w x \ne w x = w because { x , v } ∈ E ( G ) \{x,v\} \in E(G) { x , v } ∈ E ( G ) whereas { w , v } ∉ E ( G ) \{w,v\} \notin E(G) { w , v } ∈ / E ( G ) ; y ≠ u y \ne u y = u by the symmetric argument; and x ≠ y x \ne y x = y because otherwise { x , v } ∈ mod ( Q 1 ) ∩ mod ( Q 2 ) \{x,v\} \in\operatorname{mod}(Q_1) \cap\operatorname{mod}(Q_2) { x , v } ∈ mod ( Q 1 ) ∩ mod ( Q 2 ) , contradicting modification disjointness.
For the required P 3 P_3 P 3 , recall that { u , w } ∉ E ( G P ) \{u,w\} \notin E(G^{\mathcal{P}}) { u , w } ∈ / E ( G P ) . If { u , y } ∉ E ( G P ) \{u,y\} \notin E(G^{\mathcal{P}}) { u , y } ∈ / E ( G P ) , then u , v , y u,v,y u , v , y induce a P 3 P_3 P 3 with { v , y } ∈ E ( G ) \{v,y\} \in E(G) { v , y } ∈ E ( G ) . If { u , y } ∈ E ( G P ) \{u,y\} \in E(G^{\mathcal{P}}) { u , y } ∈ E ( G P ) , then u , y , w u,y,w u , y , w induce a P 3 P_3 P 3 with { y , w } ∈ E ( G ) \{y,w\} \in E(G) { y , w } ∈ E ( G ) . ▲ \blacktriangle ▲
Combining Lemmas 9–11 now gives Theorem 7.
Generalization to H H H -free Editing
Let h ≥ 3 h \ge3 h ≥ 3 and H = K h − e H=K_h-e H = K h − e , that is, the graph on h h h vertices with ( h 2 ) − 1 \binom{h}{2}-1 ( 2 h ) − 1 edges. Given a modification-disjoint collection H \mathcal{H} H of induced copies of H H H in the input graph, with missing pairs and modification sets as defined in § 2 , let μ : = k − ∣ H ∣ \mu:= k-|\mathcal{H}| μ := k − ∣ H ∣ . (Note that we overload μ \mu μ here; in the context of Cluster Editing it instead means the excess over a packing of P 3 P_3 P 3 s and it will always be clear what is meant from the context.)
Theorem 12 (⋆ \star ⋆ ). Let h ≥ 3 h \ge3 h ≥ 3 and H = K h − e H=K_h-e H = K h − e . An instance of H H H -free Editing with Few Deletions given together with a modification-disjoint collection H \mathcal{H} H of induced copies of H H H in the input graph can be decided in O ( h 4 ( μ + ℓ ) ⋅ h 2 n h h ) O(h^{4(\mu+\ell)}\cdot h^{2n}h^h) O ( h 4 ( μ + ℓ ) ⋅ h 2 n h h ) time, where μ = k − ∣ H ∣ \mu=k-|\mathcal{H}| μ = k − ∣ H ∣ .
The algorithm adapts the one of Theorem 7. It takes adding the missing pairs of all members of H \mathcal{H} H as the default and branches on an induced copy R R R of H H H in the resulting graph: it either adds the missing pair of R R R , which uses up excess, or deletes an edge of R R R , or, if that edge is the missing pair of a member of H \mathcal{H} H , deletes one of the edges of that member, which uses up a deletion.
CEwFD with Modification-disjoint Star Packings
We consider a parameterization above a guarantee given by a packing of other induced subgraphs. For a star S S S on at least 3 vertices, let lb ( S ) : = ∣ V ( S ) ∣ − 2 \operatorname{lb}(S) := |V(S)| - 2 lb ( S ) := ∣ V ( S ) ∣ − 2 . On the one hand, note that any star S S S can be turned into a cluster graph by modifying lb ( S ) \operatorname{lb}(S) lb ( S ) edges, namely by deleting this many edges. On the other hand, any edge modification of S S S to a cluster graph, requires at least lb ( S ) \operatorname{lb}(S) lb ( S ) modifications.
Let S \mathcal{S} S be a collection of modification-disjoint induced stars in G G G , each with at least 3 vertices, and let σ : = k − ∑ S ∈ S ( lb ( S ) ) \sigma:= k - \sum_{S \in\mathcal{S}}(\operatorname{lb}(S)) σ := k − ∑ S ∈ S ( lb ( S )) .
Theorem 13. C E w F D CEwFD C E w F D is FPT with respect to the combination of ℓ \ell ℓ and σ \sigma σ .
We first bound the size and the number of large stars in S \mathcal{S} S .
Observation 14. Let ( G , k , ℓ , S ) (G,k,\ell,\mathcal{S}) ( G , k , ℓ , S ) be a packed instance. If there is a star S ∈ S S \in\mathcal{S} S ∈ S with more than s : = ℓ + 2 σ + 3 s := \ell+ 2\sqrt{\sigma} + 3 s := ℓ + 2 σ + 3 vertices, then there is no solution.
Proof. Indeed, even if we delete ℓ \ell ℓ edges from S S S , there are still at least 2 σ + 4 2\sqrt{\sigma} + 4 2 σ + 4 vertices left, which end up in the same connected component. Hence, the corresponding clique needs at least
( 2 σ + 4 2 ) = 1 2 ( 2 σ + 4 ) ( 2 σ + 3 ) = 2 σ + 7 σ + 6 \binom{2\sqrt{\sigma}+4}{2} = \frac{1}{2}(2\sqrt{\sigma}+4)(2\sqrt{\sigma}+3) = 2\sigma+ 7\sqrt{\sigma} + 6 ( 2 2 σ + 4 ) = 2 1 ( 2 σ + 4 ) ( 2 σ + 3 ) = 2 σ + 7 σ + 6
edges. But at most 2 σ + 3 2\sqrt{\sigma} + 3 2 σ + 3 of them are present and at most another 2 σ + 2 2\sqrt{\sigma} + 2 2 σ + 2 was counted for in the lower bound lb ( S ) \operatorname{lb}(S) lb ( S ) . So, we would have to add at least 2 σ + 1 2\sigma+ 1 2 σ + 1 extra edges, which exceeds σ \sigma σ .
Observation 15. Let ( G , k , ℓ , S ) (G,k,\ell,\mathcal{S}) ( G , k , ℓ , S ) be a packed instance. If there are more than ℓ + σ \ell+ \sigma ℓ + σ stars of size at least 4 in S \mathcal{S} S , then there is no solution.
Proof. Each star S S S with s ≥ 4 s \ge4 s ≥ 4 vertices requires at least one edge deletion or at least
( s 2 ) − ( s − 1 ) − s 2 ( s − 1 ) − ( s − 1 ) = s − 2 2 ( s − 1 ) \binom{s}{2} - (s-1) - \frac{s}{2}(s-1) - (s-1) = \frac{s-2}{2}(s-1) ( 2 s ) − ( s − 1 ) − 2 s ( s − 1 ) − ( s − 1 ) = 2 s − 2 ( s − 1 )
edge additions, which is at least s − 1 > lb ( S ) s-1 > \operatorname{lb}(S) s − 1 > lb ( S ) since s ≥ 4 s \ge4 s ≥ 4 . Thus, if there are more than ℓ + σ \ell+ \sigma ℓ + σ such stars, then any solution requires more than k k k edge modifications or more than ℓ \ell ℓ deletions.
Proof of Theorem 13. By Observations 14 and 15, we know that each star in S \mathcal{S} S contains at most ℓ + 2 σ + 3 \ell+ 2\sqrt{\sigma} + 3 ℓ + 2 σ + 3 vertices and there are at most ℓ + σ \ell+ \sigma ℓ + σ stars with more than 3 vertices (non-P 3 P_3 P 3 s). Therefore, the total number of vertices contained in non-P 3 P_3 P 3 stars in S \mathcal{S} S is in O ( ( ℓ + σ ) 2 ) O((\ell+ \sigma)^2) O (( ℓ + σ ) 2 ) and we can guess the cluster graph on these vertices (the number of possible partitions of these vertices is clearly upper-bounded by some function of ℓ + σ \ell+ \sigma ℓ + σ ), remove the non-P 3 P_3 P 3 stars from S \mathcal{S} S , and compute the remaining budget k ′ ≤ k k' \le k k ′ ≤ k and ℓ ′ ≤ ℓ \ell' \le\ell ℓ ′ ≤ ℓ of edge modifications. In the remaining packed instance ( G ′ , k ′ , ℓ ′ , S ′ ) (G',k',\ell',\mathcal{S}') ( G ′ , k ′ , ℓ ′ , S ′ ) the packing S ′ \mathcal{S}' S ′ contains only P 3 P_3 P 3 s and we have an above-P 3 P_3 P 3 parameter μ : = k ′ − ∣ S ′ ∣ ≤ k − ∑ S ∈ S ∖ S ′ lb ( S ) − ∣ S ′ ∣ = σ \mu:= k' - |\mathcal{S}'| \le k - \sum_{S \in\mathcal{S}\setminus\mathcal{S}'} \operatorname{lb}(S) - |\mathcal{S}'| = \sigma μ := k ′ − ∣ S ′ ∣ ≤ k − ∑ S ∈ S ∖ S ′ lb ( S ) − ∣ S ′ ∣ = σ . We can therefore solve this instance in FPT-time wrt. ℓ + σ \ell+ \sigma ℓ + σ using the algorithm from Theorem 7 for the parameter ℓ + μ \ell+ \mu ℓ + μ .
Kernelization wrt. Deletions Combined with Above-guarantees
Cluster Editing with Few Deletions and Above Packing of P 3 P_3 P 3 s
Theorem 16. C E w F D CEwFD C E w F D has a kernel with O ( ( ℓ + μ ) 2 ) O((\ell+ \mu)^2) O (( ℓ + μ ) 2 ) vertices and O ( ( ℓ + μ ) 3 ) O((\ell+ \mu)^3) O (( ℓ + μ ) 3 ) edges.
Let P \mathcal{P} P be the packing associated with μ \mu μ , graph G G G be the input graph, and recall that G P G^{\mathcal{P}} G P is obtained from G G G by adding all missing edges for P 3 P_3 P 3 s in P \mathcal{P} P . To prove the theorem, we start with the following crucial lemma which connects solutions for G G G to solutions of G P G^{\mathcal{P}} G P .
Lemma 17. Let ( G , k , ℓ , P ) (G,k,\ell,\mathcal{P}) ( G , k , ℓ , P ) be a packed instance. For every solution F F F for ( G , k , ℓ ) (G,k,\ell) ( G , k , ℓ ) , we have ∣ E ( G P ) △ ( E ( G ) △ F ) ∣ = ∣ F △ miss ( P ) ∣ ≤ 2 ℓ + μ |E(G^{\mathcal{P}}) \mathbin{\triangle} (E(G) \mathbin{\triangle} F)| = |F \mathbin{\triangle} \operatorname{miss}(\mathcal{P})| \le2\ell+ \mu ∣ E ( G P ) △ ( E ( G ) △ F ) ∣ = ∣ F △ miss ( P ) ∣ ≤ 2 ℓ + μ . That is, there is an edge-modification set F ′ ⊆ ( V 2 ) F' \subseteq\binom{V}{2} F ′ ⊆ ( 2 V ) of size at most 2 ℓ + μ 2\ell+ \mu 2 ℓ + μ such that G P △ F ′ G^{\mathcal{P}} \mathbin{\triangle} F' G P △ F ′ is a cluster graph.
Figure 4. Top: the kernelization of Theorem 16 on a small example. (a) A graph G G G with a modification-disjoint packing of two induced P 3 P_3 P 3 ’s sharing the vertex in the middle. (b) The graph G P G^{\mathcal{P}} G P adds their missing pairs (dashed); the isolated clique on the right is removed by Reduction Rule 18. (c) The cluster graph G ′ ′ G^{\prime\prime} G ′′ obtained from an approximate solution A A A that removes the two crossed-out pairs; every cluster of G ′ ′ G^{\prime\prime} G ′′ contains an endpoint of A A A (filled), which bounds the number of clusters. Bottom: why Reduction Rule 20 may commit a clique C C C of G ′ ′ G^{\prime\prime} G ′′ with at least ( α + 1 ) ( 2 ℓ + μ ) + 2 (\alpha+1)(2\ell+\mu)+2 ( α + 1 ) ( 2 ℓ + μ ) + 2 vertices. If a solution’s cluster D D D splits C C C (d), or contains C C C and a further vertex x x x (e), then the solution differs from G ′ ′ G^{\prime\prime} G ′′ in at least ∣ C ∣ − 1 |C|-1 ∣ C ∣ − 1 vertex pairs (red), more than the ( α + 1 ) ( 2 ℓ + μ ) (\alpha+1)(2\ell+\mu) ( α + 1 ) ( 2 ℓ + μ ) allowed by Equation (3) .
Proof. Let F F F be a solution for ( G , k , ℓ ) (G,k,\ell) ( G , k , ℓ ) , that is, G △ F G\triangle F G △ F is a cluster graph, ∣ F ∣ ≤ k |F|\leq k ∣ F ∣ ≤ k , and ∣ F ∩ E ( G ) ∣ ≤ ℓ |F\cap E(G)|\leq\ell ∣ F ∩ E ( G ) ∣ ≤ ℓ . Let F + : = F ∖ E ( G ) F^{+}:=F\setminus E(G) F + := F ∖ E ( G ) be the added edges and F − : = F ∩ E ( G ) F^{-}:=F\cap E(G) F − := F ∩ E ( G ) be the deleted edges of F F F . We let F ′ : = F △ miss ( P ) F^{\prime}:=F\triangle\operatorname{miss}(\mathcal{P}) F ′ := F △ miss ( P ) . For every deleted edge e ∈ F − e\in F^{-} e ∈ F − , also F ′ F^{\prime} F ′ simply deletes $e and if e e e is in a P 3 P_3 P 3 of P \mathcal{P} P , then F ′ F^{\prime} F ′ also deletes from G P G^{\mathcal{P}} G P the corresponding edge in miss ( P ) \operatorname{miss}(\mathcal{P}) miss ( P ) of the P 3 P_3 P 3 . So, as ∣ F − ∣ ≤ ℓ |F^{-}|\leq\ell ∣ F − ∣ ≤ ℓ , F ′ F^{\prime} F ′ deletes at most $2\ell$ edges from G P G^{\mathcal{P}} G P . Moreover, F ′ F^{\prime} F ′ adds all edges e ∈ ( F + ∖ miss ( P ) ) e\in(F^{+}\setminus\operatorname{miss}(\mathcal{P})) e ∈ ( F + ∖ miss ( P )) .
As for every P 3 P_3 P 3 Q Q Q of P \mathcal{P} P , we have mod ( Q ) ∩ F − ≠ ∅ \operatorname{mod}(Q)\cap F^{-}\ne\varnothing mod ( Q ) ∩ F − = ∅ or miss ( Q ) ∈ F + \operatorname{miss}(Q)\in F^{+} miss ( Q ) ∈ F + , we have ∣ P ∣ ≤ ∣ F − ∣ + ∣ F + ∩ miss ( P ) ∣ |\mathcal{P}|\leq|F^{-}|+|F^{+}\cap\operatorname{miss}(\mathcal{P})| ∣ P ∣ ≤ ∣ F − ∣ + ∣ F + ∩ miss ( P ) ∣ . Therefore, ∣ F + ∖ miss ( P ) ∣ ≤ ∣ F ∣ − ∣ P ∣ ≤ k − ∣ P ∣ = μ |F^{+}\setminus\operatorname{miss}(\mathcal{P})|\leq|F|-|\mathcal{P}|\leq k-|\mathcal{P}|=\mu ∣ F + ∖ miss ( P ) ∣ ≤ ∣ F ∣ − ∣ P ∣ ≤ k − ∣ P ∣ = μ . ◀
If k < ∣ P ∣ k<|\mathcal{P}| k < ∣ P ∣ or ℓ < 0 \ell<0 ℓ < 0 , then we return no (or a trivial no-instance). The kernelization proceeds by computing the graph G P G^{\mathcal{P}} G P and then first applying the following reduction rule, which simply removes isolated cliques.
Reduction Rule 18. If ( G , k , ℓ , P ) (G,k,\ell,\mathcal{P}) ( G , k , ℓ , P ) is a packed instance and C C C is an isolated clique in G P G^{\mathcal{P}} G P , then remove C C C from G G G , decrease k k k by ∣ ( C 2 ) ∖ E ( G ) ∣ \left|\binom{C}{2}\setminus E(G)\right| ( 2 C ) ∖ E ( G ) and remove from P \mathcal{P} P every P 3 P_3 P 3 that contains a vertex of C C C .
Lemma 19 (⋆). Reduction Rule 18 is safe, that is, the resulting instance is a yes-instance if and only if the original instance is. Furthermore, it does not increase the parameter μ + ℓ \mu+\ell μ + ℓ .
Now we use the algorithm of Cao et al. [11 ] on G P G^{\mathcal{P}} G P to obtain a 1.437-approximate cluster editing solution A A A in polynomial time. Let α : = 1.437 \alpha:=1.437 α := 1.437 be the approximation factor. By Lemma 17, we know that if ( G , k , ℓ ) (G,k,\ell) ( G , k , ℓ ) is a yes-instance, then there is a cluster editing solution for G P G^{\mathcal{P}} G P of size at most 2 ℓ + μ 2\ell+\mu 2 ℓ + μ . Therefore, if A A A is of size more than α ( 2 ℓ + μ ) \alpha(2\ell+\mu) α ( 2 ℓ + μ ) , we can immediately answer no (or return a trivial no-instance). Otherwise, let G ′ ′ : = G P △ A G^{\prime\prime}:=G^{\mathcal{P}}\triangle A G ′′ := G P △ A . Note that G ′ ′ G^{\prime\prime} G ′′ is a cluster graph. The following rule essentially states that large cliques in G ′ ′ G^{\prime\prime} G ′′ are contained in every optimal solution and can thus be committed.
Reduction Rule 20. Let A A A be a cluster-editing set for G P G^{\mathcal{P}} G P of size at most α ( 2 ℓ + μ ) \alpha(2\ell+\mu) α ( 2 ℓ + μ ) and let G ′ ′ : = G P △ A G^{\prime\prime}:=G^{\mathcal{P}}\triangle A G ′′ := G P △ A . Suppose that C C C is a clique in G ′ ′ G^{\prime\prime} G ′′ of size at least ( α + 1 ) ( 2 ℓ + μ ) + 2 (\alpha+1)(2\ell+\mu)+2 ( α + 1 ) ( 2 ℓ + μ ) + 2 and let F C : = ( E ( G ′ ′ ) △ E ( G ) ) ∖ ( V ( G ) ∖ C 2 ) F_C := (E(G^{\prime\prime})\triangle E(G))\setminus\binom{V(G)\setminus C}{2} F C := ( E ( G ′′ ) △ E ( G )) ∖ ( 2 V ( G ) ∖ C ) . If ∣ F C ∣ > k |F_C|>k ∣ F C ∣ > k or ∣ F C ∩ E ( G ) ∣ > ℓ |F_C\cap E(G)|>\ell ∣ F C ∩ E ( G ) ∣ > ℓ , then answer no (or return a trivial no-instance). Otherwise, let G ′ : = G ∖ C G^\prime:=G\setminus C G ′ := G ∖ C , k ′ : = k − ∣ F C ∣ k^\prime:=k-|F_C| k ′ := k − ∣ F C ∣ , ℓ ′ : = ℓ − ∣ F C ∩ E ( G ) ∣ \ell^\prime:=\ell-|F_C\cap E(G)| ℓ ′ := ℓ − ∣ F C ∩ E ( G ) ∣ , and P ′ : = P ∖ { Q ∣ F C ∩ mod ( Q ) ≠ ∅ } \mathcal{P}^\prime:=\mathcal{P}\setminus\{Q\mid F_C\cap\operatorname{mod}(Q)\ne\varnothing\} P ′ := P ∖ { Q ∣ F C ∩ mod ( Q ) = ∅ } and return instance ( G ′ , k ′ , ℓ ′ , P ′ ) (G^\prime,k^\prime,\ell^\prime,\mathcal{P}^\prime) ( G ′ , k ′ , ℓ ′ , P ′ ) .
Lemma 21. Reduction Rule 20 is safe. Furthermore, it does not increase μ + ℓ \mu+\ell μ + ℓ .
Proof. We first show that each solution for ( G , k , ℓ ) (G,k,\ell) ( G , k , ℓ ) contains F C F_C F C . Suppose that there is a solution F ^ \widehat{F} F for ( G , k , ℓ ) (G,k,\ell) ( G , k , ℓ ) that does not contain some edge of F C F_C F C . By Lemma 17, ∣ F ^ △ miss ( P ) ∣ ≤ 2 ℓ + μ |\widehat{F}\triangle\operatorname{miss}(\mathcal{P})|\le2\ell+\mu ∣ F △ miss ( P ) ∣ ≤ 2 ℓ + μ . Therefore, the two cluster graphs G △ F ^ G\triangle\widehat{F} G △ F and G ′ ′ G^{\prime\prime} G ′′ differ in at most ( α + 1 ) ( 2 ℓ + μ ) (\alpha+1)(2\ell+\mu) ( α + 1 ) ( 2 ℓ + μ ) edges, since
∣ ( F ^ △ E ( G ) ) △ ( A △ E ( G P ) ) ∣ ≤ ∣ F ^ △ miss ( P ) ∣ + ∣ A ∣ ≤ ( 2 ℓ + μ ) + α ( 2 ℓ + μ ) = ( α + 1 ) ( 2 ℓ + μ ) . (3) |(\widehat{F}\triangle E(G))\triangle(A\triangle E(G^{\mathcal{P}}))|\le|\widehat{F}\triangle\operatorname{miss}(\mathcal{P})|+|A|\le(2\ell+\mu)+\alpha(2\ell+\mu)=(\alpha+1)(2\ell+\mu). \tag*{(3)} ∣ ( F △ E ( G )) △ ( A △ E ( G P )) ∣ ≤ ∣ F △ miss ( P ) ∣ + ∣ A ∣ ≤ ( 2 ℓ + μ ) + α ( 2 ℓ + μ ) = ( α + 1 ) ( 2 ℓ + μ ) . (3)
As F C F_C F C contains a vertex pair which is not in F ^ \widehat{F} F and all modifications in F C F_C F C are incident to C C C , this means that in G △ F ^ G\triangle\widehat{F} G △ F , either C C C is a part of a larger cluster or it is split into several connected components. Suppose the latter, that is, there is a cluster D D D of G △ F ^ G\triangle\widehat{F} G △ F such that C ∩ D ≠ ∅ C\cap D\ne\varnothing C ∩ D = ∅ and C ⊈ D C\nsubseteq D C ⊈ D . Then, G ′ ′ G^{\prime\prime} G ′′ and G △ F ^ G\triangle\widehat{F} G △ F differ at least in all edges between C ∩ D C\cap D C ∩ D and C ∖ D C\setminus D C ∖ D . This is at least ∣ C ∩ D ∣ ( ∣ C ∣ − ∣ C ∩ D ∣ ) |C\cap D|(|C|-|C\cap D|) ∣ C ∩ D ∣ ( ∣ C ∣ − ∣ C ∩ D ∣ ) edges for some ∣ C ∩ D ∣ ∈ { 1 , … , ∣ C ∣ − 1 } |C\cap D|\in\{1,\ldots,|C|-1\} ∣ C ∩ D ∣ ∈ { 1 , … , ∣ C ∣ − 1 } . As this is a concave function in ∣ C ∩ D ∣ |C\cap D| ∣ C ∩ D ∣ , its minimum on the range is achieved either by ∣ C ∩ D ∣ = 1 |C\cap D|=1 ∣ C ∩ D ∣ = 1 or ∣ C ∩ D ∣ = ∣ C ∣ − 1 |C\cap D|=|C|-1 ∣ C ∩ D ∣ = ∣ C ∣ − 1 . Therefore, the minimum is ∣ C ∣ − 1 = ( α + 1 ) ( 2 ℓ + μ ) + 1 |C|-1=(\alpha+1)(2\ell+\mu)+1 ∣ C ∣ − 1 = ( α + 1 ) ( 2 ℓ + μ ) + 1 , i.e., the cluster graphs differ by at least ( α + 1 ) ( 2 ℓ + μ ) + 1 (\alpha+1)(2\ell+\mu)+1 ( α + 1 ) ( 2 ℓ + μ ) + 1 edges, contradicting (3) . Hence, there is a cluster D D D of G △ F ^ G\triangle\widehat{F} G △ F such that C ⊆ D C\subseteq D C ⊆ D . If it contains also a vertex x ∈ ( D ∖ C ) x\in(D\setminus C) x ∈ ( D ∖ C ) , then G ′ ′ G^{\prime\prime} G ′′ and G △ F ^ G\triangle\widehat{F} G △ F would differ in at least the edges between x x x and C C C , which is at least ∣ C ∣ ≥ ( α + 1 ) ( 2 ℓ + μ ) + 2 |C|\ge(\alpha+1)(2\ell+\mu)+2 ∣ C ∣ ≥ ( α + 1 ) ( 2 ℓ + μ ) + 2 edges, again contradicting (3) . Therefore, every solution for ( G , k , ℓ ) (G,k,\ell) ( G , k , ℓ ) contains F C F_C F C . Thus, if the rule returned “no”, this is correct.
Now, assume that F ′ F^\prime F ′ is a solution for the instance ( G ′ , k ′ , ℓ ′ ) (G^\prime,k^\prime,\ell^\prime) ( G ′ , k ′ , ℓ ′ ) . We claim that F = F ′ ∪ F C F=F^\prime\cup F_C F = F ′ ∪ F C is a solution for the original instance. Indeed, G ′ △ F ′ G^\prime\triangle F^\prime G ′ △ F ′ is a cluster graph, C C C is an isolated clique in G △ F C G\triangle F_C G △ F C and therefore G ′ ′ △ F = ( G ′ ′ △ F C ) △ F ′ G^{\prime\prime}\triangle F=(G^{\prime\prime}\triangle F_C)\triangle F^\prime G ′′ △ F = ( G ′′ △ F C ) △ F ′ is a cluster graph, as F C ∩ F ′ = ∅ F_C\cap F^\prime=\varnothing F C ∩ F ′ = ∅ . Since ∣ F ′ ∣ ≤ k ′ |F^\prime|\le k^\prime ∣ F ′ ∣ ≤ k ′ , we have ∣ F ∣ = ∣ F ′ ∣ + ∣ F C ∣ ≤ k ′ + ∣ F C ∣ = k |F|=|F^\prime|+|F_C|\le k^\prime+|F_C|=k ∣ F ∣ = ∣ F ′ ∣ + ∣ F C ∣ ≤ k ′ + ∣ F C ∣ = k and as ∣ F ′ ∩ E ( G ) ∣ ≤ ℓ ′ |F^\prime\cap E(G)|\le\ell^\prime ∣ F ′ ∩ E ( G ) ∣ ≤ ℓ ′ , we have ∣ F ∩ E ( G ) ∣ ≤ ℓ ′ + ∣ F C ∩ E ( G ) ∣ = ℓ |F\cap E(G)|\le\ell^\prime+|F_C\cap E(G)|=\ell ∣ F ∩ E ( G ) ∣ ≤ ℓ ′ + ∣ F C ∩ E ( G ) ∣ = ℓ .
Conversely, let F F F be a solution for ( G , k , ℓ ) (G,k,\ell) ( G , k , ℓ ) . We claim that F ′ : = F ∖ F C F^\prime:=F\setminus F_C F ′ := F ∖ F C is a solution for the instance ( G ′ , k ′ , ℓ ′ ) (G^\prime,k^\prime,\ell^\prime) ( G ′ , k ′ , ℓ ′ ) . As F C ⊆ F F_C\subseteq F F C ⊆ F , we have that ∣ F ′ ∣ = ∣ F ∣ − ∣ F C ∣ ≤ k − ∣ F C ∣ = k ′ |F^\prime|=|F|-|F_C|\le k-|F_C|=k^\prime ∣ F ′ ∣ = ∣ F ∣ − ∣ F C ∣ ≤ k − ∣ F C ∣ = k ′ and ∣ F ′ ∩ E ( G ) ∣ = ∣ F ∩ E ( G ) ∣ − ∣ F C ∩ E ( G ) ∣ ≤ ℓ − ∣ F C ∩ E ( G ) ∣ = ℓ ′ |F^\prime\cap E(G)|=|F\cap E(G)|-|F_C\cap E(G)|\le\ell-|F_C\cap E(G)|=\ell^\prime ∣ F ′ ∩ E ( G ) ∣ = ∣ F ∩ E ( G ) ∣ − ∣ F C ∩ E ( G ) ∣ ≤ ℓ − ∣ F C ∩ E ( G ) ∣ = ℓ ′ . Furthermore, as F F F and F ′ F^\prime F ′ only differ in edges incident to C C C , it follows that G ′ △ F ′ = ( G △ F ) ∖ C G^\prime\triangle F^\prime=(G\triangle F)\setminus C G ′ △ F ′ = ( G △ F ) ∖ C is a cluster graph. Therefore, ( G ′ , k ′ , ℓ ′ ) (G^\prime,k^\prime,\ell^\prime) ( G ′ , k ′ , ℓ ′ ) is indeed a yes-instance.
Since the set P C : = { Q ∣ F C ∩ mod ( Q ) ≠ ∅ } \mathcal{P}_C:=\{Q\mid F_C\cap\operatorname{mod}(Q)\ne\varnothing\} P C := { Q ∣ F C ∩ mod ( Q ) = ∅ } is not larger than F C F_C F C , we have μ ′ : = k ′ − ∣ P ′ ∣ = k − ∣ F C ∣ − ( ∣ P ∣ − ∣ P C ∣ ) ≤ k − ∣ P ∣ = μ \mu^\prime:=k^\prime-|\mathcal{P}^\prime|=k-|F_C|-(|\mathcal{P}|-|\mathcal{P}_C|)\le k-|P|=\mu μ ′ := k ′ − ∣ P ′ ∣ = k − ∣ F C ∣ − ( ∣ P ∣ − ∣ P C ∣ ) ≤ k − ∣ P ∣ = μ . The bound on the parameter follows, as also ℓ ′ ≤ ℓ \ell^\prime\le\ell ℓ ′ ≤ ℓ .
Proof of Theorem 16. The kernelization answers “no” if k < ∣ P ∣ k<|\mathcal{P}| k < ∣ P ∣ or ℓ < 0 \ell<0 ℓ < 0 . Otherwise, it applies Reduction Rule 18 as long as possible, computes an α \alpha α -approximate solution A A A for G P G^{\mathcal{P}} G P , answers “no” if ∣ A ∣ > α ( 2 ℓ + μ ) |A|>\alpha(2\ell+\mu) ∣ A ∣ > α ( 2 ℓ + μ ) , and otherwise applies Reduction Rule 20 if possible and starts over. The answers are correct by Lemma 17, the rules are safe and do not increase μ + ℓ \mu+\ell μ + ℓ by Lemmas 19 and 21, and each application of a rule removes vertices, so the kernelization runs in polynomial time.
It remains to show the size of the kernel. It is enough to bound the size of an instance to which no rule applies and for which ∣ A ∣ ≤ α ( 2 ℓ + μ ) |A|\le\alpha(2\ell+\mu) ∣ A ∣ ≤ α ( 2 ℓ + μ ) , as the recursive calls do not increase the parameter by Lemma 19 and Lemma 21. Let X X X be the set of vertices incident to A A A . Clearly, ∣ X ∣ ≤ 2 ∣ A ∣ ≤ 2 α ( 2 ℓ + μ ) |X|\le2|A|\le2\alpha(2\ell+\mu) ∣ X ∣ ≤ 2∣ A ∣ ≤ 2 α ( 2 ℓ + μ ) . Let again G ′ ′ : = G P △ A G^{\prime\prime}:=G^{\mathcal{P}}\triangle A G ′′ := G P △ A be the cluster graph. If a clique in G ′ ′ G^{\prime\prime} G ′′ does not contain any vertex of X X X , then it is also a clique in G P G^{\mathcal{P}} G P and Reduction Rule 18 would apply. Therefore, each clique of G ′ ′ G'' G ′′ contains a vertex of X X X , that is, there are at most 2 α ( 2 ℓ + μ ) 2\alpha(2\ell+\mu) 2 α ( 2 ℓ + μ ) cliques. Furthermore, each clique is of size at most ( α + 1 ) ( 2 ℓ + μ ) + 1 (\alpha+1)(2\ell+\mu)+1 ( α + 1 ) ( 2 ℓ + μ ) + 1 , as otherwise Reduction Rule 20 would apply. Therefore, G ′ ′ G'' G ′′ contains O ( ( ℓ + μ ) 2 ) O((\ell+\mu)^2) O (( ℓ + μ ) 2 ) vertices and O ( ( ℓ + μ ) 3 ) O((\ell+\mu)^3) O (( ℓ + μ ) 3 ) edges. As G P G^P G P and G ′ ′ G'' G ′′ only differ in edges of A A A and ∣ A ∣ ∈ O ( ℓ + μ ) |A| \in O(\ell+\mu) ∣ A ∣ ∈ O ( ℓ + μ ) , also G P G^P G P has O ( ( ℓ + μ ) 3 ) O((\ell+\mu)^3) O (( ℓ + μ ) 3 ) edges. Finally, G G G has the same vertices as G ′ ′ G'' G ′′ and at most as many edges as G P G^P G P , therefore it has O ( ( ℓ + μ ) 2 ) O((\ell+\mu)^2) O (( ℓ + μ ) 2 ) vertices and O ( ( ℓ + μ ) 3 ) O((\ell+\mu)^3) O (( ℓ + μ ) 3 ) edges. ◀
Cluster Editing with Few Deletions and Above Packing of Stars
Theorem 22 (⋆). C E w F D CEwFD C E w F D has a kernel with O ( ( ℓ + σ ) 2 ( ℓ 2 + σ ) 2 ) O((\ell+\sigma)^2(\ell^2+\sigma)^2) O (( ℓ + σ ) 2 ( ℓ 2 + σ ) 2 ) vertices and O ( ( ℓ + σ ) 3 ( ℓ 2 + σ ) 3 ) O((\ell+\sigma)^3(\ell^2+\sigma)^3) O (( ℓ + σ ) 3 ( ℓ 2 + σ ) 3 ) edges.
The kernel follows the one of Theorem 16, with P \mathcal{P} P being the set of P 3 P_3 P 3 ’s in a star packing S \mathcal{S} S . By Observations 14 and 15, there are at most ℓ + σ \ell+\sigma ℓ + σ larger stars in S \mathcal{S} S , each with at most ℓ + 2 σ + 3 \ell+2\sqrt{\sigma}+3 ℓ + 2 σ + 3 vertices, so they span only few vertex pairs. Together with the argument of Lemma 17 for the P 3 P_3 P 3 ’s, this shows that every solution differs from G P G^P G P in at most ( ℓ + σ ) ( ℓ + 2 σ + 4 ) 2 (\ell+\sigma)(\ell+2\sqrt{\sigma}+4)^2 ( ℓ + σ ) ( ℓ + 2 σ + 4 ) 2 vertex pairs, and the two reduction rules and the size bound carry over with this bound in place of 2 ℓ + μ 2\ell+\mu 2 ℓ + μ .
Discussion
We answered the question of Komusiewicz and Niedermeier [43 ] in the negative: Cluster Editing with Few Deletions is W[1 ] -hard with respect to the number ℓ \ell ℓ of deletions, even combined with the pathwidth and the feedback edge number. In contrast, combining ℓ \ell ℓ with the excess μ \mu μ above a modification-disjoint P 3 P_3 P 3 -packing yields an O ( 4 μ + ℓ ⋅ ( n + m + μ ) ) O(4^{\mu+\ell}\cdot(n+m+\mu)) O ( 4 μ + ℓ ⋅ ( n + m + μ )) -time algorithm and a polynomial problem kernel, although each of the two parameters alone is intractable. The FPT-algorithm and the polynomial kernelization also extend to lower bounds by modification-disjoint star packings. Moreover, most of our results also transfer to H H H -free editing for H = K η − e H=K_\eta-e H = K η − e .
Several questions remain open: (1) Does H H H -Free Editing with Few Deletions admit a polynomial kernel for μ + ℓ \mu+\ell μ + ℓ ? (2) Can ℓ \ell ℓ be replaced by smaller parameters, and how far below ℓ \ell ℓ can we go while keeping fixed-parameter tractability together with μ \mu μ ? (3) Which other above-guarantee parameters yield tractability together with ℓ \ell ℓ ? Potential candidates are half-integral P 3 P_3 P 3 -packings, i.e., where we consider a packing P \mathcal{P} P of induced P 3 P_3 P 3 s such that each vertex pair is in up to two P 3 P_3 P 3 and we parameterize by k − 2 ∣ P ∣ k-2|\mathcal{P}| k − 2∣ P ∣ , or parameterizing above the LP relaxation of the corresponding P 3 P_3 P 3 -packing ILP. (4) One might also study Cluster Editing with a bounded number q q q of additions. Clearly, one obtains NP-hardness for q = 0 q=0 q = 0 due to the NP-hardness of Cluster Deletion. It is, however, open whether q + μ q+\mu q + μ is FPT. (5) Which reduction rules for Cluster Editing transfer to Cluster Editing with Few Deletions? Candidates are generic rules that apply to every solution.
Declaration on the use of AI. Discussions with AI were utilized while obtaining the hardness results. ChatGPT suggested a convoluted W[1 ] -hardness proof for Cluster Editing with Few Deletions parameterized by the number ℓ \ell ℓ of deletions; the authors subsequently constructed the present more elegant and comprehensible version, for which an initial writeup was provided by Claude Opus 5.5. Discussions with tbl:5 and 5.1 were utilized to generalize it to H H H -Free Editing with Few Deletions (Theorem 5). Claude Opus 5.5 was also used when editing the paper and to write the code for the experiments. All AI-generated artifacts were checked, corrected, and rewritten by the authors, who take full responsibility for the content of this paper.
Missing Details for the Hardness Results
Choice Gadgets and the Choice Graph
In this section, we prove Lemma 1. We first describe in more detail how the choice graph works. Since m 0 < z 0 m_0 < z_0 m 0 < z 0 , each element of A j i A_j^i A j i can be written as θ z 0 + γ \theta z_0 + \gamma θ z 0 + γ with 1 ≤ γ < z 0 1 \le\gamma< z_0 1 ≤ γ < z 0 in exactly one way: the factor θ \theta θ identifies the color-i i i vertex u θ i u_\theta^i u θ i , and the remainder γ \gamma γ is the identifier of an edge with endpoints u θ i u_\theta^i u θ i and a vertex of U j U_j U j . A single number in A j i A_j^i A j i thus encodes a color-i i i vertex together with an incident edge into U j U_j U j , whereas the numbers in A 0 i A_0^i A 0 i carry only a vertex index and those in [ m 0 ] [m_0] [ m 0 ] only an edge identifier.
Reading the demand d = n 0 z 0 + m 0 d = n_0z_0 + m_0 d = n 0 z 0 + m 0 in base z 0 z_0 z 0 explains the three kinds of choice gadgets. Its z 0 z_0 z 0 -digit n 0 n_0 n 0 is a budget for a vertex index and its unit digit m 0 m_0 m 0 is a budget for an edge identifier. Choosing an option of the local gadget for ( i , j ) (i,j) ( i , j ) contributes some θ z 0 + γ \theta z_0 + \gamma θ z 0 + γ to N i j N_i^j N i j and the complementary ( n 0 − θ ) z 0 + ( m 0 − γ ) (n_0-\theta)z_0 + (m_0-\gamma) ( n 0 − θ ) z 0 + ( m 0 − γ ) to P i j P_i^j P i j ; it therefore encodes both a color-i i i vertex u θ i u_\theta^i u θ i and an edge from u θ i u_\theta^i u θ i into U j U_j U j . Choosing an option of the successor gadget for ( i , j ) (i,j) ( i , j ) contributes some w z 0 wz_0 w z 0 to P i j P_i^j P i j and ( n 0 − w ) z 0 (n_0-w)z_0 ( n 0 − w ) z 0 to N i succi ( j ) N_i^{\operatorname{succi}(j)} N i succi ( j ) , so it encodes a vertex index and nothing else; choosing an option of the mirror gadget for ( i , j ) (i,j) ( i , j ) contributes some g g g to P i j P_i^j P i j and m 0 − g m_0-g m 0 − g to N j i N_j^i N j i , so it encodes an edge identifier and nothing else. Since z 0 > m 0 z_0 > m_0 z 0 > m 0 , an identifier never reaches the z 0 z_0 z 0 -digit; this is what lets us read both a vertex index and an edge identifier off a single equation.
How the choice gadgets are wired then turns these local decisions into the two consistency requirements of a multicolored clique. The local and successor gadgets of color i i i alternate along the cycle through all 2 ( p − 1 ) 2(p-1) 2 ( p − 1 ) anchor roots of color i i i , and a successor gadget passes on a vertex index only; hence all p − 1 p-1 p − 1 local gadgets for color i i i must choose one and the same vertex of U i U_i U i . A mirror gadget links the ordered pairs ( i , j ) (i,j) ( i , j ) and ( j , i ) (j,i) ( j , i ) and passes on an edge identifier only; hence these two pairs must choose the same edge identifier and therefore the same edge. That edge then joins the vertex chosen for color i i i to the vertex chosen for color j j j , so the p p p chosen vertices are pairwise adjacent. We now make this formal.
Lemma 1 (⋆). For every choice gadget construction, the choice graph returned from Construction 1 has a balanced selection if and only if the given instance of Multicolored Clique is a yes-instance.
Proof. Suppose first that a balanced selection is given. We introduce the following quantities for every ordered pair ( i , j ) (i,j) ( i , j ) with i ≠ j i \ne j i = j . The local gadget from N i j N_i^j N i j to P i j P_i^j P i j contributes an element of A j i A_j^i A j i to N i j N_i^j N i j ; write this element as θ i j z 0 + γ i j \theta_{ij}z_0+\gamma_{ij} θ ij z 0 + γ ij with 1 ≤ γ i j < z 0 1 \le\gamma_{ij} < z_0 1 ≤ γ ij < z 0 , which is possible in exactly one way, so that γ i j \gamma_{ij} γ ij is the identifier of an edge with endpoints u θ i j i u_{\theta_{ij}}^i u θ ij i and a vertex of U j U_j U j . Let the successor gadget leaving P i j P_i^j P i j contribute w i j z 0 w_{ij}z_0 w ij z 0 to P i j P_i^j P i j , and let the mirror gadget for ( j , i ) (j,i) ( j , i ) , P i j P_i^j P i j to N i j N_i^j N i j , contribute g i j g_{ij} g ij to P i j P_i^j P i j ; here w i j ∈ [ n 0 ] w_{ij} \in[n_0] w ij ∈ [ n 0 ] and g i j ∈ [ m 0 ] g_{ij} \in[m_0] g ij ∈ [ m 0 ] , because the contributions lie in A 0 i A_0^i A 0 i and in [ m 0 ] [m_0] [ m 0 ] , respectively. As the contributions of a choice gadget to its two endpoints sum to its parameter b Q b_Q b Q , each of these numbers also fixes the contribution to the other endpoint of its choice gadget.
The anchor root N i j N_i^j N i j is an endpoint of the local gadget for ( i , j ) (i,j) ( i , j ) , of the successor gadget for ( i , succ i − 1 ( j ) ) (i,\operatorname{succ}_i^{-1}(j)) ( i , succ i − 1 ( j )) , and of the mirror gadget for ( j , i ) , (j,i), ( j , i ) , and the anchor root P i j P_i^j P i j is an endpoint of the three choice gadgets of ( i , j ) (i,j) ( i , j ) . As the selection is balanced, the three contributions at each of these two anchor roots sum to the demand d = n 0 z 0 + m 0 d = n_0z_0 + m_0 d = n 0 z 0 + m 0 . Listing the three summands in the order local, successor, mirror, these two demand equations read
θ i j z 0 + γ i j + ( n 0 − w i , succ i − 1 ( j ) ) z 0 + ( m 0 − g j i ) = n 0 z 0 + m 0 (demand at N i j ) , (4) \theta_{ij}z_0+\gamma_{ij}+(n_0-w_{i,\operatorname{succ}_i^{-1}(j)})z_0+(m_0-g_{ji})=n_0z_0+m_0 \qquad\text{(demand at }N_i^j\text{)}, \tag*{(4)} θ ij z 0 + γ ij + ( n 0 − w i , succ i − 1 ( j ) ) z 0 + ( m 0 − g j i ) = n 0 z 0 + m 0 (demand at N i j ) , (4)
( n 0 z 0 + m 0 − θ i j z 0 − γ i j ) + w i j z 0 + g i j = n 0 z 0 + m 0 (demand at P i j ) . (5) (n_0z_0+m_0-\theta_{ij}z_0-\gamma_{ij})+w_{ij}z_0+g_{ij}=n_0z_0+m_0 \qquad\text{(demand at }P_i^j\text{)}. \tag*{(5)} ( n 0 z 0 + m 0 − θ ij z 0 − γ ij ) + w ij z 0 + g ij = n 0 z 0 + m 0 (demand at P i j ) . (5)
Rearranged, (4) reads ( θ i j − w i , succ i − 1 ( j ) ) z 0 = g j i − γ i j (\theta_{ij}-w_{i,\operatorname{succ}_{i}^{-1}(j)})z_0=g_{ji}-\gamma_{ij} ( θ ij − w i , succ i − 1 ( j ) ) z 0 = g j i − γ ij and (5) reads ( w i j − θ i j ) z 0 = γ i j − g i j (w_{ij}-\theta_{ij})z_0=\gamma_{ij}-g_{ij} ( w ij − θ ij ) z 0 = γ ij − g ij . Each right-hand side is a difference of two numbers in [ m 0 ] [m_0] [ m 0 ] and thus has absolute value at most m 0 − 1 < z 0 m_0-1<z_0 m 0 − 1 < z 0 , whereas each left-hand side is a multiple of z 0 z_0 z 0 . Both sides therefore vanish, which gives
θ i j = w i j = w i , succ i − 1 ( j ) and γ i j = g i j = g j i . (6) \theta_{ij}=w_{ij}=w_{i,\operatorname{succ}_{i}^{-1}(j)} \qquad\text{and}\qquad\gamma_{ij}=g_{ij}=g_{ji}. \tag*{(6)} θ ij = w ij = w i , succ i − 1 ( j ) and γ ij = g ij = g j i . (6)
For fixed i i i , the first equalities give θ i , succ i ( j ) = w i j = θ i j \theta_{i,\operatorname{succ}_{i}(j)}=w_{ij}=\theta_{ij} θ i , succ i ( j ) = w ij = θ ij for every j ≠ i j\ne i j = i ; since succ i \operatorname{succ}_{i} succ i is a cyclic permutation of [ p ] ∖ { i } [p]\setminus\{i\} [ p ] ∖ { i } , all θ i j \theta_{ij} θ ij with j ≠ i j\ne i j = i have the same value, which we denote by θ i \theta_i θ i . Consequently, all local gadgets for color i i i choose the same vertex u θ i i u_{\theta_i}^{i} u θ i i . Applying the second equality in (6) also with ( j , i ) (j,i) ( j , i ) shows that the local gadgets for ( i , j ) (i,j) ( i , j ) and ( j , i ) (j,i) ( j , i ) use the same edge identifier and hence the same edge, which is therefore { u θ i i , u θ j j } \{u_{\theta_i}^{i},u_{\theta_j}^{j}\} { u θ i i , u θ j j } . Hence, the chosen vertices form a multicolored clique.
Conversely, suppose that J J J has a multicolored clique with vertices u θ i i u_{\theta_i}^{i} u θ i i , i ∈ [ p ] i\in[p] i ∈ [ p ] , and let γ i j \gamma_{ij} γ ij be the identifier of { u θ i i , u θ j j } \{u_{\theta_i}^{i},u_{\theta_j}^{j}\} { u θ i i , u θ j j } . For every ordered pair ( i , j ) (i,j) ( i , j ) , choose the option of value θ i z 0 + γ i j \theta_i z_0+\gamma_{ij} θ i z 0 + γ ij in the local gadget, the option of value θ i z 0 \theta_i z_0 θ i z 0 in the successor gadget, and the option of value γ i j \gamma_{ij} γ ij in the mirror gadget for ( i , j ) (i,j) ( i , j ) . These options exist because these values belong to A i j A_i^j A i j , A i 0 A_i^0 A i 0 , and [ m 0 ] [m_0] [ m 0 ] , respectively. Since γ i j = γ j i \gamma_{ij}=\gamma_{ji} γ ij = γ j i , substitution in Equations (4) and (5) gives d d d at both N i j N_i^j N i j and P i j P_i^j P i j . Thus, every anchor root receives its demand and the selection is balanced.
Hardness for Cluster Editing
Lemma 4 (⋆ \star ⋆ ). Let G G G be a graph and let ℓ \ell ℓ , r r r , and d d d be integers such that ℓ ≤ r d \ell\le rd ℓ ≤ r d and let h = 9 r d h=9rd h = 9 r d . Suppose that G G G contains r r r pairwise vertex-disjoint induced stars, each with h h h vertices. Let G ~ \widetilde{G} G be a cluster graph obtained from G G G by at most k = ℓ + r ( h + d 2 ) k=\ell+r\binom{h+d}{2} k = ℓ + r ( 2 h + d ) edge edits, of which at most ℓ \ell ℓ are deletions. Then no cluster of G ~ \widetilde{G} G contains more than one center of the stars.
Proof. Denote the stars by S 1 , … , S r S_1,\ldots,S_r S 1 , … , S r with centers c 1 , … , c r c_1,\ldots,c_r c 1 , … , c r . As each star has h − 1 = 9 r d − 1 > r d ≥ ℓ h-1=9rd-1>rd\ge\ell h − 1 = 9 r d − 1 > r d ≥ ℓ leaves, not all edges between center and leaves can be deleted. Let I I I be the set of leaves whose incident edge is deleted. Then, each V ( S j ) ∖ I V(S_j)\setminus I V ( S j ) ∖ I appears within a cluster of G ~ \widetilde{G} G , and we need to add edges within the set to make it a clique. Let s j : = ∣ V ( S j ) ∖ I ∣ s_j:=|V(S_j)\setminus I| s j := ∣ V ( S j ) ∖ I ∣ for each j ∈ [ r ] j\in[r] j ∈ [ r ] . Then the number of edges added to the cluster containing c j c_j c j is
( s j 2 ) − ( s j − 1 ) . \binom{s_j}{2}-(s_j-1). ( 2 s j ) − ( s j − 1 ) .
Since these edges are a disjoint set for every j ≠ j ′ ∈ [ r ] j\ne j'\in[r] j = j ′ ∈ [ r ] , we know that any solution removing the edges incident to I I I , but no further edges incident to any center c j c_j c j adds at least ∑ j ∈ [ r ] ( ( s j 2 ) − ( s j − 1 ) ) \sum_{j\in[r]}\left(\binom{s_j}{2}-(s_j-1)\right) ∑ j ∈ [ r ] ( ( 2 s j ) − ( s j − 1 ) ) edges. Moreover, since
∑ j ∈ [ r ] s j = r h − ∣ I ∣ ≥ r h − ℓ ≥ r ( h − d ) , \sum_{j\in[r]}s_j=rh-|I|\ge rh-\ell\ge r(h-d), j ∈ [ r ] ∑ s j = r h − ∣ I ∣ ≥ r h − ℓ ≥ r ( h − d ) ,
there are x 1 , … , x r ∈ R x_1,\ldots,x_r\in\mathbb{R} x 1 , … , x r ∈ R such that ∑ j ∈ [ r ] x j = 0 \sum_{j\in[r]}x_j=0 ∑ j ∈ [ r ] x j = 0 and
s j = 1 r ( r h − ∣ I ∣ ) + x j ≥ ( h − d ) + x j . s_j=\frac{1}{r}(rh-|I|)+x_j\ge(h-d)+x_j. s j = r 1 ( r h − ∣ I ∣ ) + x j ≥ ( h − d ) + x j .
Let y : = h − ∣ I ∣ / r ≥ h − d y := h - |I|/r \ge h - d y := h − ∣ I ∣/ r ≥ h − d . Then, the number of added edges is at least
∑ j ∈ [ r ] ( s j 2 ) − ( s j − 1 ) = 1 2 ∑ j ∈ [ r ] ( s j 2 − 3 s j + 2 ) = 1 2 ∑ j ∈ [ r ] ( y 2 + 2 x j y + x j 2 − 3 ( y + x j ) + 2 ) = 1 2 r ( y 2 − 3 y + 2 ) + 2 y − 3 2 ∑ j ∈ [ r ] x j + 1 2 ∑ j ∈ [ r ] x j 2 = 1 2 r ( y − 1 ) ( y − 2 ) + 1 2 ∑ j ∈ [ r ] x j 2 ≥ 1 2 r ( h − d − 1 ) ( h − d − 2 ) + 1 2 ∑ j ∈ [ r ] x j 2 ≥ 1 2 r ( ( h − d ) 2 − 3 ( h − d ) + 2 ) = 1 2 r ( h 2 − 2 h d − 3 h + d 2 + 3 d + 2 ) ≥ 1 2 r ( h 2 − 2 h d − 3 h ) ≥ 1 2 r ( h 2 − 5 h d ) ≥ 1 2 r h 2 − 45 2 r 2 d 2 . \begin{aligned}
\sum_{j\in[r]} \binom{s_j}{2}-(s_j-1)
&= \frac{1}{2}\sum_{j\in[r]}(s_j^2-3s_j+2)\\
&= \frac{1}{2}\sum_{j\in[r]}(y^2+2x_jy+x_j^2-3(y+x_j)+2)\\
&= \frac{1}{2}r(y^2-3y+2)+\frac{2y-3}{2}\sum_{j\in[r]}x_j+\frac{1}{2}\sum_{j\in[r]}x_j^2\\
&= \frac{1}{2}r(y-1)(y-2)+\frac{1}{2}\sum_{j\in[r]}x_j^2\\
&\ge\frac{1}{2}r(h-d-1)(h-d-2)+\frac{1}{2}\sum_{j\in[r]}x_j^2\\
&\ge\frac{1}{2}r((h-d)^2-3(h-d)+2)\\
&= \frac{1}{2}r(h^2-2hd-3h+d^2+3d+2)\\
&\ge\frac{1}{2}r(h^2-2hd-3h)\\
&\ge\frac{1}{2}r(h^2-5hd)\\
&\ge\frac{1}{2}rh^2-\frac{45}{2}r^2d^2.
\end{aligned} j ∈ [ r ] ∑ ( 2 s j ) − ( s j − 1 ) = 2 1 j ∈ [ r ] ∑ ( s j 2 − 3 s j + 2 ) = 2 1 j ∈ [ r ] ∑ ( y 2 + 2 x j y + x j 2 − 3 ( y + x j ) + 2 ) = 2 1 r ( y 2 − 3 y + 2 ) + 2 2 y − 3 j ∈ [ r ] ∑ x j + 2 1 j ∈ [ r ] ∑ x j 2 = 2 1 r ( y − 1 ) ( y − 2 ) + 2 1 j ∈ [ r ] ∑ x j 2 ≥ 2 1 r ( h − d − 1 ) ( h − d − 2 ) + 2 1 j ∈ [ r ] ∑ x j 2 ≥ 2 1 r (( h − d ) 2 − 3 ( h − d ) + 2 ) = 2 1 r ( h 2 − 2 h d − 3 h + d 2 + 3 d + 2 ) ≥ 2 1 r ( h 2 − 2 h d − 3 h ) ≥ 2 1 r ( h 2 − 5 h d ) ≥ 2 1 r h 2 − 2 45 r 2 d 2 .
Suppose now that there are two different indices j , j ′ ∈ [ r ] j,j' \in[r] j , j ′ ∈ [ r ] such that c j c_j c j and c j ′ c_{j'} c j ′ belong to the same cluster of G ~ \widetilde{G} G . Then, S j ∖ I S_j \setminus I S j ∖ I and S j ′ ∖ I S_{j'} \setminus I S j ′ ∖ I are contained in this cluster of G ~ \widetilde{G} G and all edges between them need to be added. In the worst case, the edge between c j c_j c j and c j ′ c_{j'} c j ′ exists in G G G . Thus, we have at least ( h − ℓ ) ( h − ℓ ) − 1 ≥ ( 9 r d − r d ) ⋅ ( 9 r d − r d ) − 1 = 64 r 2 d 2 − 1 (h-\ell)(h-\ell)-1 \ge(9rd-rd)\cdot(9rd-rd)-1=64r^2d^2-1 ( h − ℓ ) ( h − ℓ ) − 1 ≥ ( 9 r d − r d ) ⋅ ( 9 r d − r d ) − 1 = 64 r 2 d 2 − 1 added edges. This yields a contradiction since
k = ℓ + r ( h + d 2 ) ≤ 1 2 r ( h + d ) 2 + r d ≤ 1 2 r h 2 + r h d + r d 2 + r d = 1 2 r h 2 + 9 r 2 d 2 + r d 2 + r d ≤ 1 2 r h 2 + 11 r 2 d 2 < ( 1 2 r h 2 − 45 2 r 2 d 2 ) + 64 r 2 d 2 − 1. \begin{aligned}
k &= \ell+r\binom{h+d}{2}\\
&\le\frac{1}{2}r(h+d)^2+rd\\
&\le\frac{1}{2}rh^2+rhd+rd^2+rd\\
&= \frac{1}{2}rh^2+9r^2d^2+rd^2+rd\\
&\le\frac{1}{2}rh^2+11r^2d^2\\
&< \left(\frac{1}{2}rh^2-\frac{45}{2}r^2d^2\right)+64r^2d^2-1.
\end{aligned} k = ℓ + r ( 2 h + d ) ≤ 2 1 r ( h + d ) 2 + r d ≤ 2 1 r h 2 + r h d + r d 2 + r d = 2 1 r h 2 + 9 r 2 d 2 + r d 2 + r d ≤ 2 1 r h 2 + 11 r 2 d 2 < ( 2 1 r h 2 − 2 45 r 2 d 2 ) + 64 r 2 d 2 − 1.
Observation 23 (⋆). A cluster graph with at most k k k clusters and k y ky k y vertices has at least k ( y 2 ) k\binom{y}{2} k ( 2 y ) edges, with equality if and only if it has exactly k k k clusters of size y y y .
Proof. Assume that the clusters are C 1 , … , C k C_1,\ldots,C_k C 1 , … , C k with sizes y + x 1 , … , y + x k y+x_1,\ldots,y+x_k y + x 1 , … , y + x k , respectively, where x 1 , … , x k x_1,\ldots,x_k x 1 , … , x k are integers (possibly negative). Since ∑ i ∈ [ k ] ( y + x i ) = ∣ V ( G ) ∣ = k y \sum_{i\in[k]}(y+x_i)=|V(G)|=ky ∑ i ∈ [ k ] ( y + x i ) = ∣ V ( G ) ∣ = k y , we
have ∑ i ∈ [ k ] x i = 0 \sum_{i\in[k]} x_i = 0 ∑ i ∈ [ k ] x i = 0 . Therefore, the number of edges is
∑ i ∈ [ k ] ( y + x i 2 ) = 1 2 ∑ i ∈ [ k ] ( y + x i ) ( y + x i − 1 ) = 1 2 ∑ i ∈ [ k ] ( y 2 + 2 y x i + x i 2 − y − x i ) = 1 2 ( k y 2 + 2 y ∑ i ∈ [ k ] x i + ∑ i ∈ [ k ] x i 2 − k y − ∑ i ∈ [ k ] x i ) = 1 2 ( k y 2 − k y + ∑ i ∈ [ k ] x i 2 ) . \begin{aligned}
\sum_{i\in[k]} \binom{y+x_i}{2}
&= \frac{1}{2}\sum_{i\in[k]}(y+x_i)(y+x_i-1)\\
&= \frac{1}{2}\sum_{i\in[k]}(y^2+2yx_i+x_i^2-y-x_i)\\
&= \frac{1}{2}\left(ky^2+2y\sum_{i\in[k]}x_i+\sum_{i\in[k]}x_i^2-ky-\sum_{i\in[k]}x_i\right)\\
&= \frac{1}{2}\left(ky^2-ky+\sum_{i\in[k]}x_i^2\right).
\end{aligned} i ∈ [ k ] ∑ ( 2 y + x i ) = 2 1 i ∈ [ k ] ∑ ( y + x i ) ( y + x i − 1 ) = 2 1 i ∈ [ k ] ∑ ( y 2 + 2 y x i + x i 2 − y − x i ) = 2 1 k y 2 + 2 y i ∈ [ k ] ∑ x i + i ∈ [ k ] ∑ x i 2 − k y − i ∈ [ k ] ∑ x i = 2 1 k y 2 − k y + i ∈ [ k ] ∑ x i 2 .
Since ∑ i ∈ [ k ] x i 2 \sum_{i\in[k]}x_i^2 ∑ i ∈ [ k ] x i 2 is non-negative, this proves the lower bound. Moreover, we have equality if and only if each x i x_i x i is 0.
Theorem 3 (⋆). Cluster Editing with Few Deletions is W[1 ] -hard parameterized by the deletion budget ℓ \ell ℓ . The hardness also holds for the combined parameter ℓ + pw ( G ) + fes ( G ) \ell+\operatorname{pw}(G)+\operatorname{fes}(G) ℓ + pw ( G ) + fes ( G ) .
Proof. We give a parameterized reduction from Multicolored Clique , which is W[1 ] -hard parameterized by the number of colors [24 ] . Instances with p < 3 p<3 p < 3 can be decided in polynomial time and mapped to the fixed yes-instance consisting of one isolated vertex or to the fixed no-instance consisting of a three-vertex path, in both cases with zero budgets. We output the same fixed no-instance if some pair of color classes has no edge between them. Hence we may assume p ≥ 3 p\ge3 p ≥ 3 and that every pair of color classes has an edge. In particular, all sets used in the choice gadgets below are nonempty. We may further assume that all color classes have the same size n 0 : = max i ∈ [ p ] ∣ U i ∣ n_0:=\max_{i\in[p]}|U_i| n 0 := max i ∈ [ p ] ∣ U i ∣ : adding a new isolated vertex to U i U_i U i leaves E ( J ) E(J) E ( J ) unchanged and creates no multicolored clique, since a multicolored clique has p ≥ 3 p\ge3 p ≥ 3 vertices and hence contains no isolated vertex. Padding every color class up to n 0 n_0 n 0 vertices in this way raises ∣ U ∣ |U| ∣ U ∣ to p n 0 pn_0 p n 0 . Every color class then supplies the same number of vertices, which is what lets us give every anchor root the same demand below.
We apply Construction 3 to obtain an instance ( G ⋆ , k ⋆ , ℓ ⋆ ) (G^\star,k^\star,\ell^\star) ( G ⋆ , k ⋆ , ℓ ⋆ ) of Cluster Editing with Few Deletions . This takes polynomial time: we have r , q ∈ O ( p 2 ) r,q\in O(p^2) r , q ∈ O ( p 2 ) , z 0 = 2 m 0 + 10 ∈ O ( m 0 ) z_0=2m_0+10\in O(m_0) z 0 = 2 m 0 + 10 ∈ O ( m 0 ) , and d = n 0 z 0 + m 0 ∈ O ( n 0 m 0 ) d=n_0z_0+m_0\in O(n_0m_0) d = n 0 z 0 + m 0 ∈ O ( n 0 m 0 ) , so h = 9 r d ∈ O ( p 2 n 0 m 0 ) h=9rd\in O(p^2n_0m_0) h = 9 r d ∈ O ( p 2 n 0 m 0 ) . Thus, n = r ( h + d ) ∈ O ( p 4 n 0 m 0 ) n=r(h+d)\in O(p^4n_0m_0) n = r ( h + d ) ∈ O ( p 4 n 0 m 0 ) and m = n + q − r m=n+q-r m = n + q − r (see the parameter bounds below) are polynomial in n 0 + m 0 + p n_0+m_0+p n 0 + m 0 + p , and the budgets k ⋆ k^\star k ⋆ and ℓ ⋆ \ell^\star ℓ ⋆ have polynomial encoding length. Next, we prove the equivalence of the two instances, before finally proving the parameter bounds.
Forward direction. Suppose that J J J has a multicolored clique. Use the balanced selection from Lemma 1, and delete its chosen option, which is a spine edge, in each choice gadget. These q q q deletions split every choice gadget into two connected endpoint components, each attached to one endpoint. Every vertex other than an anchor root is in one such component or is a private leaf of an anchor root, and every choice gadget between its two anchor roots has been cut. The resulting graph therefore has exactly r r r connected parts, one for each anchor root. The component at an anchor root consists of its h h h -vertex anchor block and the d d d non-endpoint vertices of choice gadgets allocated to it, so every part has size h + d h+d h + d . Add all missing edges inside every part. The number of additions is
r ( h + d 2 ) − ( m − q ) , r\binom{h+d}{2}-(m-q), r ( 2 h + d ) − ( m − q ) ,
::: because the m − q m-q m − q undeleted edges all lie inside the parts. The resulting edit set has q = ℓ ⋆ q=\ell^\star q = ℓ ⋆ deletions and r ( h + d 2 ) − m + 2 q = k ⋆ r\binom{h+d}{2}-m+2q=k^\star r ( 2 h + d ) − m + 2 q = k ⋆ edits in total. Thus, the constructed instance is a yes-instance.
Backward direction: anchor separation. For the converse, let F F F be an edit set for the constructed instance, and let C \mathcal{C} C be the partition of V ( G ⋆ ) V(G^\star) V ( G ⋆ ) into the clusters of G ⋆ △ F G^\star\mathbin{\triangle}F G ⋆ △ F . Put δ : = ∣ F ∩ E ( G ⋆ ) ∣ ≤ q \delta:=|F\cap E(G^\star)|\le q δ := ∣ F ∩ E ( G ⋆ ) ∣ ≤ q .
Every anchor block is a star with h h h vertices whose center is its anchor root, and the r r r anchor blocks are pairwise disjoint. We apply Lemma 4 to G ⋆ G^\star G ⋆ with these r r r stars. Its two numerical hypotheses hold: First, q ≤ 2 r q\le2r q ≤ 2 r by our construction and d ≥ z 0 ≥ 2 d\ge z_0\ge2 d ≥ z 0 ≥ 2 , so the deletion budget satisfies ℓ ⋆ = q ≤ 2 r ≤ r d \ell^\star=q\le2r\le rd ℓ ⋆ = q ≤ 2 r ≤ r d . Second, the q q q choice gadgets have pairwise disjoint and nonempty spine-edge sets, so m ≥ q m\ge q m ≥ q , and hence
k ⋆ = r ( h + d 2 ) − m + 2 ℓ ⋆ ≤ r ( h + d 2 ) + ℓ ⋆ . k^\star=r\binom{h+d}{2}-m+2\ell^\star\le r\binom{h+d}{2}+\ell^\star. k ⋆ = r ( 2 h + d ) − m + 2 ℓ ⋆ ≤ r ( 2 h + d ) + ℓ ⋆ .
As ∣ F ∣ ≤ k ⋆ |F|\le k^\star ∣ F ∣ ≤ k ⋆ and δ ≤ ℓ ⋆ \delta\le\ell^\star δ ≤ ℓ ⋆ , Lemma 4 shows that no cluster of G ⋆ △ F G^\star\mathbin{\triangle}F G ⋆ △ F contains two anchor roots.
Backward direction: cuts and equal cluster sizes. The endpoints of every choice gadget are distinct anchor roots, and hence belong to different clusters. Every choice gadget therefore has a deleted spine edge. The choice gadgets have disjoint spine-edge sets, so δ ≥ q \delta\ge q δ ≥ q . Since δ ≤ ℓ ⋆ = q \delta\le\ell^\star=q δ ≤ ℓ ⋆ = q , equality holds: exactly one spine edge of every choice gadget is deleted, and no other edge of G ⋆ G^\star G ⋆ is deleted.
After its unique deleted spine edge is removed, each choice gadget consists of two connected components, one attached to each endpoint. No other edge is deleted, so every vertex other than an anchor root belongs to one of these components or is a private leaf attached to its anchor root. Hence G ⋆ − ( F ∩ E ( G ⋆ ) ) G^\star-(F\cap E(G^\star)) G ⋆ − ( F ∩ E ( G ⋆ )) has exactly r r r connected components and every component contains exactly one anchor root. Every such component lies in one cluster, because none of its edges is deleted. A cluster cannot contain two components, since it would then contain their two anchor roots. Thus these r r r components are precisely the clusters in C \mathcal{C} C . In particular, every cluster induces a connected subgraph of G ⋆ G^\star G ⋆ .
The cluster graph G ⋆ △ F G^\star\mathbin{\triangle}F G ⋆ △ F arises from G ⋆ G^\star G ⋆ by deleting δ = q \delta=q δ = q edges and adding ∣ F ∣ − δ |F|-\delta ∣ F ∣ − δ edges, so it has
m − δ + ( ∣ F ∣ − δ ) = m + ∣ F ∣ − 2 q ≤ m + k ⋆ − 2 q = r ( h + d 2 ) m-\delta+(|F|-\delta)=m+|F|-2q\le m+k^\star-2q=r\binom{h+d}{2} m − δ + ( ∣ F ∣ − δ ) = m + ∣ F ∣ − 2 q ≤ m + k ⋆ − 2 q = r ( 2 h + d )
edges. It has r r r clusters and r ( h + d ) r(h+d) r ( h + d ) vertices. By Observation 23, every cluster has size exactly h + d h+d h + d : if the sizes differed, the cluster graph would have more than r ( h + d 2 ) r\binom{h+d}{2} r ( 2 h + d ) edges.
The cuts consequently give exactly the intended allocations: no edge incident with a private leaf was deleted, so the cluster of an anchor root contains its anchor block of h h h vertices and therefore contains exactly d d d non-anchor vertices from its three incident choice gadgets. For each choice gadget, the number on the anchor-root side is the allocation determined by its unique cut. Hence, the cuts form a balanced selection, and Lemma 1 yields a multicolored clique in J J J . This proves the equivalence between the source and target instances.
Parameter bounds. It remains to bound the target parameter. The deletion budget is ℓ ⋆ = q = 3 p ( p − 1 ) \ell^\star=q=3p(p-1) ℓ ⋆ = q = 3 p ( p − 1 ) . Removing the r r r anchor roots from G ⋆ G^\star G ⋆ leaves a disjoint union of paths with attached leaves and isolated vertices, so fvs ( G ⋆ ) ≤ r \operatorname{fvs}(G^\star)\le r fvs ( G ⋆ ) ≤ r . A width-one path decomposition of this remainder has a bag { u , v } \{u,v\} { u , v } for each spine edge { u , v } \{u,v\} { u , v } , with these bags ordered along the path. For every edge { u , w } \{u,w\} { u , w } to a leaf w w w , insert the bag { u , w } \{u,w\} { u , w } next to the consecutive spine-edge bags containing u u u ; at a path endpoint, insert it before or after its incident spine-edge bag. If a spine consists of a single vertex u u u , list all bags { u , w } \{u,w\} { u , w } consecutively, or use the singleton bag { u } \{u\} { u } if no leaf is attached to u u u . Bags for all other isolated vertices are also singleton bags, and the decompositions of distinct components can be concatenated. Adding all r r r anchor roots to every bag gives pw ( G ⋆ ) ≤ r + 1 \operatorname{pw}(G^\star) \le r + 1 pw ( G ⋆ ) ≤ r + 1 . To bound the feedback edge number, observe that G ⋆ G^\star G ⋆ is connected as it is the choice graph plus some attached leaves. Moreover, since each anchor block has h − 1 h-1 h − 1 edges and each choice gadget has one more edge than it has non-endpoint vertices, we have
m = r ( h − 1 ) + r d + q = n + q − r . m = r(h-1) + rd + q = n + q - r. m = r ( h − 1 ) + r d + q = n + q − r .
Therefore, fes ( G ⋆ ) = m − n + 1 = q − r + 1 \operatorname{fes}(G^\star) = m - n + 1 = q - r + 1 fes ( G ⋆ ) = m − n + 1 = q − r + 1 .
Substituting the bounds gives
ℓ ⋆ + pw ( G ⋆ ) + fvs ( G ⋆ ) + fes ( G ⋆ ) ≤ q + ( r + 1 ) + r + ( q − r + 1 ) = 2 q + r + 2 = 8 p ( p − 1 ) + 2. \ell^\star+ \operatorname{pw}(G^\star) + \operatorname{fvs}(G^\star) + \operatorname{fes}(G^\star) \le q + (r+1) + r + (q-r+1) = 2q + r + 2 = 8p(p-1) + 2. ℓ ⋆ + pw ( G ⋆ ) + fvs ( G ⋆ ) + fes ( G ⋆ ) ≤ q + ( r + 1 ) + r + ( q − r + 1 ) = 2 q + r + 2 = 8 p ( p − 1 ) + 2.
This completes the parameterized reduction.
Hardness for H H H -free Editing
We start with some properties of the choice gadget for H H H -Free Editing with Few Deletions (Construction 4) and the resulting choice graph. Since the elements of A A A are distinct integers in [ b ] [b] [ b ] , we have c t ≥ 1 c_t \ge1 c t ≥ 1 for all t ∈ { 0 , … , T } t \in\{0,\ldots,T\} t ∈ { 0 , … , T } . Consequently, no two option vertices are adjacent, no option vertex is adjacent to x x x or to y y y , and x x x and y y y are not adjacent.
Observation 24 (⋆ \star ⋆ ). Let Q Q Q be an ( A , b ) (A,b) ( A , b ) -choice gadget from x x x to y y y . Then the following hold.
(i) Q Q Q has exactly λ ( b + 1 ) + 1 \lambda(b+1)+1 λ ( b + 1 ) + 1 inner vertices.
(ii) For every t ∈ [ T ] t \in[T] t ∈ [ T ] , the graph Q − u t Q-u_t Q − u t consists of (1) the β \beta β leaves of u t u_t u t as isolated vertices, (2) a connected component containing x x x with exactly λ a t + 1 \lambda a_t+1 λ a t + 1 inner vertices, and (3) a connected component containing y y y with exactly λ ( b − a t ) + 1 \lambda(b-a_t)+1 λ ( b − a t ) + 1 inner vertices.
Proof. Let us first prove (ii). Deleting u t u_t u t from the spine leaves two subpaths: one from x x x through P 0 , u 1 , … , u t − 1 , P t − 1 P_0,u_1,\ldots,u_{t-1},P_{t-1} P 0 , u 1 , … , u t − 1 , P t − 1 , and one from P t P_t P t through u t + 1 , … , u T u_{t+1},\ldots,u_T u t + 1 , … , u T to y y y . The leaves of u t u_t u t lose their only neighbor, and every other leaf stays attached to its option vertex u t ′ ≠ u t u_{t'} \ne u_t u t ′ = u t . Hence, the connected component of x x x contains as inner vertices the segments P 0 , … , P t − 1 P_0,\ldots,P_{t-1} P 0 , … , P t − 1 and the option vertices u 1 , … , u t − 1 u_1,\ldots,u_{t-1} u 1 , … , u t − 1 with their leaves, that is,
∑ t ′ = 0 t − 1 c t ′ + ( t − 1 ) ( 1 + β ) = ( λ a 1 + 1 + ∑ t ′ = 1 t − 1 ( λ ( a t ′ + 1 − a t ′ − 1 ) + 1 ) ) + ( t − 1 ) ( λ − 1 ) = λ a t + 1 \begin{aligned}
\sum_{t'=0}^{t-1} c_{t'} + (t-1)(1+\beta)
= \left(\lambda a_1 + 1 + \sum_{t'=1}^{t-1}\left(\lambda(a_{t'+1}-a_{t'}-1)+1\right)\right) + (t-1)(\lambda-1) \\
&= \lambda a_t + 1
\end{aligned} t ′ = 0 ∑ t − 1 c t ′ + ( t − 1 ) ( 1 + β ) = ( λ a 1 + 1 + t ′ = 1 ∑ t − 1 ( λ ( a t ′ + 1 − a t ′ − 1 ) + 1 ) ) + ( t − 1 ) ( λ − 1 ) = λ a t + 1
vertices, where we used λ = β + 2 \lambda=\beta+2 λ = β + 2 , (1) , and that the sum telescopes to λ a t − λ ( t − 1 ) + t \lambda a_t-\lambda(t-1)+t λ a t − λ ( t − 1 ) + t .
For counting the number of vertices in the connected component containing y y y , observe that an ( A , b ) (A,b) ( A , b ) -choice gadget from x x x to y y y is the same as an ( A ′ , b ) (A',b) ( A ′ , b ) -choice gadget from y y y to x x x , where A ′ = { b − a T , b − a T − 1 , … , b − a 1 } A'=\{b-a_T,b-a_{T-1},\ldots,b-a_1\} A ′ = { b − a T , b − a T − 1 , … , b − a 1 } , and the removed vertex is at the t t t -th last option. Therefore, by symmetry, the component containing y y y contains λ ( b − a t ) + 1 \lambda(b-a_t)+1 λ ( b − a t ) + 1 vertices.
Adding the 1 + β 1+\beta 1 + β vertices of u t u_t u t and its leaves gives λ a t + 1 + λ ( b − a t ) + 1 + λ − 1 = λ ( b + 1 ) + 1 \lambda a_t+1+\lambda(b-a_t)+1+\lambda-1=\lambda(b+1)+1 λ a t + 1 + λ ( b − a t ) + 1 + λ − 1 = λ ( b + 1 ) + 1 inner vertices in total, which proves (i).
By Item i of Observation 24, the number of inner vertices of each local, successor, and mirror gadget is λ ( n 0 z 0 + m 0 + 1 ) + 1 \lambda(n_0z_0+m_0+1)+1 λ ( n 0 z 0 + m 0 + 1 ) + 1 , λ ( n 0 z 0 + 1 ) + 1 \lambda(n_0z_0+1)+1 λ ( n 0 z 0 + 1 ) + 1 , λ ( m 0 + 1 ) + 1 \lambda(m_0+1)+1 λ ( m 0 + 1 ) + 1 , respectively, which sums up to
p ( p − 1 ) ⋅ ( λ ( 2 n 0 z 0 + 2 m 0 + 3 ) + 3 ) = r λ ( n 0 z 0 + m 0 ) + q ( λ + 1 ) . (7) p(p-1)\cdot\left(\lambda(2n_0z_0+2m_0+3)+3\right)=r\lambda(n_0z_0+m_0)+q(\lambda+1). \tag*{(7)} p ( p − 1 ) ⋅ ( λ ( 2 n 0 z 0 + 2 m 0 + 3 ) + 3 ) = r λ ( n 0 z 0 + m 0 ) + q ( λ + 1 ) . (7)
Moreover, by Observation 2, removing the options of a balanced selection leaves every anchor root in a component with exactly d ^ \hat{d} d ^ inner vertices, while the q ( β + 1 ) q(\beta+ 1) q ( β + 1 ) removed option vertices and their leaves belong to none of these components.
Lemma 6 (⋆). Let F ⊆ ( V ( G ⋆ ) 2 ) F \subseteq\binom{V(G^\star)}{2} F ⊆ ( 2 V ( G ⋆ ) ) have at most ℓ ⋆ \ell^\star ℓ ⋆ deletions. If G ~ : = G ⋆ △ F \widetilde{G} := G^\star\mathbin{\triangle} F G := G ⋆ △ F is H H H -free, then, with X X X , Y Y Y , and the sets Z x Z_x Z x defined with respect to G ~ \widetilde{G} G , (i) Z Z Z induces a clique in G ~ \widetilde{G} G ; (ii) G ~ [ Y ] \widetilde{G}[Y] G [ Y ] is a cluster graph; and (iii) every detached vertex x ∈ X x \in X x ∈ X is adjacent to at most ∣ Z x ∣ |Z_x| ∣ Z x ∣ vertices of a cluster of G ~ [ Y ] \widetilde{G}[Y] G [ Y ] .
Proof. Let F − F^{-} F − be the set of deleted edges. (i) is clear for η = 4 \eta= 4 η = 4 . For η ≥ 5 \eta\ge5 η ≥ 5 , suppose there are z , z ′ ∈ Z z,z' \in Z z , z ′ ∈ Z that are not adjacent in G ~ \widetilde{G} G . Recall that W W W is a clique on ω = 2 q + η = 2 ℓ ⋆ + η \omega= 2q + \eta= 2\ell^\star+ \eta ω = 2 q + η = 2 ℓ ⋆ + η vertices. Since each edge in F − F^{-} F − is incident with at most two vertices of W W W , at least ω − 2 ℓ ⋆ = η \omega- 2\ell^\star= \eta ω − 2 ℓ ⋆ = η vertices of W W W are incident with no edge in F − F^{-} F − . Let W 0 W_0 W 0 consist of η − 2 \eta- 2 η − 2 such vertices. Then W 0 ∪ { z , z ′ } W_0 \cup\{z,z'\} W 0 ∪ { z , z ′ } induces H H H , a contradiction.
For (ii), suppose that u , v , w ∈ Y u,v,w \in Y u , v , w ∈ Y induce a P 3 P_3 P 3 with center v v v . By definition of Y Y Y , G ~ \widetilde{G} G contains all edges between Y Y Y and Z Z Z ; therefore, Z ∪ { u , v , w } Z \cup\{u,v,w\} Z ∪ { u , v , w } induces H H H , a contradiction.
For (iii), suppose that x ∈ X x \in X x ∈ X is adjacent to at least ∣ Z x ∣ + 1 |Z_x| + 1 ∣ Z x ∣ + 1 vertices of a cluster of G ~ [ Y ] \widetilde{G}[Y] G [ Y ] . Let T T T be the set containing x x x and any (exactly) ∣ Z x ∣ + 1 |Z_x| + 1 ∣ Z x ∣ + 1 vertices of the cluster. Pick an arbitrary z ∈ Z x z \in Z_x z ∈ Z x and let Z ′ : = { z } ∪ ( Z ∖ Z x ) Z' := \{z\} \cup(Z \setminus Z_x) Z ′ := { z } ∪ ( Z ∖ Z x ) . Then ∣ Z ′ ∪ T ∣ = ( η − 2 ) − ∣ Z x ∣ + ∣ Z x ∣ + 2 = η |Z' \cup T| = (\eta- 2) - |Z_x| + |Z_x| + 2 = \eta ∣ Z ′ ∪ T ∣ = ( η − 2 ) − ∣ Z x ∣ + ∣ Z x ∣ + 2 = η . In G ~ \widetilde{G} G , both Z ′ Z' Z ′ and T T T induce cliques, every edge between Z ′ Z' Z ′ and T ∩ Y T \cap Y T ∩ Y exists, and every edge between x x x and Z ∖ Z x Z \setminus Z_x Z ∖ Z x exists. The only non-edge in G ~ [ Z ′ ∪ T ] \widetilde{G}[Z' \cup T] G [ Z ′ ∪ T ] thus is { z , x } \{z,x\} { z , x } ; therefore Z ′ ∪ T Z' \cup T Z ′ ∪ T induces H H H , a contradiction. ◀
Theorem 5 (⋆). For every fixed η ≥ 4 \eta\ge4 η ≥ 4 and H = K η − e H = K_\eta- e H = K η − e , H H H -Free Editing with Few Deletions is W[1 ] -hard parameterized by the deletion budget ℓ \ell ℓ . The hardness also holds for the combined parameter ℓ + pw ( G ) + fvs ( G ) \ell+ \operatorname{pw}(G) + \operatorname{fvs}(G) ℓ + pw ( G ) + fvs ( G ) .
Proof. We give a parameterized reduction from Multicolored Clique. As in the proof of Theorem 3, we may assume that p ≥ 3 p \ge3 p ≥ 3 , that every pair of color classes has an edge between them, and that all color classes have the same size n 0 n_0 n 0 ; otherwise, we decide the instance in polynomial time or pad the color classes with isolated vertices, and in the former case we output a fixed yes-instance (a single vertex) or a fixed no-instance (H H H itself), in both cases with zero budgets. We apply Construction 5 to obtain an instance ( G ⋆ , k ⋆ , ℓ ⋆ ) (G^\star, k^\star, \ell^\star) ( G ⋆ , k ⋆ , ℓ ⋆ ) of H H H -Free Editing with Few Deletions. Since η \eta η is a constant, this takes polynomial time: as before, r , q ∈ O ( p 2 ) r,q \in O(p^2) r , q ∈ O ( p 2 ) and z 0 ∈ O ( m 0 ) z_0 \in O(m_0) z 0 ∈ O ( m 0 ) ; now d ^ = λ ( n 0 z 0 + m 0 ) + 3 ∈ O ( n 0 m 0 ) \hat{d} = \lambda(n_0z_0 + m_0) + 3 \in O(n_0m_0) d ^ = λ ( n 0 z 0 + m 0 ) + 3 ∈ O ( n 0 m 0 ) and h = L + σ ( η − 2 ) = 9 r ( d ^ + ( q + 1 ) ( η − 2 ) ) + ( q + 1 ) ( η − 2 ) ∈ O ( p 2 n 0 m 0 + p 4 ) h = L + \sigma(\eta- 2) = 9r(\hat{d} + (q + 1)(\eta- 2)) + (q + 1)(\eta- 2) \in O(p^2n_0m_0 + p^4) h = L + σ ( η − 2 ) = 9 r ( d ^ + ( q + 1 ) ( η − 2 )) + ( q + 1 ) ( η − 2 ) ∈ O ( p 2 n 0 m 0 + p 4 ) . Hence, by Equation (7) , G G G has n A = r h + r λ d ^ + q ( λ + 1 ) = r ( h + d ^ ) + q ( β + 1 ) n_A = rh + r\lambda\hat{d} + q(\lambda+ 1) = r(h + \hat{d}) + q(\beta+ 1) n A = r h + r λ d ^ + q ( λ + 1 ) = r ( h + d ^ ) + q ( β + 1 ) vertices and G ⋆ G^\star G ⋆ has n A + ∣ Z ∣ + ∣ W ∣ = n A + O ( p 2 ) n_A + |Z| + |W| = n_A + O(p^2) n A + ∣ Z ∣ + ∣ W ∣ = n A + O ( p 2 ) vertices, which is polynomial in n 0 + m 0 + p n_0 + m_0 + p n 0 + m 0 + p , and the budgets have polynomial encoding length. Next, we prove the equivalence of the two instances, before finally proving the parameter bounds.
Forward direction. Suppose J J J has a multicolored clique with vertices u θ i i u_{\theta_i}^{i} u θ i i , i ∈ [ p ] i \in[p] i ∈ [ p ] . Then, by Lemma 1, the choice graph admits a balanced selection ( u Q ) Q ∈ Q (u_Q)_{Q \in\mathcal{Q}} ( u Q ) Q ∈ Q , where Q \mathcal{Q} Q is the set of choice gadgets and u Q u_Q u Q is the selected option vertex in choice gadget Q Q Q . Fix an arbitrary vertex z ∈ Z z \in Z z ∈ Z . Let F − : = { { z , u Q } ∣ Q ∈ Q } F^{-} := \{\{z,u_Q\} \mid Q \in\mathcal{Q}\} F − := {{ z , u Q } ∣ Q ∈ Q } , let X X X be the set of the q q q selected option vertices (these are detached), and let Y : = V ( G A ) ∖ X Y := V(G_A) \setminus X Y := V ( G A ) ∖ X be the attached vertices. For each anchor root v v v , let C v C_v C v be the connected component of G A − X G_A - X G A − X containing v v v . Since the selection is balanced, we have ∣ C v ∣ = h + d ^ |C_v| = h + \hat{d} ∣ C v ∣ = h + d ^ by Observation 2. Our edit set F F F comprises F − F^{-} F − and all non-adjacent pairs inside the sets C v C_v C v . Let G ~ : = G ⋆ △ F \widetilde{G} := G^\star\mathbin{\triangle} F G := G ⋆ △ F .
::: Clearly, F − F^{-} F − consists of ℓ ⋆ = q \ell^\star=q ℓ ⋆ = q edges. For the number of additions, recall that G A G_A G A has m A m_A m A edges. Every edge of G A G_A G A lies inside some set C v C_v C v , except for the q ( β + 2 ) q(\beta+2) q ( β + 2 ) edges incident with the option vertices in X X X (two spine edges and β \beta β edges to leaves each); note that the leaves of the option vertices in X X X form singleton components of G A − X G_A-X G A − X . Hence, F F F contains exactly r ( h + d ^ 2 ) − m A + q ( β + 2 ) r\binom{h+\hat d}{2}-m_A+q(\beta+2) r ( 2 h + d ^ ) − m A + q ( β + 2 ) additions, and ∣ F ∣ = q + r ( h + d ^ 2 ) − m A + q ( β + 2 ) = k ⋆ |F|=q+r\binom{h+\hat d}{2}-m_A+q(\beta+2)=k^\star ∣ F ∣ = q + r ( 2 h + d ^ ) − m A + q ( β + 2 ) = k ⋆ . It remains to verify that G ~ \widetilde{G} G is H H H -free.
Observe that G ~ [ Y ] \widetilde{G}[Y] G [ Y ] is a cluster graph, and that the neighborhood of every x ∈ X x\in X x ∈ X in G ~ [ V ( G A ) ] \widetilde{G}[V(G_A)] G [ V ( G A )] is an independent set. Clearly, any forbidden induced subgraph R R R (equal to H H H ) cannot contain a vertex of W W W and of V ( G A ) V(G_A) V ( G A ) since these vertices are pairwise non-adjacent and their common neighborhood is Z Z Z and ∣ Z ∣ = η − 3 |Z|=\eta-3 ∣ Z ∣ = η − 3 . Moreover, since Z ∪ W Z\cup W Z ∪ W induces a clique, we conclude that R R R contains only vertices of Z ∪ V ( G A ) Z\cup V(G_A) Z ∪ V ( G A ) . Clearly, R R R needs to contain at least 3 vertices of V ( G A ) V(G_A) V ( G A ) . By S S S we denote the set of these vertices.
If S ⊆ Y S\subseteq Y S ⊆ Y , the unique non-adjacent vertex pair of R R R has to have both endpoints in S S S , and these two vertices together with any further vertex of S S S form a P 3 P_3 P 3 , a contradiction to the fact that G ~ [ Y ] \widetilde{G}[Y] G [ Y ] is a cluster graph. Otherwise, S S S contains a vertex x ∈ X x\in X x ∈ X . Suppose that ∣ S ∣ ≥ 4 |S|\geq4 ∣ S ∣ ≥ 4 . Since R R R has only one non-adjacent pair, x x x is adjacent to at least ∣ S ∣ − 2 ≥ 2 |S|-2\geq2 ∣ S ∣ − 2 ≥ 2 vertices of S S S . These vertices are pairwise non-adjacent, since the neighborhood of x x x in G ~ [ V ( G A ) ] \widetilde{G}[V(G_A)] G [ V ( G A )] is an independent set; hence, they contain the only non-adjacent pair of R R R , and x x x is adjacent to all of S ∖ { x } S\setminus\{x\} S ∖ { x } . But then x x x has at least three pairwise non-adjacent neighbors in R R R , a contradiction. Thus, ∣ S ∣ = 3 |S|=3 ∣ S ∣ = 3 , and since ∣ Z ∣ = η − 3 |Z|=\eta-3 ∣ Z ∣ = η − 3 , R R R contains all of Z Z Z , in particular z z z . As { x , z } \{x,z\} { x , z } is a non-adjacent pair, it is the only one; so x x x is adjacent to both vertices of S ∖ { x } S\setminus\{x\} S ∖ { x } , which are therefore non-adjacent, a contradiction. Thus, G ~ \widetilde{G} G is H H H -free.
Backward direction. Let F F F be a set of at most k ⋆ k^\star k ⋆ edits with at most ℓ ⋆ = q \ell^\star=q ℓ ⋆ = q deletions such that G ~ : = G ⋆ △ F \widetilde{G}:=G^\star\triangle F G := G ⋆ △ F is H H H -free. We write F − : = F ∩ E ( G ⋆ ) F^-:=F\cap E(G^\star) F − := F ∩ E ( G ⋆ ) and F + : = F ∖ E ( G ⋆ ) F^+:=F\setminus E(G^\star) F + := F ∖ E ( G ⋆ ) . By Lemma 6(i), Z Z Z is a clique of G ~ \widetilde{G} G . Hence, X X X , Y Y Y , and the sets Z x Z_x Z x are defined. Put F A : = F − ∩ ( V ( G A ) 2 ) F_A:=F^-\cap\binom{V(G_A)}{2} F A := F − ∩ ( 2 V ( G A ) ) . Every x ∈ X x\in X x ∈ X contributes a deletion { z , x } \{z,x\} { z , x } with z ∈ Z x z\in Z_x z ∈ Z x . Note that these are distinct for distinct x x x and distinct from the pairs of F A F_A F A , so
∣ X ∣ + ∣ F A ∣ ≤ ∣ F − ∣ ≤ q . (8) |X|+|F_A|\leq|F^-|\leq q. \tag*{(8)} ∣ X ∣ + ∣ F A ∣ ≤ ∣ F − ∣ ≤ q . (8)
By Lemma 6(ii), G ~ [ Y ] \widetilde{G}[Y] G [ Y ] is a cluster graph. Let C \mathcal{C} C be its set of clusters.
Step 1: no anchor root is detached. Suppose the anchor root v v v lies in X X X . Then, 1 ≤ ∣ Z v ∣ ≤ η − 3 1\leq|Z_v|\leq\eta-3 1 ≤ ∣ Z v ∣ ≤ η − 3 . Observe that, since v v v has more than ℓ ⋆ \ell^\star ℓ ⋆ shields attached to it, there is at least one shield that is not incident to any edge in F − F^- F − . But then every vertex in the shield is attached; thus v v v is adjacent to η − 2 ≥ ∣ Z v ∣ \eta-2\geq|Z_v| η − 2 ≥ ∣ Z v ∣ vertices of G ~ [ Y ] \widetilde{G}[Y] G [ Y ] , which is a contradiction to Lemma 6(iii).
Step 2: no cluster contains two anchor roots. Let G † G^\dagger G † be the cluster graph on V ( G A ) V(G_A) V ( G A ) consisting of G ~ [ Y ] \widetilde{G}[Y] G [ Y ] and the vertices of X X X as isolated vertices. It arises from G A G_A G A by deleting all edges incident with X X X and all edges of F A F_A F A and adding the pairs of F + F^+ F + inside Y Y Y . Every vertex of G A G_A G A other than an anchor root has degree at most β + 2 \beta+2 β + 2 in G A G_A G A : leaves have degree 1, filler vertices degree 2, option vertices degree β + 2 \beta+2 β + 2 , and shield vertices degree η − 2 ≤ β + 2 \eta-2\leq\beta+2 η − 2 ≤ β + 2 , as β ≥ η − 4 \beta\geq\eta-4 β ≥ η − 4 . Hence, by Step 1 and (8) the number of deletions is at most
∑ x ∈ X deg G A ( x ) + ∣ F A ∣ ≤ q ( β + 2 ) + q = q ( β + 3 ) = : ℓ † , \sum_{x\in X}\deg_{G_A}(x)+|F_A|\leq q(\beta+2)+q=q(\beta+3)=:\ell^\dagger, x ∈ X ∑ deg G A ( x ) + ∣ F A ∣ ≤ q ( β + 2 ) + q = q ( β + 3 ) =: ℓ † ,
and the number of edits is at most ℓ † + ∣ F + ∣ ≤ ℓ † + k ⋆ ≤ ℓ † + r ( h + d ^ 2 ) \ell^\dagger+|F^+|\leq\ell^\dagger+k^\star\leq\ell^\dagger+r\binom{h+\hat d}{2} ℓ † + ∣ F + ∣ ≤ ℓ † + k ⋆ ≤ ℓ † + r ( 2 h + d ^ ) . Here, the last inequality uses m A ≥ ( β + 3 ) q m_A\geq(\beta+3)q m A ≥ ( β + 3 ) q , which holds since already the edges to the L − 1 L-1 L − 1 leaves of any anchor root give m A ≥ L − 1 ≥ 9 r d ^ − 1 ≥ 9 r ( β + 3 ) − 1 ≥ 3 2 r ( β + 3 ) = ( β + 3 ) q m_A\geq L-1\geq9r\hat d-1\geq9r(\beta+3)-1\geq\frac{3}{2}r(\beta+3)=(\beta+3)q m A ≥ L − 1 ≥ 9 r d ^ − 1 ≥ 9 r ( β + 3 ) − 1 ≥ 2 3 r ( β + 3 ) = ( β + 3 ) q , using d ^ ≥ λ z 0 ≥ β + 3 \hat d\geq\lambda z_0\geq\beta+3 d ^ ≥ λ z 0 ≥ β + 3 .
Set B : = d ^ + σ ( η − 2 ) B := \hat{d} + \sigma(\eta- 2) B := d ^ + σ ( η − 2 ) . Our definition of L L L yields L = 9 r B L = 9rB L = 9 r B , and h + d ^ = L + σ ( η − 2 ) + d ^ = L + B h + \hat{d} = L + \sigma(\eta- 2) + \hat{d} = L + B h + d ^ = L + σ ( η − 2 ) + d ^ = L + B . Now, we apply Lemma 4 to G A G_A G A , with the r r r stars formed by the anchor roots and their L − 1 L - 1 L − 1 leaves, where B B B , L L L , and ℓ † \ell^{\dagger} ℓ † take the roles of the lemma’s parameters d d d , h h h , and ℓ \ell ℓ , respectively. The hypotheses of Lemma 4 hold: the stars are vertex-disjoint and have L L L vertices each, their centers are pairwise non-adjacent, because every choice gadget has an inner vertex at each end, and L + B = h + d ^ L + B = h + \hat{d} L + B = h + d ^ . Hence, the edit bound is ℓ † + r ( L + B 2 ) \ell^{\dagger} + r\binom{L+B}{2} ℓ † + r ( 2 L + B ) , and ℓ † ≤ r B \ell^{\dagger} \le rB ℓ † ≤ r B , because ℓ † = q ( β + 3 ) = r 2 ( β + 3 ) ≤ 3 r ( β + 2 ) \ell^{\dagger} = q(\beta+ 3) = \frac{r}{2}(\beta+ 3) \le3r(\beta+ 2) ℓ † = q ( β + 3 ) = 2 r ( β + 3 ) ≤ 3 r ( β + 2 ) and B ≥ d ^ ≥ 12 ( β + 2 ) B \ge\hat{d} \ge12(\beta+ 2) B ≥ d ^ ≥ 12 ( β + 2 ) . Lemma 4 yields that no cluster of G † G^{\dagger} G † contains two anchor roots. Since the clusters of C C C are clusters of G † G^{\dagger} G † , the same holds for C C C .
Step 3: exactly one break per choice gadget, and nothing else. To satisfy Step 2, we need to break each choice gadget Q Q Q , that is, it must contain a detached inner spine vertex or a deleted spine edge. Since there are q = ℓ ⋆ q = \ell^{\star} q = ℓ ⋆ choice gadgets and our deletion budget is exactly ℓ ⋆ \ell^{\star} ℓ ⋆ , we conclude that every choice gadget is broken exactly once, by exactly one deletion, and no other edge is deleted. In particular every detached vertex x x x is an inner spine vertex detached from a single vertex of Z Z Z implying ∣ Z x ∣ = 1 |Z_x| = 1 ∣ Z x ∣ = 1 .
Let κ \kappa κ , π \pi π and δ 1 \delta_1 δ 1 be the number of choice gadgets broken at an option vertex, at a filler vertex and at a spine edge, respectively. Since every choice gadget is broken exactly once, a detached vertex has degree β + 2 \beta+ 2 β + 2 if it is an option vertex and degree 2 if it is a filler vertex. Moreover, we have
κ + π + δ 1 = q , ∣ X ∣ = κ + π , ∑ x ∈ X deg G A ( x ) = κ ( β + 2 ) + 2 π . \kappa+ \pi+ \delta_1 = q,\qquad|X| = \kappa+ \pi,\qquad\sum_{x\in X} \deg_{G_A}(x) = \kappa(\beta+ 2) + 2\pi. κ + π + δ 1 = q , ∣ X ∣ = κ + π , x ∈ X ∑ deg G A ( x ) = κ ( β + 2 ) + 2 π .
Removing the breaks splits G A [ Y ] G_A[Y] G A [ Y ] into (a) one component C v C_v C v per anchor root v v v , consisting of the anchor block of v v v and the parts of its three choice gadgets that stay connected to v v v , and (b) the isolated leaves of the κ \kappa κ detached option vertices. An option vertex break removes β + 1 \beta+ 1 β + 1 vertices from the anchor components, a filler break removes one, and an edge break removes none. Using n A = r ( h + d ^ ) + q ( β + 1 ) n_A = r(h + \hat{d}) + q(\beta+ 1) n A = r ( h + d ^ ) + q ( β + 1 ) (see Equation (7) ), the anchor components therefore contain
∑ v ∣ C v ∣ = n A − κ ( β + 1 ) − π = r ( h + d ^ ) + ( β + 1 ) ( q − κ ) − π = r ( h + d ^ ) + ( β + 1 ) δ 1 + β π . \sum_v |C_v| = n_A - \kappa(\beta+ 1) - \pi= r(h + \hat{d}) + (\beta+ 1)(q - \kappa) - \pi= r(h + \hat{d}) + (\beta+ 1)\delta_1 + \beta\pi. v ∑ ∣ C v ∣ = n A − κ ( β + 1 ) − π = r ( h + d ^ ) + ( β + 1 ) ( q − κ ) − π = r ( h + d ^ ) + ( β + 1 ) δ 1 + β π .
vertices, that is, τ : = ( β + 1 ) δ 1 + β π ≥ 0 \tau:= (\beta+ 1)\delta_1 + \beta\pi\ge0 τ := ( β + 1 ) δ 1 + β π ≥ 0 vertices more than the r ( h + d ^ ) r(h + \hat{d}) r ( h + d ^ ) of the intended solution.
Note that a positive surplus contradicts the edit budget: On the one hand, the anchor components lie in r = 2 p ( p − 1 ) r = 2p(p - 1) r = 2 p ( p − 1 ) distinct clusters (Step 2) with at least r ( h + d ^ ) + τ r(h + \hat{d}) + \tau r ( h + d ^ ) + τ vertices in total, so by convexity completing them requires at least r ( h + d ^ + τ / r 2 ) ≥ r ( h + d ^ 2 ) + τ ( h + d ^ − 1 2 ) r\left(\frac{h+\hat{d}+\tau/r}{2}\right) \ge r\left(\frac{h+\hat{d}}{2}\right) + \tau\left(h + \hat{d} - \frac{1}{2}\right) r ( 2 h + d ^ + τ / r ) ≥ r ( 2 h + d ^ ) + τ ( h + d ^ − 2 1 ) edges. On the other hand, G ~ [ Y ] \widetilde{G}[Y] G [ Y ] has at most m A − ∑ x ∈ X deg G A ( x ) + k ⋆ − q = r ( h + d ^ 2 ) + ( β + 2 ) δ 1 + β π ≤ r ( h + d ^ 2 ) + 3 2 τ m_A - \sum_{x\in X}\deg_{G_A}(x) + k^{\star} - q = r\left(\frac{h+\hat{d}}{2}\right) + (\beta+ 2)\delta_1 + \beta\pi\le r\left(\frac{h+\hat{d}}{2}\right) + \frac{3}{2}\tau m A − ∑ x ∈ X deg G A ( x ) + k ⋆ − q = r ( 2 h + d ^ ) + ( β + 2 ) δ 1 + β π ≤ r ( 2 h + d ^ ) + 2 3 τ edges, since the remaining budget for additions is k ⋆ − q k^{\star} - q k ⋆ − q . Hence, τ ( h + d ^ − 1 2 ) ≤ 3 2 τ \tau\left(h + \hat{d} - \frac{1}{2}\right) \le\frac{3}{2}\tau τ ( h + d ^ − 2 1 ) ≤ 2 3 τ , and as h + d ^ > 2 h + \hat{d} > 2 h + d ^ > 2 this forces τ = 0 \tau= 0 τ = 0 . Consequently, we have δ 1 = π = 0 \delta_1 = \pi= 0 δ 1 = π = 0 and thus, every choice gadget is broken at one of its option vertices. In other words, the q q q deletions are exactly the edges that join one option vertex u Q u_Q u Q of every choice gadget Q Q Q to some vertex of Z Z Z .
Step 4: every cluster containing an anchor root has size h + d ^ h + \hat{d} h + d ^ . By Step 3, the deletions are exactly the q q q edges joining an option vertex u Q u_Q u Q to a vertex of Z Z Z (one per choice gadget). Hence, ∑ v ∣ C v ∣ = r ( h + d ^ ) \sum_v |C_v| = r(h + \hat{d}) ∑ v ∣ C v ∣ = r ( h + d ^ ) and G A [ Y ] G_A[Y] G A [ Y ] has m A − q ( β + 2 ) m_A - q(\beta+ 2) m A − q ( β + 2 ) edges. Since at most k ⋆ − q = r ( h + d ^ 2 ) − m A + q ( β + 2 ) k^{\star} - q = r\left(\frac{h+\hat{d}}{2}\right) - m_A + q(\beta+ 2) k ⋆ − q = r ( 2 h + d ^ ) − m A + q ( β + 2 ) edges are added, we have ∣ E ( G ~ [ Y ] ) ∣ ≤ r ( h + d ^ 2 ) |E(\widetilde{G}[Y])| \le r\left(\frac{h+\hat{d}}{2}\right) ∣ E ( G [ Y ]) ∣ ≤ r ( 2 h + d ^ ) . Moreover, each C v C_v C v is connected in G ~ [ Y ] \widetilde{G}[Y] G [ Y ] and thus contained in a cluster C v ⋆ C_v^{\star} C v ⋆ , and these clusters are distinct by Step 2. By the convexity of x ↦ ( x 2 ) x \mapsto\binom{x}{2} x ↦ ( 2 x ) and ∑ v ∣ C v ∣ = r ( h + d ^ ) \sum_v |C_v| = r(h + \hat{d}) ∑ v ∣ C v ∣ = r ( h + d ^ ) , we have
∣ E ( G ~ [ Y ] ) ∣ ≥ ∑ v ( ∣ C v ∗ ∣ 2 ) ≥ ∑ v ( ∣ C v ∣ 2 ) ≥ r ( h + d ^ 2 ) . |E(\widetilde{G}[Y])| \ge\sum_v \binom{|C_v^*|}{2} \ge\sum_v \binom{|C_v|}{2} \ge r\binom{h+\hat{d}}{2}. ∣ E ( G [ Y ]) ∣ ≥ v ∑ ( 2 ∣ C v ∗ ∣ ) ≥ v ∑ ( 2 ∣ C v ∣ ) ≥ r ( 2 h + d ^ ) .
So equality holds throughout: C v ∗ = C v C_v^* = C_v C v ∗ = C v , all C v C_v C v have equal size yielding ∣ C v ∣ = h + d ^ |C_v| = h + \hat{d} ∣ C v ∣ = h + d ^ , for every anchor root v v v .
Step 5: reading off the multicolored clique. By Step 3, C v C_v C v contains the whole anchor block of v v v , which has h h h vertices, so the remaining ∣ C v ∣ − h = d ^ |C_v| - h = \hat{d} ∣ C v ∣ − h = d ^ vertices of C v C_v C v are inner vertices of choice gadgets which belong to the three choice gadgets at v v v . By Step 3 each of these choice gadgets Q Q Q is broken by detaching one of its option vertices u Q u_Q u Q . Hence, ( u Q ) Q ∈ Q (u_Q)_{Q\in\mathcal{Q}} ( u Q ) Q ∈ Q is a selection, and C v C_v C v is the component of v v v after removing its options. As C v C_v C v contains exactly d ^ = λ d + 3 \hat{d} = \lambda d + 3 d ^ = λ d + 3 inner vertices of choice gadgets for every anchor root v v v , the selection is balanced by Observation 2, and Lemma 1 yields a multicolored clique in J J J .
Parameter bounds. Recall that the deletion budget is ℓ ⋆ = q = 3 p ( p − 1 ) \ell^\star= q = 3p(p-1) ℓ ⋆ = q = 3 p ( p − 1 ) .
For the feedback vertex number, delete from G ⋆ G^\star G ⋆ the η − 3 \eta- 3 η − 3 vertices of Z Z Z , all but two vertices of W W W , the r r r anchor roots, and η − 4 \eta- 4 η − 4 vertices of each of the r σ r\sigma r σ shields. What remains of W W W is an edge and also what remains of any shield is an edge with no further incident edge, since its anchor root is gone. Moreover, the leaves attached to the anchor roots become isolated. Finally, the choice graph becomes a disjoint union of paths with attached leaves. Thus,
fvs ( G ⋆ ) ≤ ( η − 3 ) + ( ω − 2 ) + r + r σ ( η − 4 ) = r ( ℓ ⋆ + 1 ) ( η − 4 ) + r + 2 ℓ ⋆ + 2 η − 5. \operatorname{fvs}(G^\star) \le(\eta- 3) + (\omega- 2) + r + r\sigma(\eta- 4) = r(\ell^\star+ 1)(\eta- 4) + r + 2\ell^\star+ 2\eta- 5. fvs ( G ⋆ ) ≤ ( η − 3 ) + ( ω − 2 ) + r + r σ ( η − 4 ) = r ( ℓ ⋆ + 1 ) ( η − 4 ) + r + 2 ℓ ⋆ + 2 η − 5.
For the pathwidth, first build a path decomposition of G A G_A G A in which every bag contains all r r r anchor roots. For the anchor block of v v v take one bag { u } \{u\} { u } per leaf u u u and, for every shield, one bag containing its vertices. For a choice gadget take the bag { u , w } \{u,w\} { u , w } of every spine edge, ordered along the spine, with the bags of the edges to the leaves of an option vertex inserted between the two spine-edge bags at that vertex. Concatenate all groups in any order. This yields a path decomposition of G A G_A G A with bags of size at most r + max { η − 2 , 2 } = r + η − 2 r + \max\{\eta- 2, 2\} = r + \eta- 2 r + max { η − 2 , 2 } = r + η − 2 . Add the η − 3 \eta- 3 η − 3 vertices of Z Z Z to every bag and append one bag Z ∪ W Z \cup W Z ∪ W . The result is a path decomposition of G ⋆ G^\star G ⋆ with bags of size at most max { r + 2 η − 5 , ω + η − 3 } = 2 ℓ ⋆ + 2 η − 3 \max\{r + 2\eta- 5, \omega+ \eta- 3\} = 2\ell^\star+ 2\eta- 3 max { r + 2 η − 5 , ω + η − 3 } = 2 ℓ ⋆ + 2 η − 3 , using 2 ℓ ⋆ = 3 r 2\ell^\star= 3r 2 ℓ ⋆ = 3 r . Hence
pw ( G ⋆ ) ≤ 2 ℓ ⋆ + 2 η − 4 = 6 p ( p − 1 ) + 2 η − 4. \operatorname{pw}(G^\star) \le2\ell^\star+ 2\eta- 4 = 6p(p-1) + 2\eta- 4. pw ( G ⋆ ) ≤ 2 ℓ ⋆ + 2 η − 4 = 6 p ( p − 1 ) + 2 η − 4.
Since η \eta η is a constant, and r = 2 p ( p − 1 ) r = 2p(p-1) r = 2 p ( p − 1 ) , we observe that ℓ ⋆ + pw ( G ⋆ ) + fvs ( G ⋆ ) ∈ O ( p 4 ) \ell^\star+ \operatorname{pw}(G^\star) + \operatorname{fvs}(G^\star) \in O(p^4) ℓ ⋆ + pw ( G ⋆ ) + fvs ( G ⋆ ) ∈ O ( p 4 ) .
Missing Details for the FPT-Algorithms
Lemma 9 (⋆). Branching Rule 8 is well defined and produces at most five packed instances. Every produced packed instance ( G ′ , k ′ , ℓ ′ , P ′ ) (G', k', \ell', \mathcal{P}') ( G ′ , k ′ , ℓ ′ , P ′ ) satisfies ( k ′ − ∣ P ′ ∣ ) + ℓ ′ ≤ ( k − ∣ P ∣ ) + ℓ − 1 (k' - |\mathcal{P}'|) + \ell' \le(k - |\mathcal{P}|) + \ell- 1 ( k ′ − ∣ P ′ ∣ ) + ℓ ′ ≤ ( k − ∣ P ∣ ) + ℓ − 1 .
Proof. We first check that the rule is well defined, that is, that Q e Q_e Q e in Item 3 exists and is unique. If e ∈ { { u , v } , { v , w } } e \in\{\{u,v\},\{v,w\}\} e ∈ {{ u , v } , { v , w }} and e ∉ E ( G ) e \notin E(G) e ∈ / E ( G ) , then e ∈ E ( G ′ ) ∖ E ( G ) = miss ( P ) e \in E(G') \setminus E(G) = \operatorname{miss}(\mathcal{P}) e ∈ E ( G ′ ) ∖ E ( G ) = miss ( P ) by (2) , so some member of P \mathcal{P} P has missing pair e e e ; this member is unique because distinct members have disjoint modification sets and hence distinct missing pairs.
Next we check that each produced tuple is a packed instance, that is, that its fourth component is a modification-disjoint collection of induced P 3 P_3 P 3 's of its first component. Modification disjointness is inherited by subcollections, so only the induced-P 3 P_3 P 3 property needs an argument. For a tuple with first component G − f G-f G − f and fourth component P − f \mathcal{P}-f P − f , let Q ∈ P − f Q \in\mathcal{P}-f Q ∈ P − f . By the definition of P − f \mathcal{P}-f P − f we have f ∉ mod ( Q ) f \notin\operatorname{mod}(Q) f ∈ / mod ( Q ) , so G − f G-f G − f and G G G agree on the three pairs in mod ( Q ) \operatorname{mod}(Q) mod ( Q ) and Q Q Q is an induced P 3 P_3 P 3 of G − f G-f G − f . For the tuple of Item 1, let Q ∈ P Q \in\mathcal{P} Q ∈ P . The two edges of Q Q Q lie in E ( G ) E(G) E ( G ) and its missing pair lies in miss ( P ) \operatorname{miss}(\mathcal{P}) miss ( P ) , so mod ( Q ) ⊆ E ( G P ) \operatorname{mod}(Q) \subseteq E(G^{\mathcal{P}}) mod ( Q ) ⊆ E ( G P ) . Since u u u , v v v , w w w induce a P 3 P_3 P 3 in G P G^{\mathcal{P}} G P , we have { u , w } ∉ E ( G P ) \{u,w\} \notin E(G^{\mathcal{P}}) { u , w } ∈ / E ( G P ) and hence { u , w } ∉ mod ( Q ) \{u,w\} \notin\operatorname{mod}(Q) { u , w } ∈ / mod ( Q ) . Thus G + { u , w } G+\{u,w\} G + { u , w } and G G G agree on mod ( Q ) \operatorname{mod}(Q) mod ( Q ) and Q Q Q is an induced P 3 P_3 P 3 of G + { u , w } G+\{u,w\} G + { u , w } .
The rule produces one packed instance in Item 1 and, for each of the two pairs { u , v } \{u,v\} { u , v } and { v , w } \{v,w\} { v , w } , either one in Item 2 or two in Item 3, hence at most five in total.
It remains to bound ( k ′ − ∣ P ′ ∣ ) + ℓ ′ (k' - |\mathcal{P}'|)+\ell' ( k ′ − ∣ P ′ ∣ ) + ℓ ′ . In Item 1 we have k ′ = k − 1 k'=k-1 k ′ = k − 1 , P ′ = P \mathcal{P}'=\mathcal{P} P ′ = P , and ℓ ′ = ℓ \ell'=\ell ℓ ′ = ℓ , so this quantity is ( k − ∣ P ∣ ) + ℓ − 1 (k-|\mathcal{P}|)+\ell-1 ( k − ∣ P ∣ ) + ℓ − 1 . In Items 2 and 3 an edge f ∈ E ( G ) f \in E(G) f ∈ E ( G ) is deleted and thus k ′ = k − 1 k'=k-1 k ′ = k − 1 and ℓ ′ = ℓ − 1 \ell'=\ell-1 ℓ ′ = ℓ − 1 . If f ∈ mod ( Q ) f \in\operatorname{mod}(Q) f ∈ mod ( Q ) for some Q ∈ P Q \in\mathcal{P} Q ∈ P , then this Q Q Q is unique by modification disjointness, so ∣ P ′ ∣ = ∣ P ∣ − 1 |\mathcal{P}'|=|\mathcal{P}|-1 ∣ P ′ ∣ = ∣ P ∣ − 1 by the definition of P − f \mathcal{P}-f P − f and the quantity is ( k − ∣ P ∣ ) + ℓ − 1 (k-|\mathcal{P}|)+\ell-1 ( k − ∣ P ∣ ) + ℓ − 1 . Otherwise ∣ P ′ ∣ = ∣ P ∣ |\mathcal{P}'|=|\mathcal{P}| ∣ P ′ ∣ = ∣ P ∣ and it is ( k − ∣ P ∣ ) + ℓ − 2 (k-|\mathcal{P}|)+\ell-2 ( k − ∣ P ∣ ) + ℓ − 2 . In either case it is at most ( k − ∣ P ∣ ) + ℓ − 1 (k-|\mathcal{P}|)+\ell-1 ( k − ∣ P ∣ ) + ℓ − 1 .
Theorem 7 (⋆). An instance of Cluster Editing with Few Deletions given together with a modification-disjoint collection P \mathcal{P} P of induced P 3 P_3 P 3 's of the input graph can be decided in O ( 4 μ + ℓ ⋅ ( n + m + μ ) ) O(4^{\mu+\ell}\cdot(n+m+\mu)) O ( 4 μ + ℓ ⋅ ( n + m + μ )) time, where μ = k − ∣ P ∣ \mu=k-|\mathcal{P}| μ = k − ∣ P ∣ .
Proof. Consider the recursive algorithm that, given a packed instance ( G , k , ℓ , P ) (G,k,\ell,\mathcal{P}) ( G , k , ℓ , P ) , proceeds as follows. If k < ∣ P ∣ k<|\mathcal{P}| k < ∣ P ∣ or ℓ < 0 \ell<0 ℓ < 0 , then it returns “no”. Otherwise, if G P G^{\mathcal{P}} G P is a cluster graph, then it returns “yes”. Otherwise it finds a P 3 P_3 P 3 with at least one edge in G G G as specified in Lemma 11. It applies Branching Rule 8 and returns “yes” if and only if it returns “yes” on at least one of the produced packed instances.
Correctness. We proceed by induction on ( k − ∣ P ∣ ) + ℓ (k-|\mathcal{P}|)+\ell ( k − ∣ P ∣ ) + ℓ . If the algorithm returns “no” in the first step, then either k < ∣ P ∣ k<|\mathcal{P}| k < ∣ P ∣ , where “no” clearly is correct, or ℓ < 0 \ell<0 ℓ < 0 , in which case no F F F satisfies ∣ F ∩ E ( G ) ∣ ≤ ℓ |F\cap E(G)|\leq\ell ∣ F ∩ E ( G ) ∣ ≤ ℓ . If the algorithm returns “yes” in the second step, then F : = miss ( P ) F:=\operatorname{miss}(\mathcal{P}) F := miss ( P ) satisfies G △ F = G P G\mathbin{\triangle}F=G^{\mathcal{P}} G △ F = G P , which is a cluster graph, as well as ∣ F ∣ = ∣ P ∣ ≤ k |F|=|\mathcal{P}|\leq k ∣ F ∣ = ∣ P ∣ ≤ k because the first step did not apply, and F ∩ E ( G ) = ∅ ≤ ℓ F\cap E(G)=\varnothing\leq\ell F ∩ E ( G ) = ∅ ≤ ℓ ; so ( G , k , ℓ ) (G,k,\ell) ( G , k , ℓ ) is a yes-instance. Otherwise the algorithm applies Branching Rule 8. By Lemma 9 the produced tuples are packed instances with a smaller value of ( k − ∣ P ∣ ) + ℓ (k-|\mathcal{P}|)+\ell ( k − ∣ P ∣ ) + ℓ , so the induction hypothesis applies to them and the recursive calls answer them correctly; by Lemma 10 the answer for ( G , k , ℓ , P ) (G,k,\ell,\mathcal{P}) ( G , k , ℓ , P ) agrees with the disjunction of these answers, which is what the algorithm returns.
Running time. By Lemma 9 each application of Branching Rule 8 produces decreases ( k − ∣ P ∣ ) + ℓ (k-|\mathcal{P}|)+\ell ( k − ∣ P ∣ ) + ℓ by at least one in each case and by choosing the P 3 P_3 P 3 according to Lemma 11 there are at most four recursive calls. The algorithm returns without recursing as soon as k − ∣ P ∣ < 0 k-|\mathcal{P}|<0 k − ∣ P ∣ < 0 or ℓ < 0 \ell<0 ℓ < 0 . Hence the recursion tree has depth at most μ + ℓ + 1 \mu+\ell+1 μ + ℓ + 1 and O ( 4 μ + ℓ ) O(4^{\mu+\ell}) O ( 4 μ + ℓ ) nodes. The graph in a node arises from the input graph by at most μ + ℓ \mu+\ell μ + ℓ edits and thus has at most m + μ + ℓ m+\mu+\ell m + μ + ℓ edges. Within a node we build G P G^{\mathcal{P}} G P in O ( n + m + μ ) O(n+m+\mu) O ( n + m + μ ) time, and we test whether G P G^{\mathcal{P}} G P is a cluster graph and, if not, find an induced P 3 P_3 P 3 within the same time bound: compute the connected components, find a component C C C containing a vertex u u u of degree less than ∣ C ∣ − 1 |C|-1 ∣ C ∣ − 1 , which exists if and only if some component is not a clique, and take a vertex w ∈ C w\in C w ∈ C at distance two from u u u together with a common neighbor v v v of u u u and w w w . Once we have found a P 3 P_3 P 3 we perform the case-distinction in Lemma 11 which can be done in O ( n + m + μ ) O(n+m+\mu) O ( n + m + μ ) time and thus we obtain a P 3 P_3 P 3 satisfying Lemma 11 in the same time. This gives the claimed running time.
Theorem 12 (⋆). Let h ≥ 3 h\geq3 h ≥ 3 and H = K h − e H=K_h-e H = K h − e . An instance of H H H -Free Editing with Few Deletions given together with a modification-disjoint collection H \mathcal{H} H of induced copies of H H H in the input graph can be decided in O ( h 4 ( μ + ℓ ) ⋅ h 2 h n h ) O(h^{4(\mu+\ell)}\cdot h^{2h}n^h) O ( h 4 ( μ + ℓ ) ⋅ h 2 h n h ) time, where μ = k − ∣ H ∣ \mu=k-|\mathcal{H}| μ = k − ∣ H ∣ .
Proof sketch. We adapt the algorithm of Theorem 7. Every solution has to toggle a pair of each of the pairwise disjoint sets mod ( Q ) \operatorname{mod}(Q) mod ( Q ) , Q ∈ H Q \in\mathcal{H} Q ∈ H , and hence has at least ∣ H ∣ |\mathcal{H}| ∣ H ∣ edits; adding all missing pairs, which yields G H : = ( V ( G ) , E ( G ) ∪ { miss ( Q ) ∣ Q ∈ H } ) G^{\mathcal{H}} := (V(G), E(G) \cup\{\operatorname{miss}(Q) \mid Q \in\mathcal{H}\}) G H := ( V ( G ) , E ( G ) ∪ { miss ( Q ) ∣ Q ∈ H }) , attains this bound without any deletion. Thus we answer “no” if μ < 0 \mu< 0 μ < 0 or ℓ < 0 \ell< 0 ℓ < 0 , and “yes” if G H G^{\mathcal{H}} G H is H H H -free.
Otherwise, we find an induced copy R R R of H H H in G H G^{\mathcal{H}} G H in O ( h 2 n h ) O(h^{2}n^{h}) O ( h 2 n h ) time, let { a , b } \{a,b\} { a , b } be its missing pair, and branch on how a solution F ′ F' F ′ destroys R R R as follows. Since G △ F ′ G \triangle F' G △ F ′ is H H H -free, the vertices of R R R do not induce the same copy of H H H in it, so F F F adds { a , b } \{a,b\} { a , b } or some edge e e e of R R R is not an edge of G △ F G \triangle F G △ F . Each of the following branches records one edit f f f , decreases k k k by one, and keeps the collection H − f : = { Q ∈ H ∣ f ∉ mod ( Q ) } \mathcal{H} - f := \{Q \in\mathcal{H} \mid f \notin\operatorname{mod}(Q)\} H − f := { Q ∈ H ∣ f ∈ / mod ( Q )} : (i) add f = { a , b } f = \{a,b\} f = { a , b } ; since { a , b } ∉ E ( G H ) \{a,b\} \notin E(G^{\mathcal{H}}) { a , b } ∈ / E ( G H ) and mod ( Q ) ⊆ E ( G H ) \operatorname{mod}(Q) \subseteq E(G^{\mathcal{H}}) mod ( Q ) ⊆ E ( G H ) for every Q ∈ H Q \in\mathcal{H} Q ∈ H , we have H − f = H \mathcal{H} - f = \mathcal{H} H − f = H , so this edit decreases μ \mu μ ; (ii) for each edge e e e of R R R with e ∈ E ( G ) e \in E(G) e ∈ E ( G ) , delete f = e f = e f = e ; (iii) for each edge e e e of R R R with e ∉ E ( G ) e \notin E(G) e ∈ / E ( G ) , we have e = miss ( Q e ) e = \operatorname{miss}(Q_e) e = miss ( Q e ) for a unique Q e ∈ H Q_e \in\mathcal{H} Q e ∈ H ; a solution that does not add e e e still has to destroy the induced copy Q e Q_e Q e of H H H in G G G , and all pairs in mod ( Q e ) ∖ { e } \operatorname{mod}(Q_e) \setminus\{e\} mod ( Q e ) ∖ { e } are edges of G G G , so for each of these ( h 2 ) − 1 \binom{h}{2} - 1 ( 2 h ) − 1 edges f f f we delete f f f . In (ii) and (iii), ℓ \ell ℓ decreases by one and ∣ H ∣ |\mathcal{H}| ∣ H ∣ by at most one, by modification disjointness, so μ + ℓ \mu+ \ell μ + ℓ decreases by at least one in each of the at most 1 + ( ( h 2 ) − 1 ) 2 ≤ h 4 1 + \left(\binom{h}{2} - 1\right)^2 \le h^4 1 + ( ( 2 h ) − 1 ) 2 ≤ h 4 branches. As in Lemmas 9 and 10, the members of H − f \mathcal{H} - f H − f remain induced copies of H H H after toggling f f f ; a solution F ′ F' F ′ of a produced instance yields the solution F ′ △ { f } F' \triangle\{f\} F ′ △ { f } of the original one; and, conversely, the case distinction above shows that every solution F F F contains the pair f f f of some branch, and F ∖ { f } F \setminus\{f\} F ∖ { f } solves the corresponding instance. This yields the claimed search-tree size and running time; for h = 3 h = 3 h = 3 , this is the five-way branching of Branching Rule 8, before its improvement via Lemma 11 . ◀
Missing Details for the Kernelization Results
Lemma 19 (⋆). Reduction Rule 18 is safe, that is, the resulting instance is a yes-instance if and only if the original instance is. Furthermore, it does not increase the parameter μ + ℓ \mu+ \ell μ + ℓ .
Proof. Denote the new instance ( G ′ , k ′ , ℓ , P ′ ) (G', k', \ell, \mathcal{P}') ( G ′ , k ′ , ℓ , P ′ ) . Note that C C C must form a connected component of G G G , as G P G^{\mathcal{P}} G P contains all edges of G G G and if two vertices are connected by an edge { u , v } ∈ miss ( P ) \{u,v\} \in\operatorname{miss}(\mathcal{P}) { u , v } ∈ miss ( P ) , then u u u and v v v are connected by the corresponding P 3 P_3 P 3 of P \mathcal{P} P in G G G . Also each P 3 P_3 P 3 in P \mathcal{P} P is either fully contained in C C C or disjoint with C C C , as otherwise there would be an edge between the vertices in C C C and vertices outside C C C in G P G^{\mathcal{P}} G P . Let us denote P C : = P ∖ P ′ \mathcal{P}_C := \mathcal{P} \setminus\mathcal{P}' P C := P ∖ P ′ the set of those P 3 P_3 P 3 ’s from P \mathcal{P} P that are fully contained in C C C .
If F ′ F' F ′ is a solution for the new instance, then F : = F ′ ∪ ( ( C 2 ) ∖ E ( G ) ) F := F' \cup\left(\binom{C}{2} \setminus E(G)\right) F := F ′ ∪ ( ( 2 C ) ∖ E ( G ) ) is a solution to the original instance. Indeed, G ′ △ F ′ G' \triangle F' G ′ △ F ′ is a cluster graph, G [ C ] △ ( ( C 2 ) ∖ E ( G ) ) G[C] \triangle\left(\binom{C}{2} \setminus E(G)\right) G [ C ] △ ( ( 2 C ) ∖ E ( G ) ) is a clique, F F F contains only edge deletions already contained in F ′ F' F ′ and as ∣ F ′ ∣ ≤ k ′ |F'| \le k' ∣ F ′ ∣ ≤ k ′ , we also have ∣ F ∣ = ∣ F ′ ∣ + ∣ ( C 2 ) ∖ E ( G ) ∣ ≤ k ′ + ∣ ( C 2 ) ∖ E ( G ) ∣ = k |F| = |F'| + \left|\binom{C}{2} \setminus E(G)\right| \le k' + \left|\binom{C}{2} \setminus E(G)\right| = k ∣ F ∣ = ∣ F ′ ∣ + ( 2 C ) ∖ E ( G ) ≤ k ′ + ( 2 C ) ∖ E ( G ) = k .
Now suppose that F F F is a solution for ( G , k , ℓ ) (G,k,\ell) ( G , k , ℓ ) . For each P 3 P_3 P 3 Q Q Q in P \mathcal{P} P , we know that F ∩ mod ( Q ) ≠ ∅ F \cap\operatorname{mod}(Q) \ne\varnothing F ∩ mod ( Q ) = ∅ and that these sets are disjoint for different Q Q Q ’s. Therefore, ∣ F ∩ { mod ( Q ) ∣ Q ∈ P C } ∣ ≥ ∣ P C ∣ = ∣ ( C 2 ) ∖ E ( G ) ∣ |F \cap\{\operatorname{mod}(Q) \mid Q \in\mathcal{P}_C\}| \ge|\mathcal{P}_C| = \left|\binom{C}{2} \setminus E(G)\right| ∣ F ∩ { mod ( Q ) ∣ Q ∈ P C } ∣ ≥ ∣ P C ∣ = ( 2 C ) ∖ E ( G ) . Let F ′ : = F ∩ ( V ( G ) ∖ C ) F' := F \cap\left(V(G) \setminus C\right) F ′ := F ∩ ( V ( G ) ∖ C ) . By the above argument, we have ∣ F ′ ∣ ≤ ∣ F ∣ − ∣ F ∩ { mod ( Q ) ∣ Q ∈ P C } ∣ ≤ k − ∣ ( C 2 ) ∖ E ( G ) ∣ = k ′ |F'| \le|F| - |F \cap\{\operatorname{mod}(Q) \mid Q \in\mathcal{P}_C\}| \le k - \left|\binom{C}{2} \setminus E(G)\right| = k' ∣ F ′ ∣ ≤ ∣ F ∣ − ∣ F ∩ { mod ( Q ) ∣ Q ∈ P C } ∣ ≤ k − ( 2 C ) ∖ E ( G ) = k ′ . Also ∣ F ′ ∩ E ( G ) ∣ ≤ ∣ F ∩ E ( G ) ∣ ≤ ℓ |F' \cap E(G)| \le|F \cap E(G)| \le\ell ∣ F ′ ∩ E ( G ) ∣ ≤ ∣ F ∩ E ( G ) ∣ ≤ ℓ . Finally, G ′ △ F ′ = ( G △ F ) ∖ C G' \triangle F' = (G \triangle F) \setminus C G ′ △ F ′ = ( G △ F ) ∖ C is a cluster graph. Therefore, F ′ F' F ′ is a solution for ( G ′ , k ′ , ℓ ) (G',k',\ell) ( G ′ , k ′ , ℓ ) .
As for the parameter, ℓ \ell ℓ remains unchanged, while μ ′ : = k ′ − ∣ P ′ ∣ = k − ∣ ( C 2 ) ∖ E ( G ) ∣ − ( ∣ P ∣ − ∣ P C ∣ ) = k − ∣ P ∣ = μ \mu' := k' - |\mathcal{P}'| = k - \left|\binom{C}{2} \setminus E(G)\right| - (|\mathcal{P}| - |\mathcal{P}_C|) = k - |\mathcal{P}| = \mu μ ′ := k ′ − ∣ P ′ ∣ = k − ( 2 C ) ∖ E ( G ) − ( ∣ P ∣ − ∣ P C ∣ ) = k − ∣ P ∣ = μ . ◀
Theorem 22 (⋆). C E w F D CEwFD C E w F D has a kernel with O ( ( ℓ + σ ) 2 ( ℓ 2 + σ ) 2 ) O((\ell+ \sigma)^2(\ell^2 + \sigma)^2) O (( ℓ + σ ) 2 ( ℓ 2 + σ ) 2 ) vertices and O ( ( ℓ + σ ) 3 ( ℓ 2 + σ ) 3 ) O((\ell+ \sigma)^3(\ell^2 + \sigma)^3) O (( ℓ + σ ) 3 ( ℓ 2 + σ ) 3 ) edges.
If ( G , k , ℓ ) (G,k,\ell) ( G , k , ℓ ) is an instance of CEwFD and S \mathcal{S} S is a collection of modification-disjoint induced stars in G G G , each with at least 3 vertices, then we call ( G , k , ℓ , S ) (G,k,\ell,\mathcal{S}) ( G , k , ℓ , S ) a star-packed instance . We start by proving the following analogue of Lemma 17.
Lemma 25. Let ( G , k , ℓ , S ) (G,k,\ell,\mathcal{S}) ( G , k , ℓ , S ) be a star-packed instance . Let P ⊆ S \mathcal{P}\subseteq\mathcal{S} P ⊆ S be the set of P 3 P_3 P 3 s in S \mathcal{S} S . Let G P : = G △ miss ( P ) G^{\mathcal{P}}:=G\mathbin{\triangle}\operatorname{miss}(\mathcal{P}) G P := G △ miss ( P ) . For every solution F F F for ( G , k , ℓ ) (G,k,\ell) ( G , k , ℓ ) , we have ∣ E ( G P ) △ ( E ( G ) △ F ) ∣ = ∣ F △ miss ( P ) ∣ ≤ ( ℓ + σ ) ( ℓ + 2 σ + 4 ) 2 \lvert E(G^{\mathcal{P}})\mathbin{\triangle}(E(G)\mathbin{\triangle}F)\rvert=\lvert F\mathbin{\triangle}\operatorname{miss}(\mathcal{P})\rvert\leq(\ell+\sigma)(\ell+2\sqrt{\sigma}+4)^2 ∣ E ( G P ) △ ( E ( G ) △ F )∣ = ∣ F △ miss ( P )∣ ≤ ( ℓ + σ ) ( ℓ + 2 σ + 4 ) 2 . That is, there is an edge-modification set F ′ ⊆ ( V 2 ) F'\subseteq\binom{V}{2} F ′ ⊆ ( 2 V ) of size at most ( ℓ + σ ) ( ℓ + 2 σ + 4 ) 2 (\ell+\sigma)(\ell+2\sqrt{\sigma}+4)^2 ( ℓ + σ ) ( ℓ + 2 σ + 4 ) 2 such that G P △ F ′ G^{\mathcal{P}}\mathbin{\triangle}F' G P △ F ′ is a cluster graph.
Proof. Let F F F be a solution for ( G , k , ℓ ) (G,k,\ell) ( G , k , ℓ ) , that is, G △ F G\mathbin{\triangle}F G △ F is a cluster graph, ∣ F ∣ ≤ k \lvert F\rvert\leq k ∣ F ∣ ≤ k , and ∣ F ∩ E ( G ) ∣ ≤ ℓ \lvert F\cap E(G)\rvert\leq\ell ∣ F ∩ E ( G )∣ ≤ ℓ . By Observation 14, each star in S \mathcal{S} S has at most ℓ + 2 σ + 3 \ell+2\sqrt{\sigma}+3 ℓ + 2 σ + 3 vertices and, by Observation 15, there are at most ℓ + σ \ell+\sigma ℓ + σ stars on at least 4 vertices in S \mathcal{S} S , i.e., denoting S ^ : = S ∖ P \widehat{\mathcal{S}}:=\mathcal{S}\setminus\mathcal{P} S := S ∖ P , we have ∣ S ^ ∣ ≤ ℓ + σ \lvert\widehat{\mathcal{S}}\rvert\leq\ell+\sigma ∣ S ∣ ≤ ℓ + σ . Let Y : = ⋃ S ∈ S ^ ( V ( S ) 2 ) Y:=\bigcup_{S\in\widehat{\mathcal{S}}}\binom{V(S)}{2} Y := ⋃ S ∈ S ( 2 V ( S ) ) be the set of vertex pairs within the large stars. By the above bounds, we have ∣ Y ∣ ≤ ( ℓ + σ ) ( ℓ + 2 σ + 3 ) 2 \lvert Y\rvert\leq(\ell+\sigma)(\ell+2\sqrt{\sigma}+3)^2 ∣ Y ∣ ≤ ( ℓ + σ ) ( ℓ + 2 σ + 3 ) 2 . We also have lb ( S ^ ) : = ∑ S ∈ S ^ lb ( S ) ≤ ( ℓ + σ ) ( ℓ + 2 σ + 1 ) \operatorname{lb}(\widehat{\mathcal{S}}):=\sum_{S\in\widehat{\mathcal{S}}}\operatorname{lb}(S)\leq(\ell+\sigma)(\ell+2\sqrt{\sigma}+1) lb ( S ) := ∑ S ∈ S lb ( S ) ≤ ( ℓ + σ ) ( ℓ + 2 σ + 1 ) . Note that, since the stars in S \mathcal{S} S are modification-disjoint, we have Y ∩ miss ( P ) = ∅ Y\cap\operatorname{miss}(\mathcal{P})=\varnothing Y ∩ miss ( P ) = ∅ .
Now we proceed to bound ∣ ( F ∖ Y ) △ miss ( P ) ∣ \lvert(F\setminus Y)\mathbin{\triangle}\operatorname{miss}(\mathcal{P})\rvert ∣( F ∖ Y ) △ miss ( P )∣ in a similar way as in Lemma 17. Let F + : = ( F ∖ Y ) ∖ E ( G ) F^+:=(F\setminus Y)\setminus E(G) F + := ( F ∖ Y ) ∖ E ( G ) be the added edges and F − : = ( F ∖ Y ) ∩ E ( G ) F^-:=(F\setminus Y)\cap E(G) F − := ( F ∖ Y ) ∩ E ( G ) be the deleted edges of F ∖ Y F\setminus Y F ∖ Y . Note that we clearly have ∣ F − ∣ ≤ ∣ F ∩ E ( G ) ∣ ≤ ℓ \lvert F^-\rvert\leq\lvert F\cap E(G)\rvert\leq\ell ∣ F − ∣ ≤ ∣ F ∩ E ( G )∣ ≤ ℓ and also ∣ F + ∣ + ∣ F − ∣ ≤ ∣ F ∣ ≤ k \lvert F^+\rvert+\lvert F^-\rvert\leq\lvert F\rvert\leq k ∣ F + ∣ + ∣ F − ∣ ≤ ∣ F ∣ ≤ k . We let F ′ ′ : = ( F ∖ Y ) △ miss ( P ) F'':=(F\setminus Y)\mathbin{\triangle}\operatorname{miss}(\mathcal{P}) F ′′ := ( F ∖ Y ) △ miss ( P ) . For every deleted edge e ∈ F − e\in F^- e ∈ F − , also F ′ ′ F'' F ′′ simply deletes e e e and if e e e is in a P 3 P_3 P 3 of P \mathcal{P} P , then F ′ ′ F'' F ′′ also deletes from G P G^{\mathcal{P}} G P the corresponding edge in miss ( P ) \operatorname{miss}(\mathcal{P}) miss ( P ) of the P 3 P_3 P 3 . So, as ∣ F − ∣ ≤ ℓ \lvert F^-\rvert\leq\ell ∣ F − ∣ ≤ ℓ , F ′ ′ F'' F ′′ deletes at most 2 ℓ 2\ell 2 ℓ edges from G P G^{\mathcal{P}} G P . Moreover, F ′ ′ F'' F ′′ adds all edges e ∈ ( F + ∖ miss ( P ) ) e\in(F^+\setminus\operatorname{miss}(\mathcal{P})) e ∈ ( F + ∖ miss ( P )) .
As for every P 3 P_3 P 3 Q Q Q of P \mathcal{P} P , we have mod ( Q ) ∩ F − ≠ ∅ \operatorname{mod}(Q)\cap F^-\neq\varnothing mod ( Q ) ∩ F − = ∅ or miss ( Q ) ∈ F + \operatorname{miss}(Q)\in F^+ miss ( Q ) ∈ F + , we have ∣ P ∣ ≤ ∣ F − ∣ + ∣ F + ∩ miss ( P ) ∣ \lvert\mathcal{P}\rvert\leq\lvert F^-\rvert+\lvert F^+\cap\operatorname{miss}(\mathcal{P})\rvert ∣ P ∣ ≤ ∣ F − ∣ + ∣ F + ∩ miss ( P )∣ . Therefore, ∣ F + ∖ miss ( P ) ∣ ≤ ∣ F ∣ − ∣ P ∣ ≤ k − ∣ P ∣ = σ + lb ( S ^ ) ≤ σ + ( ℓ + σ ) ( ℓ + 2 σ + 1 ) \lvert F^+\setminus\operatorname{miss}(\mathcal{P})\rvert\leq\lvert F\rvert-\lvert\mathcal{P}\rvert\leq k-\lvert\mathcal{P}\rvert=\sigma+\operatorname{lb}(\widehat{\mathcal{S}})\leq\sigma+(\ell+\sigma)(\ell+2\sqrt{\sigma}+1) ∣ F + ∖ miss ( P )∣ ≤ ∣ F ∣ − ∣ P ∣ ≤ k − ∣ P ∣ = σ + lb ( S ) ≤ σ + ( ℓ + σ ) ( ℓ + 2 σ + 1 ) .
Together, we have ∣ F ′ ′ ∣ ≤ 2 ℓ + σ + ( ℓ + σ ) ( ℓ + 2 σ + 1 ) ≤ ( ℓ + σ ) ( ℓ + 2 σ + 3 ) \lvert F''\rvert\leq2\ell+\sigma+(\ell+\sigma)(\ell+2\sqrt{\sigma}+1)\leq(\ell+\sigma)(\ell+2\sqrt{\sigma}+3) ∣ F ′′ ∣ ≤ 2 ℓ + σ + ( ℓ + σ ) ( ℓ + 2 σ + 1 ) ≤ ( ℓ + σ ) ( ℓ + 2 σ + 3 ) .
Finally, we let F ′ : = F △ miss ( P ) F':=F\mathbin{\triangle}\operatorname{miss}(\mathcal{P}) F ′ := F △ miss ( P ) . Note that, since Y ∩ miss ( P ) = ∅ Y\cap\operatorname{miss}(\mathcal{P})=\varnothing Y ∩ miss ( P ) = ∅ , we have
F ′ = ( F ∩ Y ) ∪ ( ( F ∖ Y ) △ miss ( P ) ) = ( F ∩ Y ) ∪ F ′ ′ . F'=(F\cap Y)\cup((F\setminus Y)\mathbin{\triangle}\operatorname{miss}(\mathcal{P}))=(F\cap Y)\cup F''. F ′ = ( F ∩ Y ) ∪ (( F ∖ Y ) △ miss ( P )) = ( F ∩ Y ) ∪ F ′′ .
Thus,
∣ F ′ ∣ ≤ ∣ Y ∣ + ∣ F ′ ′ ∣ ≤ ( ℓ + σ ) ( ℓ + 2 σ + 3 ) 2 + ( ℓ + σ ) ( ℓ + 2 σ + 3 ) ≤ ( ℓ + σ ) ( ℓ + 2 σ + 4 ) 2 . \lvert F'\rvert\leq\lvert Y\rvert+\lvert F''\rvert\leq(\ell+\sigma)(\ell+2\sqrt{\sigma}+3)^2+(\ell+\sigma)(\ell+2\sqrt{\sigma}+3)\leq(\ell+\sigma)(\ell+2\sqrt{\sigma}+4)^2. ∣ F ′ ∣ ≤ ∣ Y ∣ + ∣ F ′′ ∣ ≤ ( ℓ + σ ) ( ℓ + 2 σ + 3 ) 2 + ( ℓ + σ ) ( ℓ + 2 σ + 3 ) ≤ ( ℓ + σ ) ( ℓ + 2 σ + 4 ) 2 .
Now we adapt the two rules from the previous section.
Reduction Rule 26. If ( G , k , ℓ , S ) (G,k,\ell,\mathcal{S}) ( G , k , ℓ , S ) is a star-packed instance , P \mathcal{P} P is the set of P 3 P_3 P 3 s in S \mathcal{S} S , G P : = G △ miss ( P ) G^{\mathcal{P}}:=G\mathbin{\triangle}\operatorname{miss}(\mathcal{P}) G P := G △ miss ( P ) , and C C C is an isolated clique in G P G^{\mathcal{P}} G P , then remove C C C from G G G , decrease k k k by ∣ ( C 2 ) ∖ E ( G ) ∣ \lvert\binom{C}{2}\setminus E(G)\rvert ∣ ( 2 C ) ∖ E ( G )∣ and remove from S \mathcal{S} S every P 3 P_3 P 3 that contains a vertex of C C C .
Lemma 27. Reduction Rule 26 is safe and does not increase the parameter ℓ + σ \ell+\sigma ℓ + σ .
The proof of Lemma 27 is completely analogous to the proof of Lemma 19 (note that we have V ( S ) ∩ C = ∅ V(S)\cap C=\varnothing V ( S ) ∩ C = ∅ for every S ∈ S ∖ P S\in\mathcal{S}\setminus\mathcal{P} S ∈ S ∖ P ) and we therefore omit it.
Reduction Rule 28. Let ( G , k , ℓ , S ) (G,k,\ell,\mathcal{S}) ( G , k , ℓ , S ) be a star-packed instance , P \mathcal{P} P be the set of P 3 P_3 P 3 s in S \mathcal{S} S , and G P : = G △ miss ( P ) G^{\mathcal{P}}:=G\mathbin{\triangle}\operatorname{miss}(\mathcal{P}) G P := G △ miss ( P ) . Let A A A be a cluster-editing set for G P G^{\mathcal{P}} G P of size at most α ( ℓ + σ ) ( ℓ + 2 σ + 4 ) 2 \alpha(\ell+\sigma)(\ell+2\sqrt{\sigma}+4)^2 α ( ℓ + σ ) ( ℓ + 2 σ + 4 ) 2 for some constant α \alpha α and let G ′ ′ : = G P △ A G'':=G^{\mathcal{P}}\mathbin{\triangle}A G ′′ := G P △ A . Suppose that C C C is a clique in G ′ ′ G'' G ′′ of size at least ( α + 1 ) ( ℓ + σ ) ( ℓ + 2 σ + 4 ) 2 + 2 (\alpha+1)(\ell+\sigma)(\ell+2\sqrt{\sigma}+4)^2+2 ( α + 1 ) ( ℓ + σ ) ( ℓ + 2 σ + 4 ) 2 + 2 and let F C : = ( E ( G ′ ′ ) ∖ E ( G ) ) ∖ ( V ( G ) ∖ C 2 ) F_C:=(E(G'')\setminus E(G))\setminus\binom{V(G)\setminus C}{2} F C := ( E ( G ′′ ) ∖ E ( G )) ∖ ( 2 V ( G ) ∖ C ) . If ∣ F C ∣ > k \lvert F_C\rvert>k ∣ F C ∣ > k or ∣ F C ∩ E ( G ) ∣ > ℓ \lvert F_C\cap E(G)\rvert>\ell ∣ F C ∩ E ( G )∣ > ℓ , then answer no. Otherwise, let G ′ : = G ∖ C G':=G\setminus C G ′ := G ∖ C , k ′ : = k − ∣ F C ∣ k':=k-\lvert F_C\rvert k ′ := k − ∣ F C ∣ , ℓ ′ : = ℓ − ∣ F C ∩ E ( G ) ∣ \ell':=\ell-\lvert F_C\cap E(G)\rvert ℓ ′ := ℓ − ∣ F C ∩ E ( G )∣ , and S ′ : = { S ∖ C ∣ V ( S ) ∖ C ∣ ≥ 3 ∧ S ∖ C is a star } \mathcal{S}':=\{S\setminus C\mid V(S)\setminus C\mid\geq3\land S\setminus C\text{ is a star}\} S ′ := { S ∖ C ∣ V ( S ) ∖ C ∣≥ 3 ∧ S ∖ C is a star } and return instance ( G ′ , k ′ , ℓ ′ , S ′ ) (G',k',\ell',\mathcal{S}') ( G ′ , k ′ , ℓ ′ , S ′ ) .
Lemma 29. Reduction Rule 28 is safe. It also does not increase the parameter ℓ + σ \ell+\sigma ℓ + σ .
Proof. The proof that any solution for ( G , k , ℓ ) (G,k,\ell) ( G , k , ℓ ) contains F C F_C F C is completely analogous to the proof in Lemma 21, using Lemma 25 instead of Lemma 17. Based on that, the proof of safeness is exactly the same.
To show that the parameter does not increase, we need to bound lb ( S ) − lb ( S ′ ) \operatorname{lb}(\mathcal{S})-\operatorname{lb}(\mathcal{S}') lb ( S ) − lb ( S ′ ) by ∣ F C ∣ |F_C| ∣ F C ∣ . We show that for every S ∈ S S\in\mathcal{S} S ∈ S , the difference related to the star S S S can be bounded by ∣ F C ∩ ( V 2 ( S ) ) ∣ \lvert F_C\cap(V^{(S)}_2)\rvert ∣ F C ∩ ( V 2 ( S ) )∣ . This is sufficient, as the stars are modification disjoint.
If ( S ∖ C ) ∉ S ′ (S\setminus C)\notin\mathcal{S}' ( S ∖ C ) ∈ / S ′ , then we distinguish two cases.
If V ( S ) ∖ C V(S)\setminus C V ( S ) ∖ C contains the center c c c of S S S , then ∣ V ( S ) ∖ C ∣ ≤ 2 |V(S)\setminus C|\le2 ∣ V ( S ) ∖ C ∣ ≤ 2 . All edges from c c c to ∣ V ( S ) ∩ C ∣ ≥ ∣ V ( S ) ∣ − 2 |V(S)\cap C|\ge|V(S)|-2 ∣ V ( S ) ∩ C ∣ ≥ ∣ V ( S ) ∣ − 2 vertices of S S S in V ( S ) ∩ C V(S)\cap C V ( S ) ∩ C were deleted by F C F_C F C . This is at least lb ( S ) \operatorname{lb}(S) lb ( S ) edges.
If the center c c c of S S S is in C C C , then all edges from c c c to vertices in V ( S ) ∖ C V(S)\setminus C V ( S ) ∖ C must be deleted. Furthermore, if ∣ V ( S ) ∩ C ∣ ≥ 3 |V(S)\cap C|\ge3 ∣ V ( S ) ∩ C ∣ ≥ 3 , then at least lb ( S [ V ( S ) ∩ C ] ) = ∣ V ( S ) ∩ C ∣ − 2 \operatorname{lb}(S[V(S)\cap C])=|V(S)\cap C|-2 lb ( S [ V ( S ) ∩ C ]) = ∣ V ( S ) ∩ C ∣ − 2 modifications must be done by F C F_C F C in S [ V ( S ) ∩ C ] S[V(S)\cap C] S [ V ( S ) ∩ C ] . Together this is at least ∣ V ( S ) ∖ C ∣ + ∣ V ( S ) ∩ C ∣ − 2 = lb ( S ) |V(S)\setminus C|+|V(S)\cap C|-2=\operatorname{lb}(S) ∣ V ( S ) ∖ C ∣ + ∣ V ( S ) ∩ C ∣ − 2 = lb ( S ) edges.
If ( S ∖ C ) ∈ S ′ (S\setminus C)\in\mathcal{S}' ( S ∖ C ) ∈ S ′ , then all the edges between center of the star (which is in V ( S ) ∖ C V(S)\setminus C V ( S ) ∖ C ) and vertices in V ( S ) ∩ C V(S)\cap C V ( S ) ∩ C must be deleted. This is at least ∣ V ( S ) ∩ C ∣ = ∣ V ( S ) ∣ − 2 − ( ∣ V ( S ) ∖ C ∣ − 2 ) = lb ( S ) − lb ( S ∖ C ) |V(S)\cap C|=|V(S)|-2-(|V(S)\setminus C|-2)=\operatorname{lb}(S)-\operatorname{lb}(S\setminus C) ∣ V ( S ) ∩ C ∣ = ∣ V ( S ) ∣ − 2 − ( ∣ V ( S ) ∖ C ∣ − 2 ) = lb ( S ) − lb ( S ∖ C ) edges.
Summing over all S ∈ S S\in\mathcal{S} S ∈ S , we get lb ( S ) − lb ( S ′ ) ≤ ∣ F C ∣ \operatorname{lb}(\mathcal{S})-\operatorname{lb}(\mathcal{S}')\le|F_C| lb ( S ) − lb ( S ′ ) ≤ ∣ F C ∣ , i.e., lb ( S ) ≤ ∣ F C ∣ + lb ( S ′ ) \operatorname{lb}(\mathcal{S})\le|F_C|+\operatorname{lb}(\mathcal{S}') lb ( S ) ≤ ∣ F C ∣ + lb ( S ′ ) . Therefore, we have σ ′ : = k ′ − lb ( S ′ ) = k − ∣ F C ∣ − lb ( S ′ ) ≤ k − lb ( S ′ ) = σ \sigma':=k'-\operatorname{lb}(\mathcal{S}')=k-|F_C|-\operatorname{lb}(\mathcal{S}')\le k-\operatorname{lb}(\mathcal{S}')=\sigma σ ′ := k ′ − lb ( S ′ ) = k − ∣ F C ∣ − lb ( S ′ ) ≤ k − lb ( S ′ ) = σ . The bound on the parameter follows, as also ℓ ′ ≤ ℓ \ell'\le\ell ℓ ′ ≤ ℓ . ◀
Proof of Theorem 22. The algorithm proceeds almost the same as the one of Theorem 16, just using the bound from Lemma 25 and Reduction Rules 26 and 28. Thus, its correctness can be also proven completely analogously as for the aforementioned algorithm.
It remains to update the bound on the size of the kernel. It is enough to bound the size of the instance output in the last step, that is, if there is an approximate solution A A A of size at most α ( ℓ + σ ) ( ℓ + 2 σ + 4 ) 2 \alpha(\ell+\sigma)(\ell+2\sqrt{\sigma}+4)^2 α ( ℓ + σ ) ( ℓ + 2 σ + 4 ) 2 , but none of the reduction rules applies. Note that ( ℓ + σ ) 2 ∈ O ( ℓ 2 + σ ) (\ell+\sqrt{\sigma})^2\in O(\ell^2+\sigma) ( ℓ + σ ) 2 ∈ O ( ℓ 2 + σ ) . Let X X X be the set of vertices incident to A A A , we again have ∣ X ∣ ≤ 2 ∣ A ∣ ≤ 2 α ( ℓ + σ ) ( ℓ + 2 σ + 4 ) 2 |X|\le2|A|\le2\alpha(\ell+\sigma)(\ell+2\sqrt{\sigma}+4)^2 ∣ X ∣ ≤ 2∣ A ∣ ≤ 2 α ( ℓ + σ ) ( ℓ + 2 σ + 4 ) 2 . Let again G ′ ′ : = G P △ A G'' := G^P\triangle A G ′′ := G P △ A be the cluster graph. If a clique in G ′ ′ G'' G ′′ does not contain any vertex of X X X , then it is also a clique in G P G^P G P and Reduction Rule 26 would apply. Therefore, each clique of G ′ ′ G'' G ′′ contains a vertex of X X X , that is, there are at most 2 α ( ℓ + σ ) ( ℓ + 2 σ + 4 ) 2 2\alpha(\ell+\sigma)(\ell+2\sqrt{\sigma}+4)^2 2 α ( ℓ + σ ) ( ℓ + 2 σ + 4 ) 2 cliques. Furthermore, each clique is of size at most ( α + 1 ) ( ℓ + σ ) ( ℓ + 2 σ + 4 ) 2 + 1 (\alpha+1)(\ell+\sigma)(\ell+2\sqrt{\sigma}+4)^2+1 ( α + 1 ) ( ℓ + σ ) ( ℓ + 2 σ + 4 ) 2 + 1 , as otherwise Reduction Rule 28 would apply. Therefore, G ′ ′ G'' G ′′ contains O ( ( ℓ + σ ) 2 ( ℓ + σ ) 4 ) = O ( ( ℓ + σ ) 2 ( ℓ 2 + σ ) 2 ) O((\ell+\sigma)^2(\ell+\sqrt{\sigma})^4)=O((\ell+\sigma)^2(\ell^2+\sigma)^2) O (( ℓ + σ ) 2 ( ℓ + σ ) 4 ) = O (( ℓ + σ ) 2 ( ℓ 2 + σ ) 2 ) vertices and O ( ( ℓ + σ ) 3 ( ℓ + σ ) 6 ) = O ( ( ℓ + σ ) 3 ( ℓ 2 + σ ) 3 ) O((\ell+\sigma)^3(\ell+\sqrt{\sigma})^6)=O((\ell+\sigma)^3(\ell^2+\sigma)^3) O (( ℓ + σ ) 3 ( ℓ + σ ) 6 ) = O (( ℓ + σ ) 3 ( ℓ 2 + σ ) 3 ) edges. As G P G^P G P and G ′ ′ G'' G ′′ only differ in edges of A A A and ∣ A ∣ ∈ O ( ( ℓ + σ ) ( ℓ + σ ) 2 ) = O ( ( ℓ + σ ) ( ℓ 2 + σ ) ) |A|\in O((\ell+\sigma)(\ell+\sqrt{\sigma})^2)=O((\ell+\sigma)(\ell^2+\sigma)) ∣ A ∣ ∈ O (( ℓ + σ ) ( ℓ + σ ) 2 ) = O (( ℓ + σ ) ( ℓ 2 + σ )) , also G P G^P G P has O ( ( ℓ + σ ) 3 ( ℓ 2 + σ ) 3 ) O((\ell+\sigma)^3(\ell^2+\sigma)^3) O (( ℓ + σ ) 3 ( ℓ 2 + σ ) 3 ) edges. Finally, G G G has the same vertices as G ′ ′ G'' G ′′ and at most as many edges as G P G^P G P , therefore it has O ( ( ℓ + σ ) 2 ( ℓ 2 + σ ) 2 ) O((\ell+\sigma)^2(\ell^2+\sigma)^2) O (( ℓ + σ ) 2 ( ℓ 2 + σ ) 2 ) vertices and O ( ( ℓ + σ ) 3 ( ℓ 2 + σ ) 3 ) O((\ell+\sigma)^3(\ell^2+\sigma)^3) O (( ℓ + σ ) 3 ( ℓ 2 + σ ) 3 ) edges. ◀
Experiments
With our small-scale experimental study we wanted to understand how the parameters under consideration relate to the standard parameter k k k , the number of allowed edits. To this end, we took the graph data from the Parameterized Algorithms and Computational Experiments Challenge 2021 [41 ] about exact algorithms for Cluster Editing. We used the unweighted graphs of the exact track, as published in the challenge’s instance repository [52 ] . For each of the instances we then computed:
A modification-disjoint P 3 P_3 P 3 -packing computed as in the KaPoCE solver [3 ] , which in turn follows Gottesbüren et al. [33 ] : We enumerate induced P 3 P_3 P 3 s and take them as vertices in a conflict graph where the edges model shared modifications. Then we greedily compute an independent set in the conflict graph and then improve it by 2-improvement local search.
A vertex-disjoint P 3 P_3 P 3 -packing, computed in the same way except that two P 3 P_3 P 3 s are already in conflict when they share a single vertex. Note that such a packing consists of at most ⌊ n / 3 ⌋ \lfloor n/3 \rfloor ⌊ n /3 ⌋ many P 3 P_3 P 3 s, which caps the lower bound it can give.
A modification-disjoint packing of induced stars, obtained by growing each P 3 P_3 P 3 of the modification-disjoint packing above into a maximal induced star, using only vertex pairs that that packing leaves free.
A cluster editing set that among all those minimizing the number k k k of edits also minimizes the number of deletions. To do this, we first compute a minimum-edit solution via an ILP over variables that model whether pairs of vertices are merged and row-generated constraints that ensure the partition property. Afterwards, we use a modification of this ILP that fixes the edits to be minimum-possible and minimizes the number of deletions.
In the results, μ \mu μ is k k k minus the size of the computed modification-disjoint P 3 P_3 P 3 -packing, μ v d \mu_{\mathrm{vd}} μ vd is k k k minus the size of the computed vertex-disjoint P 3 P_3 P 3 -packing, and σ \sigma σ is k k k minus the lower bound given by the computed star packing.
We ran the experiments on an AMD Ryzen 5 5600X (6 cores, 12 threads) with 16 GB RAM under Ubuntu 24.04.5 LTS. ILPs were solved with SCIP 10.0.2 (SoPlex 8.0.2) driven from Python 3.12.3. Four instances were processed in parallel, each SCIP call capped at 1200 MB. Per-instance limits were 300 s for the editing ILP and 120 s for the packing bounds together.
Of the 189 instances, both stages of the editing ILP finished within the time limit on 109, and these are the instances we report on. Table 1 reports the absolute magnitudes of the parameters and Table 2 the solved instances and medians per source data set. Compared to k k k , the deletion parameter ℓ \ell ℓ was usually half to four fifths as large (quartiles 0.50 and 0.83, median 0.73). The above-guarantee parameters, by contrast, are nearly always negligible: μ \mu μ has median 1 and is zero on 54 of the 109 instances, with maximum 44, so the packing bound alone certifies optimality of k k k on half of them. This is consistent with the effectiveness that the PACE participants report for packing-based lower bounds [3 ] . Because μ \mu μ is so small, ℓ + μ \ell+ \mu ℓ + μ is essentially ℓ \ell ℓ : its median is 0.74 k 0.74k 0.74 k , so the combined parameter is smaller than k k k on 103 of the 109 instances, but only by about a quarter, and it exceeds k k k on two. Growing the P 3 s P_{3s} P 3 s into stars improves the bound on 29 instances and reduces the total excess from 490 to 449, which leaves the picture unchanged: with μ \mu μ and σ \sigma σ this close to zero, there is almost nothing for a stronger lower bound to recover.
Table 1. Absolute magnitudes of the parameters over the 109 instances solved to proven optimality (of 189 attempted; the remaining 80 exceeded the time limit).
Table 2. Per data set, median values over the instances solved to proven optimality. The packing columns give the lower bound as a fraction of k k k : a value of 1 means the bound is tight.
Requiring the packed P 3 s P_{3s} P 3 s to be vertex-disjoint instead changes the picture completely. Such a packing captured only a tenth of k k k in the median, so μ v d \mu_{\mathrm{vd}} μ vd has median 276, amounts to 90% of k k k in the median, and is nonzero on every one of the 109 instances. The cause is the ceiling of ⌊ n / 3 ⌋ \lfloor n/3 \rfloor ⌊ n /3 ⌋ on the size of a vertex-disjoint packing, which 36 of the computed packings attain exactly: since k > n / 3 k > n/3 k > n /3 on 103 of the instances, an excess of at least k − ⌊ n / 3 ⌋ k - \lfloor n/3 \rfloor k − ⌊ n /3 ⌋ is unavoidable there no matter how the packing is chosen.