Introduction
A graph G G G is chordal if every cycle of length four or more contains a chord, that is, an edge joining two nonconsecutive vertices of the cycle. A triangulation of G G G is a chordal supergraph obtained by adding edges to G G G , and it is minimal if no proper subset of the added edges yields a chordal graph [1 ] . A potential maximal clique (PMC ) of G G G is a nonempty vertex set that forms a maximal clique in some minimal triangulation of G G G . A PMC need not be a clique in G G G itself: in a four-vertex cycle, adding either diagonal produces a minimal triangulation consisting of two triangles, so each of the four three-vertex subsets is a PMC even though the cycle is triangle-free. In the PMC enumeration problem , the goal is to list all PMCs of an input graph G G G without repetition.
Potential maximal cliques serve as the candidate bags for dynamic programming algorithms that construct optimal tree decompositions and triangulations. Given the full set of PMCs of G G G , the classical algorithm of Bouchitté and Todinca [1 ] computes both treewidth (one less than the minimum, over all triangulations, of the maximum clique size) and minimum fill-in (the minimum number of edges needed to triangulate G G G ) in time polynomial in n n n and the number of PMCs, without explicitly enumerating the minimal triangulations themselves. Fomin, Todinca, and Villanger [11 ] substantially generalized this paradigm, showing that a broad class of induced-subgraph and vertex-deletion problems—including Maximum Independent Set, Minimum Feedback Vertex Set, and Longest Induced Path—can likewise be solved in time polynomial in n n n and the number of PMCs.
Finding low-cost triangulations and tree decompositions is also central to numerical linear algebra, probabilistic inference, and database query processing. In Cholesky factorization of sparse symmetric positive definite matrices, fill-in edges correspond to new nonzero entries introduced during Gaussian elimination, so minimizing fill-in directly reduces storage and can reduce arithmetic cost [12 ] . In discrete Bayesian networks, exact inference via junction trees passes messages between potentials defined over the maximal cliques of a moralized, triangulated graph; because a table over b b b binary variables has 2 b 2^b 2 b entries, the maximum clique size governs both space and time complexity [13 ] . Low-width tree decompositions similarly define tractable classes of constraint satisfaction problems and conjunctive queries with projections in relational databases [14 ] . Motivated by these applications, Korhonen, Berg, and Järvisalo [15 ] implemented and evaluated PMC-based exact solvers for several graph and hypergraph width measures as well as total table size in Bayesian networks; on standard benchmarks, these algorithms were competitive with problem-specific solvers.
Because a graph can have exponentially many PMCs [2 ] , generating the entire family PMC ( G ) \operatorname{PMC}(G) PMC ( G ) quickly becomes prohibitive. Indeed, Korhonen, Berg, and Järvisalo [16 ] identified PMC enumeration as the primary scalability bottleneck of the Bouchitté–Todinca framework in practice. For parameterized and bounded-width problems, however, full enumeration is unnecessary: deciding whether the treewidth of G G G is at most k − 1 k-1 k − 1 , for instance, requires only the PMCs of size at most k k k [16 ] . In this work, we study the problem of enumerating all PMCs of cardinality at most k k k directly, without generating larger PMCs.
Our results. We present a deterministic algorithm that lists all PMCs of size at most k k k in an arbitrary graph G G G with fixed-parameter delay , meaning that the time elapsed before the first output, between any two consecutive outputs, and after the last output is bounded by f ( k ) ⋅ n c f(k) \cdot n^c f ( k ) ⋅ n c for a computable function f f f and a constant c c c independent of k k k . We establish this result by reducing enumeration to the constrained search problem, which we call Extend: given subsets I , O ⊆ V ( G ) I,O \subseteq V(G) I , O ⊆ V ( G ) of required and excluded vertices, find a PMC Ω \Omega Ω of size at most k k k such that I ⊆ Ω I \subseteq\Omega I ⊆ Ω and Ω ∩ O = ∅ \Omega\cap O = \varnothing Ω ∩ O = ∅ , or report that no such PMC exists.
Theorem 1.1 (Main result). Let G G G be an n n n -vertex graph, where n ≥ 2 n \ge2 n ≥ 2 , let k ≥ 1 k \ge1 k ≥ 1 , and let I , O ⊆ V ( G ) I,O \subseteq V(G) I , O ⊆ V ( G ) . There is a deterministic algorithm that finds a PMC Ω \Omega Ω of size at most k k k containing I I I and avoiding O O O , or correctly reports that none exists, in time
2 O ( k 3 ) n 4 log n . 2^{O(k^3)} n^4 \log n. 2 O ( k 3 ) n 4 log n . All such PMCs can be enumerated without repetition with delay 2 O ( k 3 ) n 4 log n 2^{O(k^3)} n^4 \log n 2 O ( k 3 ) n 4 log n . This delay bound also covers the initial and final waiting times, and thus M M M outputs are produced in total time ( M + 1 ) 2 O ( k 3 ) n 4 log n (M+1)2^{O(k^3)} n^4 \log n ( M + 1 ) 2 O ( k 3 ) n 4 log n .
The search bound of Theorem 1.1 is established in Theorem 11.1, and the well-known Lawler–Murty reduction from constrained search to enumeration [18 , 19 ] is given at the end of this section. To our knowledge, Theorem 1.1 provides the first fixed-parameter delay algorithm for enumerating PMCs of size at most k k k in general graphs. Previously, Fomin and Villanger [3 ] gave an algorithm for listing PMCs of size at most k k k whose polynomial degree depends on k k k (yielding an XP running time). Recently, Bergé, Limouzy, and Schvire [17 ] presented an output-linear algorithm for listing all PMCs of a connected graph G G G in total time O ( n 4 ⋅ m ⋅ ∣ PMC ( G ) ∣ ) O(n^4 \cdot m \cdot|\operatorname{PMC}(G)|) O ( n 4 ⋅ m ⋅ ∣ PMC ( G ) ∣ ) , where m = ∣ E ( G ) ∣ m=|E(G)| m = ∣ E ( G ) ∣ . Theorem 1.1 guarantees both fixed-parameter delay and output-linear total time in the parameterized setting.
Recognizing a PMC in the whole graph. Whether a nonempty vertex subset Ω ⊆ V ( G ) \Omega\subseteq V(G) Ω ⊆ V ( G ) is a PMC is a global property of G − Ω G-\Omega G − Ω . By the characterization of Bouchitté and Todinca [1 , 2 ] , $\Omega is a PMC of G G G if and only if (1) no connected component of G − Ω G-\Omega G − Ω is adjacent to every vertex of Ω \Omega Ω (no component is full ), and (2) for every pair of nonadjacent vertices in Ω \Omega Ω , some connected component of G − Ω G-\Omega G − Ω contains a neighbor of each vertex. Consequently, components of G − Ω G-\Omega G − Ω play a dual role: they provide the paths that witness condition (2), and they can also form full-component obstructions that violate condition (1). Naive graph simplifications, such as deleting vertices or splitting the graph along a separator, can destroy required connections or inadvertently eliminate a full component. While testing all vertex subsets of size at most k k k takes n O ( k ) n^{O(k)} n O ( k ) time, deciding whether a prescribed vertex set can be extended to a PMC of unbounded size is NP-complete [17 ] . Our algorithm must therefore exploit the cardinality bound k k k to restrict the search space while faithfully preserving both connectivity witnesses and full-component obstructions across graph reductions.
Locating a PMC in a small connected region. We begin by solving Extend on ( q , k ) (q,k) ( q , k ) -unbreakable graphs—those in which no separator of size at most k k k partitions the remaining vertices into two disjoint unions of connected components that each exceed size q q q . We prove that if G G G is ( q , k ) (q,k) ( q , k ) -unbreakable and n > 3 q + k n > 3q+k n > 3 q + k , then every PMC Ω \Omega Ω of size at most k k k satisfies S ⊊ Ω ⊆ C ∪ S S \subsetneq\Omega\subseteq C \cup S S ⊊ Ω ⊆ C ∪ S , where C C C is a connected vertex set of size at most q q q and S = N G ( C ) S=N_G(C) S = N G ( C ) is its external neighborhood of size at most k − 1 k-1 k − 1 .
To see why this holds, observe that since ∣ Ω ∣ ≤ k |\Omega| \leq k ∣Ω∣ ≤ k and n > 3 q + k n > 3q+k n > 3 q + k , the ( q , k ) (q,k) ( q , k ) -unbreakability of G G G implies that G − Ω G-\Omega G − Ω has a unique connected component D D D of size greater than q q q . Set S = N G ( D ) S=N_G(D) S = N G ( D ) . Because Ω \Omega Ω has no full component in G − Ω G-\Omega G − Ω , we have S ⊊ Ω S \subsetneq\Omega S ⊊ Ω . By the pairwise connection property of PMCs, any two vertices in Ω ∖ S \Omega\setminus S Ω ∖ S are either adjacent or connected via a component of G − Ω G-\Omega G − Ω distinct from D D D ; in either case, the connecting path avoids S S S , which places all vertices of Ω ∖ S \Omega\setminus S Ω ∖ S inside a single connected component C C C of G − S G-S G − S . The same pairwise condition ensures that every vertex of S S S has a neighbor in C C C , so N G ( C ) = S N_G(C)=S N G ( C ) = S . Finally, because S S S separates C C C from the large component D D D and ∣ S ∣ ≤ ∣ Ω ∣ − 1 ≤ k − 1 |S| \leq|\Omega|-1 \leq k-1 ∣ S ∣ ≤ ∣Ω∣ − 1 ≤ k − 1 , unbreakability forces ∣ C ∣ ≤ q |C| \leq q ∣ C ∣ ≤ q . Thus Ω \Omega Ω consists of the entire neighborhood S = N G ( C ) S=N_G(C) S = N G ( C ) together with a nonempty subset of C C C . Adapting the bounded-neighborhood connected-set enumeration of Fomin and Villanger [3 Section 3] , we enumerate all candidate pairs ( C , N G ( C ) ) (C,N_G(C)) ( C , N G ( C )) with ∣ C ∣ ≤ q |C| \leq q ∣ C ∣ ≤ q and ∣ N G ( C ) ∣ ≤ k − 1 |N_G(C)| \leq k-1 ∣ N G ( C ) ∣ ≤ k − 1 by branching on whether each newly reached neighbor joins C C C or N G ( C ) N_G(C) N G ( C ) . Testing the resulting subsets Ω = S ∪ X \Omega=S\cup X Ω = S ∪ X (for nonempty X ⊆ C X\subseteq C X ⊆ C with ∣ X ∣ ≤ k − ∣ S ∣ |X|\leq k-|S| ∣ X ∣ ≤ k − ∣ S ∣ ) against the global PMC criterion solves Extend on ( q , k ) (q,k) ( q , k ) -unbreakable graphs in time 2 O ( k log ( 2 + q / k ) ) ( n + 1 ) 3 2^{O(k\log(2+q/k))}(n+1)^3 2 O ( k l o g ( 2 + q / k )) ( n + 1 ) 3 (Theorem 3.1 ). Crucially, the dependence on q q q in the exponent is logarithmic: in our general reduction, q q q will be 2 O ( k 2 ) 2^{O(k^2)} 2 O ( k 2 ) , so the factor 2 O ( k log ( 2 + q / k ) ) 2^{O(k\log(2+q/k))} 2 O ( k l o g ( 2 + q / k )) becomes 2 O ( k 3 ) 2^{O(k^3)} 2 O ( k 3 ) .
Replacing a separated piece. To handle arbitrary graphs, we apply the recursive understanding framework [4 , 5 ] . When G G G admits a small separation, we decompose G G G into two induced subgraphs H H H and J J J that overlap only on a small boundary Z = V ( H ) ∩ V ( J ) Z=V(H)\cap V(J) Z = V ( H ) ∩ V ( J ) , and we replace the piece H H H with a graph K K K whose size is bounded by a function of k k k . For every outside graph J J J attached along Z Z Z , the graph obtained by attaching J J J to H H H (via Z Z Z ) must have a PMC of size at most k k k satisfying its inclusion and exclusion constraints if and only if the graph obtained by attaching the same J J J to K K K has such a PMC under the corresponding constraints. Thus, replacing H H H by K K K preserves whether a constrained solution exists, regardless of the graph attached outside the boundary. We construct K K K in two stages: first, given a subset R ⊆ V ( H ) R\subseteq V(H) R ⊆ V ( H ) of retained vertices (containing Z Z Z and all required vertices of H H H ), we compress H H H into a graph K K K of size at most 2 ∣ R ∣ 2|R| 2∣ R ∣ that preserves PMC membership for all candidates Ω \Omega Ω satisfying Ω ∩ V ( H ) ⊂ R \Omega\cap V(H)\subset R Ω ∩ V ( H ) ⊂ R ; second, we compute a set R R R of size 2 O ( k 2 ) 2^{O(k^2)} 2 O ( k 2 ) such that for every outside graph J J J and every choice of constraints on J J J , if H ∪ J H\cup J H ∪ J admits a constrained PMC of size at most k k k , then it admits one whose intersection with V ( H ) V(H) V ( H ) is contained in R R R .
Preserving PMCs under torso compression. Given the retained set R ⊆ V ( H ) R \subseteq V(H) R ⊆ V ( H ) , our starting point is the torso Tor ( H , R ) \operatorname{Tor}(H,R) Tor ( H , R ) , obtained from H [ R ] H[R] H [ R ] by turning the neighborhood N H ( C ) ⊆ R N_H(C) \subseteq R N H ( C ) ⊆ R of each connected component C C C of H − R H-R H − R into a clique [6 ] . While the torso preserves all paths through H − R H-R H − R whose endpoints lie in R R R , it does not preserve PMC membership on its own: if a deleted component C C C of H − R H-R H − R had N H ( C ) = Ω N_H(C)=\Omega N H ( C ) = Ω , then C C C was a full component for Ω \Omega Ω in H H H , and deleting C C C removes this obstruction. For example, in the three-vertex path a a a –c c c –b b b with R = { a , b } R=\{a,b\} R = { a , b } , the torso is the single edge ( a , b ) (a,b) ( a , b ) , for which { a , b } \{a,b\} { a , b } is a PMC even though the deleted component { c } \{c\} { c } makes { a , b } \{a,b\} { a , b } invalid in H H H . Lemma 9.3 shows that, for any outside graph J J J attached to H H H via Z Z Z , a candidate Ω ⊆ R ∪ V ( J ) \Omega\subseteq R \cup V(J) Ω ⊆ R ∪ V ( J ) is a PMC before replacing H H H by Tor ( H , R ) \operatorname{Tor}(H,R) Tor ( H , R ) if and only if it is a PMC after making the replacement and Ω ≠ N H ( C ) \Omega\ne N_H(C) Ω = N H ( C ) for every component C C C of H − R H-R H − R .
The neighborhoods requiring this repair are both cliques and PMCs of the torso Tor ( H , R ) \operatorname{Tor}(H,R) Tor ( H , R ) . By a bound of Fomin and Villanger [10 ] , there are at most ∣ R ∣ |R| ∣ R ∣ such neighborhoods. We therefore add at most ∣ R ∣ |R| ∣ R ∣ auxiliary vertices, giving a replacement graph with at most 2 ∣ R ∣ 2|R| 2∣ R ∣ vertices. For every outside graph attached along the boundary, this replacement preserves whether each candidate formed from vertices of R R R and of the outside graph is a PMC (Theorem 9.1).
Representing attachments by finitely many tests. To select the retained set R ⊆ V ( H ) R \subseteq V(H) R ⊆ V ( H ) when H H H is ( q , k ) (q,k) ( q , k ) -unbreakable, we must ensure that R R R captures at least one witness Ω ∩ V ( H ) \Omega\cap V(H) Ω ∩ V ( H ) for every outside graph J J J and every feasible intersection X = Ω ∩ V ( J ) X=\Omega\cap V(J) X = Ω ∩ V ( J ) of size at most k k k . In Lemma 10.2, we show that once X ⊆ V ( J ) X \subseteq V(J) X ⊆ V ( J ) is fixed, the effect of J J J on candidates Ω \Omega Ω with Ω ∩ V ( J ) = X \Omega\cap V(J)=X Ω ∩ V ( J ) = X can be simulated by a small graph J X J_X J X on Z ∪ X Z \cup X Z ∪ X together with at most one excluded auxiliary vertex: specifically, J X J_X J X is formed from the torso Tor ( J , Z ∪ X ) \operatorname{Tor}(J,Z \cup X) Tor ( J , Z ∪ X ) by adding a single excluded vertex adjacent to X X X whenever J − ( Z ∪ X ) J-(Z \cup X) J − ( Z ∪ X ) contains a component whose neighborhood in J J J is exactly X X X . Thus any outside attachment J J J and selected set X X X of size at most k k k can be represented by a test graph T T T consisting of the boundary Z Z Z and at most k + 1 k+1 k + 1 additional vertices.
We choose R R R using a small collection of test-graphs that capture how a solution can interact with the rest of the graph. For each test, we apply our algorithm for constrained PMC search on unbreakable graphs to find one solution, if one exists, and retain the vertices of H H H used by that solution. We also keep the required vertices and the vertices through which H H H connects to the rest of the graph. Our construction yields a set R R R of size 2 O ( k 2 ) 2^{O(k^2)} 2 O ( k 2 ) with the following guarantee: whenever attaching an outside graph to H H H admits a solution, at least one such solution uses only vertices of R R R within H H H (Theorem 10.1 ).
Reducing a general graph. The construction described above gives a small replacement for an unbreakable graph. To handle a general graph, we use a procedure of Chitnis et al. [4 ] , in the form given by Golovach et al. [7 ] , that either certifies the required unbreakability condition or divides the graph into two smaller pieces that meet in at most k k k vertices. In the latter case, we first reduce one piece, applying the same process within it if necessary. Once we obtain a small replacement for that piece, we substitute the piece with this small replacement and continue reducing the resulting graph.
The pieces are chosen large enough that each substitution decreases the number of vertices. We prove that only O ( n ) O(n) O ( n ) applications of this reduction are needed, and that the entire input can be replaced by a graph with 2 O ( k 2 ) 2^{O(k^2)} 2 O ( k 2 ) vertices. We then search this small graph directly for existence of the constrained PMC. Each replacement preserves the existence of a constrained solution. Moreover, auxiliary vertices cannot be selected, and our preservation guarantees ensure that every returned solution is a valid constrained PMC of the original graph.
From constrained search to enumeration. With Extend in hand, we enumerate all constrained PMCs of size at most k k k via the standard Lawler–Murty partitioning scheme [18 , 19 ] . To avoid an extra factor of n n n in the branching factor (and thus in the delay), we rely on the basic property that no PMC properly contains another. Indeed, if A ⊊ B A \subsetneq B A ⊊ B were both PMCs of G G G , any vertex v ∈ B ∖ A v \in B \setminus A v ∈ B ∖ A would lie in some connected component D D D of G − A G-A G − A . Because A A A is a PMC, D D D cannot be full for A A A , so some vertex u ∈ A u \in A u ∈ A has no neighbor in D D D . Every v , u v,u v , u -path in G G G must therefore intersect A A A before reaching u u u , which means every v , u v,u v , u -path contains an internal vertex in A ⊊ B A \subsetneq B A ⊊ B , which contradicts the pairwise connection property for B B B (Lemma 2.1 ).
Given a solution Q ∈ PMC k ( G , I , O ) Q \in\operatorname{PMC}_k(G,I,O) Q ∈ PMC k ( G , I , O ) returned by Extend, let Q ∖ I = { x 1 , … , x t } Q \setminus I = \{x_1,\ldots,x_t\} Q ∖ I = { x 1 , … , x t } , where t ≤ k t \le k t ≤ k . Since no other PMC in PMC k ( G , I , O ) \operatorname{PMC}_k(G,I,O) PMC k ( G , I , O ) can contain Q Q Q , every remaining solution must exclude at least one vertex of Q ∖ I Q \setminus I Q ∖ I . Grouping remaining solutions by the first index j ∈ { 1 , … , t } j \in\{1,\ldots,t\} j ∈ { 1 , … , t } such that x j x_j x j is excluded partitions PMC k ( G , I , O ) ∖ { Q } \operatorname{PMC}_k(G,I,O) \setminus\{Q\} PMC k ( G , I , O ) ∖ { Q } into t t t disjoint subproblems defined by the constraint pairs
I j = I ∪ { x 1 , … , x j − 1 } , O j = O ∪ { x j } . I_j = I \cup\{x_1,\ldots,x_{j-1}\}, \qquad O_j = O \cup\{x_j\}. I j = I ∪ { x 1 , … , x j − 1 } , O j = O ∪ { x j } .
We maintain a stack of active subproblems, each paired with a witness solution already computed by Extend. After one initial call to Extend ( G , k , I , O ) \operatorname{Extend}(G,k,I,O) Extend ( G , k , I , O ) , each step pops a pair ( ( I ′ , O ′ ) , Q ) ((I',O'),Q) (( I ′ , O ′ ) , Q ) from the stack, outputs Q Q Q , calls Extend ( G , k , I j ′ , O j ′ ) \operatorname{Extend}(G,k,I'_j,O'_j) Extend ( G , k , I j ′ , O j ′ ) for each j ∈ { 1 , … , ∣ Q ∖ I ′ ∣ } j \in\{1,\ldots,|Q \setminus I'|\} j ∈ { 1 , … , ∣ Q ∖ I ′ ∣ } , and pushes those subproblems that return a witness. Because at most k k k calls to Extend are made between consecutive outputs and each child increments ∣ I ′ ∪ O ′ ∣ |I' \cup O'| ∣ I ′ ∪ O ′ ∣ , the enumeration outputs every member of PMC k ( G , I , O ) \operatorname{PMC}_k(G,I,O) PMC k ( G , I , O ) without repetition and with delay k ⋅ 2 O ( k 3 ) n 4 log n = 2 O ( k 3 ) n 4 log n k \cdot2^{O(k^3)}n^4 \log n = 2^{O(k^3)}n^4 \log n k ⋅ 2 O ( k 3 ) n 4 log n = 2 O ( k 3 ) n 4 log n . This establishes Theorem 1.1 .
Organization. The rest of this paper is organized as follows. After introducing notation and preliminary definitions in Section 2, we present and analyze the constrained search algorithm Local for ( q , k ) (q,k) ( q , k ) -unbreakable graphs in Sections 3–6, and briefly discuss the role of the unbreakability threshold q q q in Section 7. Section 8 outlines our two-step piece-replacement strategy for breakable graphs. We then establish the torso-compression step for a fixed retained set in Section 9, show how to compute the retained set via bounded test graphs in Section 10, and combine these components into the general recursive reduction in Section 11.
Preliminaries
Graphs, paths, and neighborhoods. All graphs considered in this paper are finite, simple, and undirected. For a graph G G G , we denote its vertex and edge sets by V ( G ) V(G) V ( G ) and E ( G ) E(G) E ( G ) , respectively, and write n = ∣ V ( G ) ∣ n = |V(G)| n = ∣ V ( G ) ∣ when G G G is clear from context. We write either u v uv uv or ( u , v ) (u,v) ( u , v ) for an undirected edge with endpoints u u u and v v v . For a vertex subset A ⊆ V ( G ) A \subseteq V(G) A ⊆ V ( G ) , G [ A ] G[A] G [ A ] denotes the subgraph of G G G induced by A A A , with V ( G [ A ] ) = A V(G[A]) = A V ( G [ A ]) = A and E ( G [ A ] ) = { u v ∈ E ( G ) : u , v ∈ A } E(G[A]) = \{uv \in E(G) : u,v \in A\} E ( G [ A ]) = { uv ∈ E ( G ) : u , v ∈ A } , and G − A = G [ V ( G ) ∖ A ] G-A = G[V(G) \setminus A] G − A = G [ V ( G ) ∖ A ] denotes the subgraph obtained by deleting A A A .
A path is a sequence of distinct vertices in which consecutive vertices are adjacent; an s , t s,t s , t -path is a path with endpoints s s s and t t t , and its internal vertices are all vertices on the path other than s s s and t t t . A walk is a sequence of adjacent vertices in which vertices may repeat; shortcutting repeated vertices in any s , t s,t s , t -walk yields an s , t s,t s , t -path whose vertex set is contained in that of the walk. A cycle is a closed sequence of at least three distinct vertices in which consecutive vertices (including the last and first) are adjacent. A chord of a cycle is an edge joining two nonconsecutive vertices of the cycle, and an induced (or chordless ) cycle is a cycle with no chords.
For a vertex v ∈ V ( G ) v \in V(G) v ∈ V ( G ) , let N G ( v ) = { u ∈ V ( G ) : u v ∈ E ( G ) } N_G(v) = \{u \in V(G) : uv \in E(G)\} N G ( v ) = { u ∈ V ( G ) : uv ∈ E ( G )} denote its open neighborhood. For a subset A ⊆ V ( G ) A \subseteq V(G) A ⊆ V ( G ) , its external neighborhood is
N G ( A ) = ( ⋃ a ∈ A N G ( a ) ) ∖ A . N_G(A) = \left(\bigcup_{a \in A} N_G(a)\right) \setminus A. N G ( A ) = ( a ∈ A ⋃ N G ( a ) ) ∖ A .
A graph is connected if it contains a path between every pair of its vertices, and a nonempty subset C ⊆ V ( G ) C \subseteq V(G) C ⊆ V ( G ) is connected if G [ C ] G[C] G [ C ] is connected. A connected component (or simply component ) of G G G is a maximal connected subset of V ( G ) V(G) V ( G ) . For A ⊆ V ( G ) A \subseteq V(G) A ⊆ V ( G ) and v ∈ V ( G ) ∖ A v \in V(G)\setminus A v ∈ V ( G ) ∖ A , we denote by C v ( G − A ) C_v(G-A) C v ( G − A ) the connected component of G − A G-A G − A that contains v v v . A component C C C of G − A G-A G − A is called a full component of A A A (or *full with respect to A A A ) if N G ( C ) = A N_G(C)=A N G ( C ) = A .
Potential maximal cliques. A clique is a set of pairwise adjacent vertices, and it is maximal if it is not a proper subset of another clique. A graph is chordal if it contains no induced cycle of length four or more. A triangulation of G G G is a chordal graph on V ( G ) V(G) V ( G ) whose edge set contains E ( G ) E(G) E ( G ) , and it is minimal if no proper subset of the added edges produces a chordal graph. A nonempty subset Ω ⊆ V ( G ) \Omega\subseteq V(G) Ω ⊆ V ( G ) is a potential maximal clique (PMC) of G G G if Ω \Omega Ω is a maximal clique in at least one minimal triangulation of G G G . We denote the set of all PMCs of G G G by PMC ( G ) \operatorname{PMC}(G) PMC ( G ) . Our algorithms rely on the following characterization due to Bouchitté and Todinca.
Lemma 2.1 ([1 Theorem 3.15] ,[2 Theorem 2.1] ). A nonempty set Ω ⊆ V ( G ) \Omega\subseteq V(G) Ω ⊆ V ( G ) is a PMC of G G G if and only if:
no component of G − Ω G-\Omega G − Ω is full with respect to Ω \Omega Ω ;
for every two nonadjacent vertices u , v ∈ Ω u,v \in\Omega u , v ∈ Ω , some connected component D D D of G − Ω G-\Omega G − Ω satisfies u , v ∈ N G ( D ) u,v \in N_G(D) u , v ∈ N G ( D ) .
We refer to condition 2 of Lemma 2.1 as the pair condition . In particular, the pair condition implies that any two distinct vertices u , v ∈ Ω u,v \in\Omega u , v ∈ Ω are connected in G G G by a u , v u,v u , v -path whose internal vertices lie entirely outside Ω \Omega Ω : if u v ∈ E ( G ) uv \in E(G) uv ∈ E ( G ) , the edge u v uv uv itself is such a path; otherwise, u u u and v v v can be connected through the component D D D of G − Ω G-\Omega G − Ω supplied by the pair condition.
Inclusion and exclusion constraints. Given sets of required vertices I ⊆ V ( G ) I \subseteq V(G) I ⊆ V ( G ) and excluded vertices O ⊆ V ( G ) O \subseteq V(G) O ⊆ V ( G ) , we define
PMC ( G , I , O ) = { Ω ∈ PMC ( G ) : I ⊆ Ω , Ω ∩ O = ∅ } , \operatorname{PMC}(G,I,O) = \{\Omega\in\operatorname{PMC}(G) : I \subseteq\Omega,\ \Omega\cap O = \varnothing\}, PMC ( G , I , O ) = { Ω ∈ PMC ( G ) : I ⊆ Ω , Ω ∩ O = ∅ } ,
and for an integer k ≥ 0 k \ge0 k ≥ 0 ,
PMC k ( G , I , O ) = { Ω ∈ PMC ( G , I , O ) : ∣ Ω ∣ ≤ k } . \operatorname{PMC}_k(G,I,O) = \{\Omega\in\operatorname{PMC}(G,I,O) : |\Omega| \le k\}. PMC k ( G , I , O ) = { Ω ∈ PMC ( G , I , O ) : ∣Ω∣ ≤ k } .
The constrained search problem Extend ( G , k , I , O ) \operatorname{Extend}(G,k,I,O) Extend ( G , k , I , O ) takes ( G , k , I , O ) (G,k,I,O) ( G , k , I , O ) as input and asks to return a member Ω ∈ PMC k ( G , I , O ) \Omega\in\operatorname{PMC}_k(G,I,O) Ω ∈ PMC k ( G , I , O ) (which we call a solution or witness ), or output No if PMC k ( G , I , O ) = ∅ \operatorname{PMC}_k(G,I,O)=\varnothing PMC k ( G , I , O ) = ∅ . Note that PMC k ( G , I , O ) = ∅ \operatorname{PMC}_k(G,I,O)=\varnothing PMC k ( G , I , O ) = ∅ whenever I ∩ O ≠ ∅ I \cap O \ne\varnothing I ∩ O = ∅ , ∣ I ∣ > k |I| > k ∣ I ∣ > k , k = 0 k=0 k = 0 , or V ( G ) = ∅ V(G)=\varnothing V ( G ) = ∅ .
Minimal separators. For distinct vertices s , t ∈ V ( G ) s,t \in V(G) s , t ∈ V ( G ) , a subset X ⊆ V ( G ) ∖ { s , t } X \subseteq V(G)\setminus\{s,t\} X ⊆ V ( G ) ∖ { s , t } is an s , t s,t s , t -separator if s s s and t t t belong to distinct connected components of G − X G-X G − X , and it is a minimal s , t s,t s , t -separator if no proper subset of X X X separates s s s from t t t . A subset X ⊆ V ( G ) X \subseteq V(G) X ⊆ V ( G ) is a minimal separator of G G G if it is a minimal s , t s,t s , t -separator for some pair s , t ∈ V ( G ) s,t \in V(G) s , t ∈ V ( G ) . We denote by S ( G ) \mathcal{S}(G) S ( G ) the set of all minimal separators of G G G , and by S k ( G ) \mathcal{S}_k(G) S k ( G ) those of cardinality at most k k k .
Lemma 2.2. An s , t s,t s , t -separator X X X is minimal if and only if C s ( G − X ) C_s(G-X) C s ( G − X ) and C t ( G − X ) C_t(G-X) C t ( G − X ) are full components with respect to X X X ; that is,
N G ( C s ( G − X ) ) = X = N G ( C t ( G − X ) ) . N_G(C_s(G-X)) = X = N_G(C_t(G-X)). N G ( C s ( G − X )) = X = N G ( C t ( G − X )) . Proof. If X X X is a minimal s , t s,t s , t -separator, every x ∈ X x \in X x ∈ X must have a neighbor in both C s ( G − X ) C_s(G-X) C s ( G − X ) and C t ( G − X ) C_t(G-X) C t ( G − X ) ; otherwise, X ∖ { x } X \setminus\{x\} X ∖ { x } would still separate s s s from t t t . Conversely, if both C s ( G − X ) C_s(G-X) C s ( G − X ) and C t ( G − X ) C_t(G-X) C t ( G − X ) are full with respect to X X X , then putting any x ∈ X x \in X x ∈ X back into G − X G-X G − X connects the two components via x x x , so no proper subset of X X X is an s , t s,t s , t -separator.
By Lemma 2.2, a vertex set X X X is a minimal separator of G G G if and only if G − X G-X G − X contains at least two distinct full components with respect to X X X .
Separations and unbreakability. A separation of G G G is a triple ( L , Z , U ) (L,Z,U) ( L , Z , U ) of pairwise disjoint vertex subsets such that L ∪ Z ∪ U = V ( G ) L \cup Z \cup U = V(G) L ∪ Z ∪ U = V ( G ) and no edge of G G G has one endpoint in L L L and the other in U U U . The sets L L L and U U U are the sides of the separation (neither of which is required to be connected), Z Z Z is the separator , and ∣ Z ∣ |Z| ∣ Z ∣ is the order of the separation. For integers q , k ≥ 0 q,k \ge0 q , k ≥ 0 , a graph G G G is ( q , k ) (q,k) ( q , k ) -unbreakable if every separation ( L , Z , U ) (L,Z,U) ( L , Z , U ) of G G G of order ∣ Z ∣ ≤ k |Z| \le k ∣ Z ∣ ≤ k satisfies ∣ L ∣ ≤ q |L| \le q ∣ L ∣ ≤ q or ∣ U ∣ ≤ q |U| \le q ∣ U ∣ ≤ q ; otherwise, G G G is ( q , k ) (q,k) ( q , k ) -breakable .
Attaching graphs. For two graphs H H H and J J J whose vertex sets intersect in Z = V ( H ) ∩ V ( J ) Z = V(H) \cap V(J) Z = V ( H ) ∩ V ( J ) , we denote by H ⊕ Z J H \oplus_Z J H ⊕ Z J the union graph with
V ( H ⊕ Z J ) = V ( H ) ∪ V ( J ) , E ( H ⊕ Z J ) = E ( H ) ∪ E ( J ) . V(H \oplus_Z J) = V(H) \cup V(J), \qquad E(H \oplus_Z J) = E(H) \cup E(J). V ( H ⊕ Z J ) = V ( H ) ∪ V ( J ) , E ( H ⊕ Z J ) = E ( H ) ∪ E ( J ) .
We say that J J J is attached to H H H along the boundary Z Z Z , and refer to H H H as a piece of H ⊕ Z J H \oplus_Z J H ⊕ Z J . Note that H [ Z ] H[Z] H [ Z ] and J [ Z ] J[Z] J [ Z ] need not induce the same edges on Z Z Z ; the attachment H ⊕ Z J H \oplus_Z J H ⊕ Z J inherits every edge on Z Z Z present in either graph. In particular, any separation ( L , Z , U ) (L,Z,U) ( L , Z , U ) of G G G decomposes G G G as
G = G [ L ∪ Z ] ⊕ Z G [ U ∪ Z ] . G = G[L \cup Z] \oplus_Z G[U \cup Z]. G = G [ L ∪ Z ] ⊕ Z G [ U ∪ Z ] .
When H H H and J J J carry inclusion and exclusion constraint pairs ( I H , O H ) (I_H,O_H) ( I H , O H ) and ( I J , O J ) (I_J,O_J) ( I J , O J ) , respectively, the combined instance on H ⊕ Z J H \oplus_Z J H ⊕ Z J uses constraints ( I H ∪ I J , O H ∪ O J ) (I_H \cup I_J,O_H \cup O_J) ( I H ∪ I J , O H ∪ O J ) .
Whenever we replace a piece H H H with a compressed graph K K K , retained vertices of H H H keep their original identifiers, whereas newly added auxiliary vertices receive fresh identifiers disjoint from all previously used vertex names. In our correctness proofs for arbitrary outside attachments J J J , we may assume without loss of generality that the vertices of V ( J ) ∖ Z V(J) \setminus Z V ( J ) ∖ Z are renamed away from any auxiliary vertices introduced during intermediate recursive steps: because J J J meets H H H and K K K solely at Z Z Z , such a bijection on V ( J ) ∖ Z V(J) \setminus Z V ( J ) ∖ Z preserves all edges, constraints, and PMCs.
Torsos. Given a graph H H H and a subset R ⊆ V ( H ) R \subseteq V(H) R ⊆ V ( H ) , the torso of H H H on R R R , denoted Tor ( H , R ) \operatorname{Tor}(H,R) Tor ( H , R ) , is the graph on vertex set R R R obtained from H [ R ] H[R] H [ R ] by turning N H ( C ) N_H(C) N H ( C ) into a clique for every connected component C C C of H − R H-R H − R [6 Section 2.3, Definition 2.5] . Equivalently, two distinct vertices u , v ∈ R u,v \in R u , v ∈ R are adjacent in Tor ( H , R ) \operatorname{Tor}(H,R) Tor ( H , R ) if and only if H H H contains a u , v u,v u , v -path whose internal vertices all belong to V ( H ) ∖ R V(H) \setminus R V ( H ) ∖ R .
Algorithmic conventions. A problem parameterized by p p p is fixed-parameter tractable (FPT) if it can be solved in time f ( p ) ( n + 1 ) c f(p)(n+1)^c f ( p ) ( n + 1 ) c for a computable function f f f and a constant c c c independent of p p p . An enumeration algorithm lists a target family without repetition and operates with fixed-parameter delay f ( p ) ( n + 1 ) c f(p)(n+1)^c f ( p ) ( n + 1 ) c if the time before the first output, between any two consecutive outputs, and after the final output (or the entire running time when the output family is empty) is at most f ( p ) ( n + 1 ) c f(p)(n+1)^c f ( p ) ( n + 1 ) c . We represent graphs by adjacency matrices and vertex subsets by bit vectors; all logarithms are base two.
Constrained search on unbreakable graphs
In this section, we assume that the input graph G G G is ( q , k ) (q,k) ( q , k ) -unbreakable for given integers q , k ≥ 1 q,k \ge1 q , k ≥ 1 . Given constraint sets I , O ⊆ V ( G ) I,O \subseteq V(G) I , O ⊆ V ( G ) , our goal is to find a PMC Ω \Omega Ω of G G G satisfying
1 ≤ ∣ Ω ∣ ≤ k , I ⊆ Ω , Ω ∩ O = ∅ , (1) 1 \le|\Omega| \le k,\qquad I \subseteq\Omega,\qquad\Omega\cap O = \varnothing, \tag*{(1)} 1 ≤ ∣Ω∣ ≤ k , I ⊆ Ω , Ω ∩ O = ∅ , (1)
or determine that no such PMC exists.
Theorem 3.1. Let q , k q,k q , k be strictly positive integers, and let G G G be a ( q , k ) (q,k) ( q , k ) -unbreakable graph. Let I , O ⊆ V ( G ) I,O \subseteq V(G) I , O ⊆ V ( G ) . There is a deterministic algorithm that returns a PMC Ω ∈ PMC k ( G , I , O ) \Omega\in\operatorname{PMC}_k(G,I,O) Ω ∈ PMC k ( G , I , O ) , or determines that this set is empty, in time
2 O ( k log ( 2 + q / k ) ) ( n + 1 ) 3 . (2) 2^{O(k\log(2+q/k))}(n+1)^3. \tag*{(2)} 2 O ( k l o g ( 2 + q / k )) ( n + 1 ) 3 . (2) The algorithm is fixed-parameter tractable in ( q , k ) (q,k) ( q , k ) , and in k k k whenever q q q is bounded by a computable function of k k k . In particular, q = O ( k ) q=O(k) q = O ( k ) gives time 2 O ( k ) ( n + 1 ) 3 2^{O(k)}(n+1)^3 2 O ( k ) ( n + 1 ) 3 .
The key structural property underlying Theorem 3.1 is that whenever n > 3 q + k n>3q+k n > 3 q + k , every PMC Ω \Omega Ω of G G G of size at most k k k satisfies S ⊊ Ω ⊆ C ∪ S S\subsetneq\Omega\subseteq C\cup S S ⊊ Ω ⊆ C ∪ S , where:
S ∈ S k − 1 ( G ) S\in\mathcal{S}_{k-1}(G) S ∈ S k − 1 ( G ) is a minimal separator of G G G of size at most k − 1 k-1 k − 1 ;
C C C is a full connected component of G − S G-S G − S (so N G ( C ) = S N_G(C)=S N G ( C ) = S ); and
∣ C ∣ ≤ q |C|\le q ∣ C ∣ ≤ q .
In other words, removing the minimal separator S ⊊ Ω S\subsetneq\Omega S ⊊ Ω isolates the remaining vertices Ω ∖ S \Omega\setminus S Ω ∖ S of the PMC inside a single connected component C C C of size at most q q q . Once such a pair ( C , S ) (C,S) ( C , S ) is identified, all vertices of S S S must belong to Ω \Omega Ω , and we need only guess the nonempty remainder X = Ω ∖ S ⊆ C X=\Omega\setminus S\subseteq C X = Ω ∖ S ⊆ C of size at most k − ∣ S ∣ k-|S| k − ∣ S ∣ .
To generate all candidate pairs ( C , S ) (C,S) ( C , S ) , it suffices to enumerate, for each root vertex s ∈ V ( G ) s\in V(G) s ∈ V ( G ) , all connected subsets C C C containing s s s such that ∣ C ∣ ≤ q |C|\le q ∣ C ∣ ≤ q and ∣ N G ( C ) ∣ ≤ k − 1 |N_G(C)|\le k-1 ∣ N G ( C ) ∣ ≤ k − 1 . Starting from { s } \{s\} { s } , our branching procedure repeatedly picks the first undecided neighbor of the current connected set and branches on whether to include it in C C C (at most q − 1 q-1 q − 1 times) or exclude it into N G ( C ) N_G(C) N G ( C ) (at most k − 1 k-1 k − 1 times). Although not every enumerated pair ( C , N G ( C ) ) (C,N_G(C)) ( C , N G ( C )) has N G ( C ) N_G(C) N G ( C ) as a minimal separator, the structural property guarantees that every PMC of size at most k k k is generated from at least one enumerated pair. Each resulting candidate Ω = S ∪ X \Omega=S\cup X Ω = S ∪ X is then tested directly against Lemma 2.1 and (1).
Algorithm 1 (Local) formalizes this search. The subroutine Regions( G , s , q , ℓ ) (G,s,q,\ell) ( G , s , q , ℓ ) , presented in Section 5, outputs all pairs ( C , N G ( C ) ) (C,N_G(C)) ( C , N G ( C )) such that s ∈ C s\in C s ∈ C , G [ C ] G[C] G [ C ] is connected, ∣ C ∣ ≤ q |C|\le q ∣ C ∣ ≤ q , and ∣ N G ( C ) ∣ ≤ ℓ |N_G(C)|\le\ell ∣ N G ( C ) ∣ ≤ ℓ . The subroutine Check( G , Ω , k , I , O ) (G,\Omega,k,I,O) ( G , Ω , k , I , O ) , described in Section 6.1, tests whether Ω \Omega Ω is a PMC of G G G satisfying (1).
Algorithm 1 Local: one constrained PMC in a $(q,k)$-unbreakable graph
1: procedure Local($G,k,I,O,q$)
2: $n \leftarrow |V(G)|$
3: if $n=0$ or $k \le 0$ or $I \cap O \ne \emptyset$ or $|I|>k$ then
4: return No
5: end if
6: if $n \le 3q+k$ then
7: for each nonempty $\Omega \subseteq V(G)$ with $|\Omega| \le k$ do
8: if Check($G,\Omega,k,I,O$) = Yes then
9: return $\Omega$
10: end if
11: end for
12: return No
13: end if
14: for each $s \in V(G)$ do
15: for each $(C,S)$ emitted by Regions($G,s,q,k-1$) do
16: for each nonempty $X \subseteq C$ with $|X| \le k-|S|$ do
17: $\Omega \leftarrow S \cup X$
18: if Check($G,\Omega,k,I,O$) = Yes then
19: return $\Omega$
20: end if
21: end for
22: end for
23: end for
24: return No
25: end procedure
We establish the correctness of Local in Section 4, present and analyze Regions in Section 5, and complete the runtime analysis of Theorem 3.1 in Section 6.
Correctness of Local
We first prove the structural localization lemma for ( q , k ) (q,k) ( q , k ) -unbreakable graphs with n > 3 q + k n > 3q+k n > 3 q + k , and then deduce the correctness of Algorithm 1 assuming that Regions and Check meet their specifications.
Lemma 4.1. Let G G G be ( q , k ) (q,k) ( q , k ) -unbreakable, with q , k ≥ 1 q,k \ge1 q , k ≥ 1 and n > 3 q + k n > 3q+k n > 3 q + k . For every PMC Ω \Omega Ω of size at most k k k , there is a connected set C C C such that, with S = N G ( C ) S=N_G(C) S = N G ( C ) ,
∣ C ∣ ≤ q , ∣ S ∣ ≤ k − 1 , S ⊊ Ω ⊆ C ∪ S . (3) |C| \le q,\qquad|S| \le k-1,\qquad S \subsetneq\Omega\subseteq C \cup S. \tag*{(3)} ∣ C ∣ ≤ q , ∣ S ∣ ≤ k − 1 , S ⊊ Ω ⊆ C ∪ S . (3) Proof. Since ∣ Ω ∣ ≤ k |\Omega| \le k ∣Ω∣ ≤ k and n > 3 q + k n > 3q+k n > 3 q + k , the graph G − Ω G-\Omega G − Ω contains more than 3 q 3q 3 q vertices. We claim that G − Ω G-\Omega G − Ω has a connected component D D D of size greater than q q q . Suppose, by way of contradiction, that every component of G − Ω G-\Omega G − Ω has at most q q q vertices. Accumulating components of G − Ω G-\Omega G − Ω one by one until their union first exceeds q q q yields a union of components of size at most 2 q 2q 2 q , and the remaining components of G − Ω G-\Omega G − Ω form a disjoint union of size greater than 3 q − 2 q = q 3q-2q=q 3 q − 2 q = q . Since Ω \Omega Ω separates these two unions and ∣ Ω ∣ ≤ k |\Omega| \le k ∣Ω∣ ≤ k , this contradicts the assumption that G G G is ( q , k ) (q,k) ( q , k ) -unbreakable.
Let S = N G ( D ) S=N_G(D) S = N G ( D ) . Because D D D is a connected component of G − Ω G-\Omega G − Ω , we have S ⊆ Ω S \subseteq\Omega S ⊆ Ω , and by Lemma 2.1(1), D D D cannot be full with respect to Ω \Omega Ω . Hence S ⊊ Ω S \subsetneq\Omega S ⊊ Ω , so Ω ∖ S ≠ ∅ \Omega\setminus S \ne\emptyset Ω ∖ S = ∅ . Pick any vertex s ∈ Ω ∖ S s \in\Omega\setminus S s ∈ Ω ∖ S and let C : = C s ( G − S ) C \mathrel{\mathop:}= C_s(G-S) C : = C s ( G − S ) be the connected component of G − S G-S G − S containing $s.
We first show that Ω \ S ⊆ C \Omega\backslash S \subseteq C Ω\ S ⊆ C . Take any u ∈ Ω \ ( S ∪ { s } ) u \in\Omega\backslash(S \cup\{s\}) u ∈ Ω\ ( S ∪ { s }) . By the pair condition of Lemma 2.1 , G G G contains an s , u s,u s , u -path whose internal vertices lie outside Ω \Omega Ω . Neither the endpoints s , u s,u s , u nor the internal vertices of this path belong to S ⊊ Ω S \subsetneq\Omega S ⊊ Ω , so the entire s , u s,u s , u -path resides in G − S G-S G − S . Consequently, u ∈ C s ( G − S ) = C u \in C_s(G-S) = C u ∈ C s ( G − S ) = C , and thus Ω \ S ⊆ C \Omega\backslash S \subseteq C Ω\ S ⊆ C , which together with S ⊊ Ω S \subsetneq\Omega S ⊊ Ω yields S ⊊ Ω ⊆ C ∪ S S \subsetneq\Omega\subseteq C \cup S S ⊊ Ω ⊆ C ∪ S .
We next show that N G ( C ) = S N_G(C) = S N G ( C ) = S . Since C C C is a connected component of G − S G-S G − S , we have N G ( C ) ⊆ S N_G(C) \subseteq S N G ( C ) ⊆ S . For the reverse inclusion, take any u ∈ S ⊊ Ω u \in S \subsetneq\Omega u ∈ S ⊊ Ω . By the pair condition of Lemma 2.1 , there is an s , u s,u s , u -path in G G G whose internal vertices avoid Ω \Omega Ω and hence avoid S S S . Removing u u u from this path leaves a connected path in G − S G-S G − S starting at s s s , so the predecessor of u u u along the path belongs to C s ( G − S ) = C C_s(G-S) = C C s ( G − S ) = C . Thus u ∈ N G ( C ) u \in N_G(C) u ∈ N G ( C ) , which establishes S ⊆ N G ( C ) S \subseteq N_G(C) S ⊆ N G ( C ) and hence N G ( C ) = S N_G(C) = S N G ( C ) = S .
Finally, observe that D D D is also a connected component of G − S G-S G − S with N G ( D ) = S N_G(D) = S N G ( D ) = S . Because s ∈ C ∩ Ω s \in C \cap\Omega s ∈ C ∩ Ω and D ∩ Ω = ∅ D \cap\Omega= \varnothing D ∩ Ω = ∅ , the components C C C and D D D are disjoint, so D ⊆ V ( G ) \ ( C ∪ S ) D \subseteq V(G)\backslash(C \cup S) D ⊆ V ( G ) \ ( C ∪ S ) . In the separation
( C , S , V ( G ) \ ( C ∪ S ) ) (C,S,V(G)\backslash(C \cup S)) ( C , S , V ( G ) \ ( C ∪ S ))
the separator S ⊊ Ω S \subsetneq\Omega S ⊊ Ω has size at most ∣ Ω ∣ − 1 ≤ k − 1 |\Omega| - 1 \leq k - 1 ∣Ω∣ − 1 ≤ k − 1 , and the side V ( G ) \ ( C ∪ S ) V(G)\backslash(C \cup S) V ( G ) \ ( C ∪ S ) contains D D D and thus has more than q q q vertices. By the ( q , k ) (q,k) ( q , k ) -unbreakability of G G G , we conclude that ∣ C ∣ ≤ q |C| \leq q ∣ C ∣ ≤ q . This completes the proof. □
As a simple illustration of Lemma 4.1 , consider a graph obtained by attaching a degree-one vertex s s s to a vertex x x x of a clique on at least six vertices. This graph is ( 1 , 2 ) (1,2) ( 1 , 2 ) -unbreakable, as deleting at most two vertices leaves the remaining clique connected and can isolate at most the leaf s s s . For the PMC Ω = { s , x } \Omega= \{s,x\} Ω = { s , x } , Lemma 4.1 identifies the connected region C = { s } C = \{s\} C = { s } of size 1 and its external neighborhood S = N G ( C ) = { x } S = N_G(C) = \{x\} S = N G ( C ) = { x } , regardless of how large the clique is.
Lemma 4.2. Assuming that Regions satisfies Lemma 5.1, for every ( q , k ) (q,k) ( q , k ) -unbreakable graph G G G with q , k ≥ 1 q,k \geq1 q , k ≥ 1 and sets I , O ⊆ V ( G ) I,O \subseteq V(G) I , O ⊆ V ( G ) , Algorithm 1 terminates and returns a member of PMC k ( G , I , O ) \operatorname{PMC}_k(G,I,O) PMC k ( G , I , O ) if this family is nonempty, and returns No otherwise.
Proof. If n = 0 n = 0 n = 0 , k ≤ 0 k \leq0 k ≤ 0 , I ∩ O ≠ ∅ I \cap O \neq\varnothing I ∩ O = ∅ , or ∣ I ∣ > k |I| > k ∣ I ∣ > k , then PMC k ( G , I , O ) = ∅ \operatorname{PMC}_k(G,I,O) = \varnothing PMC k ( G , I , O ) = ∅ and Algorithm 1 correctly returns No in line 4. In addition, every set Ω \Omega Ω returned by the algorithm passes Check( G , Ω , k , I , O ) (G,\Omega,k,I,O) ( G , Ω , k , I , O ) , which verifies both Lemma 2.1 and (1); hence any returned set belongs to PMC k ( G , I , O ) \operatorname{PMC}_k(G,I,O) PMC k ( G , I , O ) .
Conversely, suppose there exists Ω ∈ PMC k ( G , I , O ) \Omega\in\operatorname{PMC}_k(G,I,O) Ω ∈ PMC k ( G , I , O ) . If n ≤ 3 q + k n \leq3q + k n ≤ 3 q + k , the exhaustive loop in lines 7–11 inspects all nonempty subsets of V ( G ) V(G) V ( G ) of size at most k k k and therefore finds a valid solution. If n > 3 q + k n > 3q + k n > 3 q + k , Lemma 4.1 guarantees a connected set C C C with ∣ C ∣ ≤ q |C| \leq q ∣ C ∣ ≤ q and S = N G ( C ) S = N_G(C) S = N G ( C ) such that ∣ S ∣ ≤ k − 1 |S| \leq k - 1 ∣ S ∣ ≤ k − 1 and S ⊆ Ω ⊆ C ∪ S S \subseteq\Omega\subseteq C \cup S S ⊆ Ω ⊆ C ∪ S . For any root s ∈ C s \in C s ∈ C , the call Regions( G , s , q , k − 1 ) (G,s,q,k-1) ( G , s , q , k − 1 ) outputs the pair ( C , S ) (C,S) ( C , S ) . Since X = Ω \ S X = \Omega\backslash S X = Ω\ S is a nonempty subset of C C C of size at most k − ∣ S ∣ k - |S| k − ∣ S ∣ , the inner loop in lines 16–21 examines S ∪ X = Ω S \cup X = \Omega S ∪ X = Ω . Thus Algorithm 1 is guaranteed to return a member of PMC k ( G , I , O ) \operatorname{PMC}_k(G,I,O) PMC k ( G , I , O ) whenever one exists. Termination follows immediately from the finiteness of the subset loops and the termination of Regions and Check. □
Enumerating the connected regions
Given a root vertex s ∈ V ( G ) s \in V(G) s ∈ V ( G ) , a fixed ordering of V ( G ) V(G) V ( G ) , and integers q ≥ 1 q \geq1 q ≥ 1 and ℓ ≥ 0 \ell\geq0 ℓ ≥ 0 , the procedure Regions( G , s , q , ℓ ) (G,s,q,\ell) ( G , s , q , ℓ ) (Algorithm 2) lists all pairs ( C , N G ( C ) ) (C,N_G(C)) ( C , N G ( C )) such that s ∈ C s \in C s ∈ C , G [ C ] G[C] G [ C ] is connected, ∣ C ∣ ≤ q |C| \leq q ∣ C ∣ ≤ q , and ∣ N G ( C ) ∣ ≤ ℓ |N_G(C)| \leq\ell ∣ N G ( C ) ∣ ≤ ℓ . Note that Algorithm 2 does not require G G G to be unbreakable.
Each recursive call Visit( P , D ) (P,D) ( P , D ) maintains a connected subset P ⊆ V ( G ) P \subseteq V(G) P ⊆ V ( G ) containing s s s and a subset D ⊆ N G ( P ) D \subseteq N_G(P) D ⊆ N G ( P ) of neighbors permanently excluded from the region being grown. Initially, P = { s } P = \{s\} P = { s } and D = ∅ D = \varnothing D = ∅ . Whenever N G ( P ) \ D N_G(P)\backslash D N G ( P ) \ D is nonempty and neither size budget is exhausted (∣ P ∣ < q |P| < q ∣ P ∣ < q and ∣ D ∣ < ℓ |D| < \ell ∣ D ∣ < ℓ ), the procedure selects the first undecided neighbor v ∈ N G ( P ) ∖ D v \in N_G(P)\setminus D v ∈ N G ( P ) ∖ D and branches on either adding v v v to P P P (which preserves the connectivity of P P P ) or adding v v v to D D D .
If either budget is reached, no further branching is necessary: when ∣ P ∣ = q |P| = q ∣ P ∣ = q , no additional vertices can be added to P P P , so P P P itself is the only possible completion (valid if and only if ∣ N G ( P ) ∣ ≤ ℓ |N_G(P)| \le\ell ∣ N G ( P ) ∣ ≤ ℓ ); when ∣ D ∣ = ℓ |D| = \ell ∣ D ∣ = ℓ , no further neighbors can be excluded, so any valid completion must absorb all remaining reachable vertices of G − D G-D G − D and thus equal the connected component C s ( G − D ) C_s(G-D) C s ( G − D ) (valid if and only if ∣ C s ( G − D ) ∣ ≤ q |C_s(G-D)| \le q ∣ C s ( G − D ) ∣ ≤ q ). Handling these boundary cases directly allows us to bound the size of the entire recursion tree by a function of q q q and ℓ \ell ℓ .
Algorithm 2 Regions: connected sets with size at most q and neighborhood size at most ℓ.
1: procedure Regions(G, s, q, ℓ)
2: Fix an order of V(G)
3: Visit({s}, ∅)
4: end procedure
5: procedure Visit(P, D)
6: if N_G(P)\D = ∅ then Output (P, D); return
7: if |P| = q then
8: if |N_G(P)| ≤ ℓ then Output (P, N_G(P))
9: return
10: end if
11: if |D| = ℓ then
12: if |C_s(G−D)| ≤ q then Output (C_s(G−D), D)
13: return
14: end if
15: v ← the first vertex of N_G(P)\D
16: Visit(P ∪ {v}, D)
17: Visit(P, D ∪ {v})
18: end procedure
Lemma 5.1. For a fixed root s s s , Algorithm 2 emits exactly the pairs ( C , N G ( C ) ) (C, N_G(C)) ( C , N G ( C )) with s ∈ C s \in C s ∈ C , C C C connected, ∣ C ∣ ≤ q |C| \le q ∣ C ∣ ≤ q , and ∣ N G ( C ) ∣ ≤ ℓ |N_G(C)| \le\ell ∣ N G ( C ) ∣ ≤ ℓ , each once. It produces at most
B ( q , ℓ ) = ( q + ℓ − 1 ℓ ) (4) B(q,\ell) = \binom{q+\ell-1}{\ell} \tag*{(4)} B ( q , ℓ ) = ( ℓ q + ℓ − 1 ) (4) outputs and makes at most 2 B ( q , ℓ ) − 1 2B(q,\ell)-1 2 B ( q , ℓ ) − 1 recursive calls, running in total time O ( B ( q , ℓ ) ( n + 1 ) 2 ) O(B(q,\ell)(n+1)^2) O ( B ( q , ℓ ) ( n + 1 ) 2 ) .
Proof. By a straightforward induction on the recursion depth, every call Visit ( P , D ) \operatorname{Visit}(P,D) Visit ( P , D ) maintains the invariants that s ∈ P s \in P s ∈ P , G [ P ] G[P] G [ P ] is connected, P ∩ D = ∅ P \cap D = \varnothing P ∩ D = ∅ , D ⊆ N G ( P ) D \subseteq N_G(P) D ⊆ N G ( P ) , ∣ P ∣ ≤ q |P| \le q ∣ P ∣ ≤ q , and ∣ D ∣ ≤ ℓ |D| \le\ell ∣ D ∣ ≤ ℓ .
We first verify that every pair output by Visit ( P , D ) \operatorname{Visit}(P,D) Visit ( P , D ) is valid. If line 6 triggers (N G ( P ) ∖ D = ∅ N_G(P)\setminus D = \varnothing N G ( P ) ∖ D = ∅ ), the invariant D ⊆ N G ( P ) D \subseteq N_G(P) D ⊆ N G ( P ) implies N G ( P ) = D N_G(P) = D N G ( P ) = D , so ( P , D ) = ( P , N G ( P ) ) (P,D) = (P,N_G(P)) ( P , D ) = ( P , N G ( P )) satisfies ∣ P ∣ ≤ q |P| \le q ∣ P ∣ ≤ q and ∣ N G ( P ) ∣ ≤ ℓ |N_G(P)| \le\ell ∣ N G ( P ) ∣ ≤ ℓ . If line 8 triggers (∣ P ∣ = q |P| = q ∣ P ∣ = q ), the explicit check ∣ N G ( P ) ∣ ≤ ℓ |N_G(P)| \le\ell ∣ N G ( P ) ∣ ≤ ℓ ensures that ( P , N G ( P ) ) (P,N_G(P)) ( P , N G ( P )) is valid. If line 12 triggers (∣ D ∣ = ℓ |D| = \ell ∣ D ∣ = ℓ ), then because s ∈ P s \in P s ∈ P , G [ P ] G[P] G [ P ] is connected, and P ∩ D = ∅ P \cap D = \varnothing P ∩ D = ∅ , we have P ⊆ C s ( G − D ) P \subseteq C_s(G-D) P ⊆ C s ( G − D ) . Since D ⊆ N G ( P ) D \subseteq N_G(P) D ⊆ N G ( P ) , every vertex of D D D has a neighbor in P ⊆ C s ( G − D ) P \subseteq C_s(G-D) P ⊆ C s ( G − D ) , which combined with N G ( C s ( G − D ) ) ⊆ D N_G(C_s(G-D)) \subseteq D N G ( C s ( G − D )) ⊆ D gives N G ( C s ( G − D ) ) = D N_G(C_s(G-D)) = D N G ( C s ( G − D )) = D ; the check ∣ C s ( G − D ) ∣ ≤ q |C_s(G-D)| \le q ∣ C s ( G − D ) ∣ ≤ q then confirms that ( C s ( G − D ) , D ) (C_s(G-D),D) ( C s ( G − D ) , D ) is valid.
Conversely, let C ∗ C^* C ∗ be any connected subset of V ( G ) V(G) V ( G ) containing s s s with ∣ C ∗ ∣ ≤ q |C^*| \le q ∣ C ∗ ∣ ≤ q and ∣ N G ( C ∗ ) ∣ ≤ ℓ |N_G(C^*)| \le\ell ∣ N G ( C ∗ ) ∣ ≤ ℓ . We trace the unique root-to-leaf path in the recursion tree that follows line 16 when v ∈ C ∗ v \in C^* v ∈ C ∗ and line 17 when v ∉ C ∗ v \notin C^* v ∈ / C ∗ . Along this path, we inductively maintain P ⊆ C ∗ P \subseteq C^* P ⊆ C ∗ and D ⊆ N G ( C ∗ ) D \subseteq N_G(C^*) D ⊆ N G ( C ∗ ) , because every branched vertex v ∈ N G ( P ) ∖ D v \in N_G(P) \setminus D v ∈ N G ( P ) ∖ D either belongs to C ∗ C_* C ∗ or has a neighbor in P ⊆ C ∗ P \subseteq C_* P ⊆ C ∗ and thus belongs to N G ( C ∗ ) N_G(C_*) N G ( C ∗ ) . When this path reaches a leaf, one of the three stopping conditions holds: (i) if N G ( P ) ∖ D = ∅ N_G(P) \setminus D = \varnothing N G ( P ) ∖ D = ∅ , then N G ( P ) = D ⊆ N G ( C ∗ ) N_G(P) = D \subseteq N_G(C_*) N G ( P ) = D ⊆ N G ( C ∗ ) is disjoint from C ∗ C_* C ∗ , so the connectivity of G [ C ∗ ] G[C_*] G [ C ∗ ] forces P = C ∗ P = C_* P = C ∗ ; (ii) if ∣ P ∣ = q |P| = q ∣ P ∣ = q , then P ⊆ C ∗ P \subseteq C_* P ⊆ C ∗ and ∣ C ∗ ∣ ≤ q |C_*| \le q ∣ C ∗ ∣ ≤ q force P = C ∗ P = C_* P = C ∗ ; (iii) if ∣ D ∣ = ℓ |D| = \ell ∣ D ∣ = ℓ , then D ⊆ N G ( C ∗ ) D \subseteq N_G(C_*) D ⊆ N G ( C ∗ ) and ∣ N G ( C ∗ ) ∣ ≤ ℓ |N_G(C_*)| \le\ell ∣ N G ( C ∗ ) ∣ ≤ ℓ force D = N G ( C ∗ ) D = N_G(C_*) D = N G ( C ∗ ) , and since G [ C ∗ ] G[C_*] G [ C ∗ ] is a connected subgraph of G − D G-D G − D whose external neighborhood is D D D , C ∗ C_* C ∗ must be the entire component C s ( G − D ) C_s(G-D) C s ( G − D ) . In all three cases, the leaf outputs ( C ∗ , N G ( C ∗ ) ) (C_*, N_G(C_*)) ( C ∗ , N G ( C ∗ )) . Because any two distinct root-to-leaf paths disagree on the membership in C C C of their lowest common ancestor’s branched vertex v v v , no pair ( C ∗ , N G ( C ∗ ) ) (C_*, N_G(C_*)) ( C ∗ , N G ( C ∗ )) is emitted more than once.
To bound the number of leaves and recursive calls, let a = q − ∣ P ∣ a = q - |P| a = q − ∣ P ∣ and b = ℓ − ∣ D ∣ b = \ell- |D| b = ℓ − ∣ D ∣ denote the remaining budgets at a call Visit( P , D ) (P, D) ( P , D ) . If a = 0 a = 0 a = 0 or b = 0 b = 0 b = 0 , the call is a leaf. If a , b ≥ 1 a,b \ge1 a , b ≥ 1 , the call either terminates immediately at line 6 or makes two recursive calls with remaining budgets ( a − 1 , b ) (a-1,b) ( a − 1 , b ) and ( a , b − 1 ) (a,b-1) ( a , b − 1 ) . By induction on a + b a+b a + b using Pascal’s identity
( a + b − 1 b ) + ( a + b − 1 b − 1 ) = ( a + b b ) , \binom{a+b-1}{b}+\binom{a+b-1}{b-1}=\binom{a+b}{b}, ( b a + b − 1 ) + ( b − 1 a + b − 1 ) = ( b a + b ) ,
a subtree rooted at a state with budgets ( a , b ) (a,b) ( a , b ) has at most ( a + b b ) \binom{a+b}{b} ( b a + b ) leaves. At the initial call Visit( { s } , ∅ ) (\{s\}, \varnothing) ({ s } , ∅ ) , we have a = q − 1 a = q - 1 a = q − 1 and b = ℓ b = \ell b = ℓ , which yields at most B ( q , ℓ ) B(q,\ell) B ( q , ℓ ) leaves as stated in (4) and at most 2 B ( q , ℓ ) − 1 2B(q,\ell)-1 2 B ( q , ℓ ) − 1 calls in total. Since each call performs O ( ( n + 1 ) 2 ) O((n+1)^2) O (( n + 1 ) 2 ) work to update neighborhoods or compute C s ( G − D ) C_s(G-D) C s ( G − D ) via the adjacency matrix, the total running time is O ( B ( q , ℓ ) ( n + 1 ) 2 ) O(B(q,\ell)(n+1)^2) O ( B ( q , ℓ ) ( n + 1 ) 2 ) . □
A similar bound on the number of connected subsets with small neighborhoods was given by Fomin and Villanger [3, Section 3]; Lemma 5.1 also covers the boundary case ℓ = 0 \ell= 0 ℓ = 0 , in which the only candidate is the connected component C s ( G ) C_s(G) C s ( G ) itself (output if and only if ∣ C s ( G ) ∣ ≤ q |C_s(G)| \le q ∣ C s ( G ) ∣ ≤ q ). Note that in Algorithm 1, pairs ( C , S ) (C,S) ( C , S ) can be consumed on the fly during the depth-first traversal of Regions without storing the full list in memory, so the recursion uses O ( ( n + 1 ) 2 ) O((n+1)^2) O (( n + 1 ) 2 ) space.
Total running time
We now detail the implementation of Check and combine its cost with Lemma 5.1 to complete the proof of Theorem 3.1 .
Checking a candidate in the whole graph
Given ( G , Ω , k , I , O ) (G,\Omega,k,I,O) ( G , Ω , k , I , O ) , the subroutine Check first verifies that 1 ≤ ∣ Ω ∣ ≤ k 1 \le|\Omega| \le k 1 ≤ ∣Ω∣ ≤ k , I ⊆ Ω I \subseteq\Omega I ⊆ Ω , and Ω ∩ O = ∅ \Omega\cap O = \varnothing Ω ∩ O = ∅ . It then computes the connected components of G − Ω G-\Omega G − Ω and their external neighborhoods in Ω \Omega Ω . By Lemma 2.1 , if any component D D D of G − Ω G-\Omega G − Ω has N G ( D ) = Ω N_G(D)=\Omega N G ( D ) = Ω , Check returns No. Otherwise, it initializes a ∣ Ω ∣ × ∣ Ω ∣ |\Omega| \times|\Omega| ∣Ω∣ × ∣Ω∣ boolean table marking all pairs u , v ∈ Ω u,v \in\Omega u , v ∈ Ω that are adjacent in G G G , and for each component D D D of G − Ω G-\Omega G − Ω , marks all pairs u , v ∈ N G ( D ) u,v \in N_G(D) u , v ∈ N G ( D ) . It returns Yes if and only if every pair of distinct vertices in Ω \Omega Ω is marked.
Using an adjacency matrix, finding the connected components of G − Ω G-\Omega G − Ω and their neighborhoods in Ω \Omega Ω takes O ( n 2 ) O(n^2) O ( n 2 ) time. Because ∣ Ω ∣ ≤ k |\Omega| \le k ∣Ω∣ ≤ k and G − Ω G-\Omega G − Ω has at most n n n components, updating the pairwise table across all components takes O ( n k 2 ) O(nk^2) O ( n k 2 ) time. Thus, a single call to Check runs in time
O ( n 2 + n k 2 ) ⊆ O ( k 2 n 2 ) . (5) O(n^2+nk^2) \subseteq O(k^2n^2). \tag*{(5)} O ( n 2 + n k 2 ) ⊆ O ( k 2 n 2 ) . (5)
Notice that Check always evaluates components and neighborhoods in the full graph G − Ω G-\Omega G − Ω , and tests the constraints I , O I,O I , O on the entire candidate Ω \Omega Ω .
Time for the complete search
Running-time bound in Theorem 3.1 . After the initial trivial checks in Algorithm 1, we have n , k ≥ 1 n,k \ge1 n , k ≥ 1 , and each candidate check via Check takes O ( k 2 n 2 ) O(k^2n^2) O ( k 2 n 2 ) time by (5) . Set
A = ∑ i = 1 k ( 3 q + k i ) , B = ( q + k − 2 k − 1 ) , H = ∑ i = 1 min { q , k } ( q i ) . A = \sum_{i=1}^{k} \binom{3q+k}{i}, \qquad B = \binom{q+k-2}{k-1}, \qquad H = \sum_{i=1}^{\min\{q,k\}} \binom{q}{i}. A = i = 1 ∑ k ( i 3 q + k ) , B = ( k − 1 q + k − 2 ) , H = i = 1 ∑ m i n { q , k } ( i q ) .
When n ≤ 3 q + k n \le3q+k n ≤ 3 q + k , Algorithm 1 tests at most A A A subsets in lines 7–11 in O ( k 2 A n 2 ) O(k^2An^2) O ( k 2 A n 2 ) total time.
When n > 3 q + k n > 3q+k n > 3 q + k , Algorithm 1 invokes Regions( G , s , q , k − 1 ) (G,s,q,k-1) ( G , s , q , k − 1 ) for each of the n n n roots s ∈ V ( G ) s \in V(G) s ∈ V ( G ) . By Lemma 5.1, each call to Regions runs in O ( B n 2 ) O(Bn^2) O ( B n 2 ) time and emits at most B B B pairs ( C , S ) (C,S) ( C , S ) . For each emitted pair ( C , S ) (C,S) ( C , S ) , since ∣ C ∣ ≤ q |C| \le q ∣ C ∣ ≤ q and k − ∣ S ∣ ≤ k k-|S| \le k k − ∣ S ∣ ≤ k , the inner loop tests at most H H H nonempty subsets X ⊆ C X \subseteq C X ⊆ C . Across all n n n roots, the algorithm performs at most n B H nBH n B H calls to Check (costing O ( k 2 B H n 3 ) O(k^2BHn^3) O ( k 2 B H n 3 ) time) and spends O ( B n 3 ) O(Bn^3) O ( B n 3 ) time inside Regions. Since k , H ≥ 1 k,H \ge1 k , H ≥ 1 , the overall running time of Algorithm 1 is bounded by
{ O ( k 2 A n 2 ) , n ≤ 3 q + k , O ( k 2 B H n 3 ) , n > 3 q + k . (6) \begin{cases}
O(k^2An^2), & n \le3q+k,\\
O(k^2BHn^3), & n > 3q+k. \tag*{(6)}
\end{cases} { O ( k 2 A n 2 ) , O ( k 2 B H n 3 ) , n ≤ 3 q + k , n > 3 q + k . (6)
Applying the standard binomial sum inequality ∑ i = 0 min { u , k } ( u i ) ≤ ( u + k k ) \sum_{i=0}^{\min\{u,k\}} \binom{u}{i} \le\binom{u+k}{k} ∑ i = 0 m i n { u , k } ( i u ) ≤ ( k u + k ) (which follows from Vandermonde’s identity [8 Eq. (1.10), p. 3] ), we have
A ≤ ( 3 q + 2 k k ) , H ≤ ( q + k k ) , B ≤ ( q + k k ) . A \le\binom{3q+2k}{k}, \qquad H \le\binom{q+k}{k}, \qquad B \le\binom{q+k}{k}. A ≤ ( k 3 q + 2 k ) , H ≤ ( k q + k ) , B ≤ ( k q + k ) .
Substituting these bounds into (6) shows that in both regimes the running time is at most
O ( k 2 [ ( 3 q + 2 k k ) n 2 + ( q + k k ) 2 n 3 ] ) . (7) O\left(k^2\left[\binom{3q+2k}{k}n^2+\binom{q+k}{k}^{2}n^3\right]\right). \tag*{(7)} O ( k 2 [ ( k 3 q + 2 k ) n 2 + ( k q + k ) 2 n 3 ] ) . (7)
Since ( u k ) ≤ ( e u / k ) k \binom{u}{k} \le(eu/k)^k ( k u ) ≤ ( e u / k ) k for u ≥ k ≥ 1 u \ge k \ge1 u ≥ k ≥ 1 [9 Proposition 1.4] , expression (7) simplifies to 2 O ( k log ( 2 + q / k ) ) n 3 2^{O(k\log(2+q/k))}n^3 2 O ( k l o g ( 2 + q / k )) n 3 . Combining this bound with Lemmas 4.2 and 5.1 completes the proof of Theorem 3.1 . □ \square □
Choosing q q q
While Algorithm Local is valid for any integer q ≥ 1 q \ge1 q ≥ 1 such that G G G is ( q , k ) (q,k) ( q , k ) -unbreakable, its running time in Theorem 3.1 grows with q q q . Because ( q , k ) (q,k) ( q , k ) -unbreakability implies ( q ′ , k ) (q',k) ( q ′ , k ) -unbreakability for all q ′ ≥ q q' \ge q q ′ ≥ q but not for q ′ < q q' < q q ′ < q , Theorem 3.1 is most effective when invoked with the smallest threshold q q q for which G G G can be certified ( q , k ) (q,k) ( q , k ) -unbreakable.
Indeed, passing a threshold q q q smaller than the true unbreakability of G G G can cause Local to miss valid solutions. To illustrate why the unbreakability promise cannot in general be lowered, consider a graph G G G formed by the disjoint union of two cliques of size Q ≥ 2 Q \ge2 Q ≥ 2 . Because ∣ V ( G ) ∣ = 2 Q |V(G)|=2Q ∣ V ( G ) ∣ = 2 Q , no separation can leave more than Q Q Q vertices on both sides, so G G G is ( Q , k ) (Q,k) ( Q , k ) -unbreakable. However, the empty separator Z = ∅ Z=\emptyset Z = ∅ partitions G G G into two sides of size Q > Q − 1 Q>Q-1 Q > Q − 1 , so G G G is ( Q − 1 , k ) (Q-1,k) ( Q − 1 , k ) -breakable. In particular, whenever G G G is ( q , k ) (q,k) ( q , k ) -unbreakable for some q = O ( k ) q=O(k) q = O ( k ) , Theorem 3.1 yields a running time of 2 O ( k ) n 3 2^{O(k)}n^3 2 O ( k ) n 3 .
When the graph is ( q , k ) (q,k) ( q , k ) -breakable
When G G G is ( q , k ) (q,k) ( q , k ) -breakable, it admits a separation ( L , Z , U ) (L,Z,U) ( L , Z , U ) with ∣ Z ∣ ≤ k |Z| \le k ∣ Z ∣ ≤ k , ∣ L ∣ > q |L| > q ∣ L ∣ > q , and ∣ U ∣ > q |U| > q ∣ U ∣ > q , decomposing G G G as G = G [ L ∪ Z ] ⊕ Z G [ U ∪ Z ] G = G[L \cup Z] \oplus_Z G[U \cup Z] G = G [ L ∪ Z ] ⊕ Z G [ U ∪ Z ] . Following the recursive understanding paradigm of Chitnis et al. [4 ] and its adaptation to unbreakable reductions by Lokshtanov et al. [5 ] , we wish to replace one piece—say H = G [ L ∪ Z ] H = G[L \cup Z] H = G [ L ∪ Z ] —with a smaller graph K K K whose size is bounded solely in terms of k k k , attached to J = G [ U ∪ Z ] J = G[U \cup Z] J = G [ U ∪ Z ] along the same boundary Z Z Z . If replacing H H H by K K K preserves the existence of a constrained PMC of size at most k k k and ∣ V ( K ) ∣ < ∣ V ( H ) ∣ |V(K)| < |V(H)| ∣ V ( K ) ∣ < ∣ V ( H ) ∣ , then K ⊕ Z G [ U ∪ Z ] K \oplus_Z G[U \cup Z] K ⊕ Z G [ U ∪ Z ] is an equivalent instance on strictly fewer vertices.
The main technical challenge in designing such a replacement is that a PMC Ω ∈ PMC k ( G , I , O ) \Omega\in\operatorname{PMC}_k(G,I,O) Ω ∈ PMC k ( G , I , O ) can straddle both sides of the separation (Ω ∩ L ≠ ∅ \Omega\cap L \ne\varnothing Ω ∩ L = ∅ and Ω ∩ U ≠ ∅ \Omega\cap U \ne\varnothing Ω ∩ U = ∅ ), and its validity depends on connected components of G − Ω G-\Omega G − Ω that may cross Z Z Z . Rather than tailoring K K K to the specific outside subgraph G [ U ∪ Z ] G[U \cup Z] G [ U ∪ Z ] , we construct a universal bounded replacement ( K , I K , O K ) (K,I_K,O_K) ( K , I K , O K ) for ( H , I H , O H ) (H,I_H,O_H) ( H , I H , O H ) and boundary Z Z Z : for every outside graph J J J satisfying V ( H ) ∩ V ( J ) = V ( K ) ∩ V ( J ) = Z V(H) \cap V(J) = V(K) \cap V(J) = Z V ( H ) ∩ V ( J ) = V ( K ) ∩ V ( J ) = Z and every choice of constraints I J , O J ⊆ V ( J ) I_J,O_J \subseteq V(J) I J , O J ⊆ V ( J ) , the combined graph H ⊕ Z J H \oplus_Z J H ⊕ Z J admits a constrained PMC of size at most k k k if and only if K ⊕ Z J K \oplus_Z J K ⊕ Z J does.
We break the construction of ( K , I K , O K ) (K,I_K,O_K) ( K , I K , O K ) into two steps:
Compressing H H H for a fixed retained set R R R (Section 9): Suppose we have already selected a subset R ⊆ V ( H ) R \subseteq V(H) R ⊆ V ( H ) of retained vertices such that Z ∪ I H ⊆ R Z \cup I_H \subseteq R Z ∪ I H ⊆ R . We construct a graph K K K on R R R plus at most ∣ R ∣ |R| ∣ R ∣ fresh auxiliary vertices (all placed in O K O_K O K ) such that ∣ V ( K ) ∣ ≤ 2 ∣ R ∣ |V(K)| \le2|R| ∣ V ( K ) ∣ ≤ 2∣ R ∣ and, for every outside graph J J J attached along Z Z Z and every candidate Ω ⊆ R ∪ V ( J ) \Omega\subseteq R \cup V(J) Ω ⊆ R ∪ V ( J ) , Ω \Omega Ω is a constrained PMC of size at most k k k in H ⊕ Z J H \oplus_Z J H ⊕ Z J if and only if Ω \Omega Ω is a constrained PMC of size at most k k k in K ⊕ Z J K \oplus_Z J K ⊕ Z J .
Selecting a small retained set R R R via test graphs (Section 10): Compression with an arbitrary set R R R preserves only those solutions Ω \Omega Ω whose intersection with V ( H ) V(H) V ( H ) happens to lie in R R R . When H H H is ( q , k ) (q,k) ( q , k ) -unbreakable, we show how to compute a set R R R of size 2 O ( k 2 ) 2^{O(k^2)} 2 O ( k 2 ) that is guaranteed to contain Ω ′ ∩ V ( H ) \Omega' \cap V(H) Ω ′ ∩ V ( H ) for at least one solution Ω ′ \Omega' Ω ′ whenever H ⊕ Z J H \oplus_Z J H ⊕ Z J admits a solution. To do so without inspecting J J J , we enumerate a finite family of test graphs T T T , each consisting of Z Z Z and at most k + 1 k+1 k + 1 fresh vertices, together with all subsets I T ⊆ V ( T ) I_T \subseteq V(T) I T ⊆ V ( T ) of size at most k k k and O T = V ( T ) ∖ I T O_T = V(T) \setminus I_T O T = V ( T ) ∖ I T . Because each H ⊕ Z T H \oplus_Z T H ⊕ Z T is ( q + k + 1 , k ) (q+k+1,k) ( q + k + 1 , k ) -unbreakable, we can invoke Local on every test instance and define R R R as the union of Z ∪ I H Z \cup I_H Z ∪ I H with the intersections Ω ∩ V ( H ) \Omega\cap V(H) Ω ∩ V ( H ) of all returned witnesses.
Finally, in Section 11, we combine these two steps with the cut-finding algorithm of Chitnis et al. [4 Section 3.5] (in the form of Golovach et al. [7 Lemma 2, p. 18:3] ) to handle pieces that are themselves breakable and establish Theorem 11.1.
Compressing a piece after fixing the retained vertices
We now formalize the first step of our replacement scheme. Given an arbitrary graph H H H (which need not be unbreakable), a boundary Z ⊆ V ( H ) Z \subseteq V(H) Z ⊆ V ( H ) , and a set R ⊆ V ( H ) R \subseteq V(H) R ⊆ V ( H ) of retained vertices with Z ⊆ R Z \subseteq R Z ⊆ R , we construct a compressed graph K K K such that V ( K ) ∩ V ( H ) = R V(K) \cap V(H) = R V ( K ) ∩ V ( H ) = R , ∣ V ( K ) ∣ ≤ 2 ∣ R ∣ |V(K)| \le2|R| ∣ V ( K ) ∣ ≤ 2∣ R ∣ , and all vertices in V ( K ) ∖ R V(K) \setminus R V ( K ) ∖ R are fresh auxiliary vertices excluded from any solution. Theorem 9.1 shows that K K K preserves PMC membership for every candidate Ω ⊆ R ∪ V ( J ) \Omega\subseteq R \cup V(J) Ω ⊆ R ∪ V ( J ) under any outside attachment J J J along Z Z Z , and Corollary 9.2 records the resulting equivalence for constrained PMC search.
Theorem 9.1 (Compression after retaining R R R ). Given a graph H H H and sets Z ⊆ R ⊆ V ( H ) Z \subseteq R \subseteq V(H) Z ⊆ R ⊆ V ( H ) , we can construct a graph K K K such that
V ( K ) ∩ V ( H ) = R , ∣ V ( K ) ∣ ≤ 2 ∣ R ∣ . V(K) \cap V(H) = R, \qquad|V(K)| \le2|R|. V ( K ) ∩ V ( H ) = R , ∣ V ( K ) ∣ ≤ 2∣ R ∣. For every graph J J J sharing exactly Z Z Z with both H H H and K K K , and every nonempty set Ω ⊆ R ∪ V ( J ) \Omega\subseteq R \cup V(J) Ω ⊆ R ∪ V ( J ) ,
Ω ∈ PMC ( H ⊕ Z J ) ⟺ Ω ∈ PMC ( K ⊕ Z J ) . (8) \Omega\in\operatorname{PMC}(H \oplus_Z J) \iff\Omega\in\operatorname{PMC}(K \oplus_Z J). \tag*{(8)} Ω ∈ PMC ( H ⊕ Z J ) ⟺ Ω ∈ PMC ( K ⊕ Z J ) . (8) The construction takes O ( n 3 ) O(n^3) O ( n 3 ) time, where n = ∣ V ( H ) ∣ ≥ 1 n = |V(H)| \ge1 n = ∣ V ( H ) ∣ ≥ 1 .
Note that in (8) , the same vertex set Ω \Omega Ω is tested in both H ⊕ Z J H \oplus_Z J H ⊕ Z J and K ⊕ Z J K \oplus_Z J K ⊕ Z J : because Ω ⊆ R ∪ V ( J ) \Omega\subseteq R \cup V(J) Ω ⊆ R ∪ V ( J ) , Ω \Omega Ω contains neither deleted vertices from V ( H ) ∖ R V(H) \setminus R V ( H ) ∖ R nor auxiliary vertices from V ( K ) ∖ R V(K) \setminus R V ( K ) ∖ R .
When H H H and J J J carry inclusion and exclusion constraints ( I H , O H ) (I_H,O_H) ( I H , O H ) and ( I J , O J ) (I_J,O_J) ( I J , O J ) with Z ∪ I H ⊆ R Z \cup I_H \subseteq R Z ∪ I H ⊆ R , excluding the auxiliary vertices V ( K ) ∖ R V(K) \setminus R V ( K ) ∖ R via O K O_K O K immediately extends Theorem 9.1 to constrained PMCs of size at most k k k .
Corollary 9.2 (Preserving constrained candidates). Let H H H be a graph, let I H , O H ⊆ V ( H ) I_H,O_H \subseteq V(H) I H , O H ⊆ V ( H ) , and let Z , R ⊆ V ( H ) Z,R \subseteq V(H) Z , R ⊆ V ( H ) satisfy Z ∪ I H ⊆ R ⊆ V ( H ) Z \cup I_H \subseteq R \subseteq V(H) Z ∪ I H ⊆ R ⊆ V ( H ) . We can construct a graph K K K such that
V ( K ) ∩ V ( H ) = R , ∣ V ( K ) ∣ ≤ 2 ∣ R ∣ , V(K) \cap V(H) = R, \qquad|V(K)| \le2|R|, V ( K ) ∩ V ( H ) = R , ∣ V ( K ) ∣ ≤ 2∣ R ∣ , with inclusion and exclusion constraints
I K = d e f I H , O K = d e f ( O H ∩ R ) ∪ ( V ( K ) ∖ R ) I_K \mathrel{\overset{\mathrm{def}}{=}} I_H, \qquad O_K \mathrel{\overset{\mathrm{def}}{=}} (O_H \cap R) \cup(V(K) \setminus R) I K = def I H , O K = def ( O H ∩ R ) ∪ ( V ( K ) ∖ R ) such that for every graph J J J satisfying
V ( J ) ∩ V ( H ) = V ( J ) ∩ V ( K ) = Z , V(J) \cap V(H) = V(J) \cap V(K) = Z, V ( J ) ∩ V ( H ) = V ( J ) ∩ V ( K ) = Z , every I J , O J ⊆ V ( J ) I_J,O_J \subseteq V(J) I J , O J ⊆ V ( J ) , every integer k ≥ 1 k \ge1 k ≥ 1 , and every candidate Ω ⊆ R ∪ V ( J ) \Omega\subseteq R \cup V(J) Ω ⊆ R ∪ V ( J ) ,
Ω ∈ PMC k ( H ⊕ Z J , I H ∪ I J , O H ∪ O J ) ⟺ Ω ∈ PMC k ( K ⊕ Z J , I K ∪ I J , O K ∪ O J ) . (9) \Omega\in\operatorname{PMC}_k(H \oplus_Z J, I_H \cup I_J, O_H \cup O_J) \iff\Omega\in\operatorname{PMC}_k(K \oplus_Z J, I_K \cup I_J, O_K \cup O_J). \tag*{(9)} Ω ∈ PMC k ( H ⊕ Z J , I H ∪ I J , O H ∪ O J ) ⟺ Ω ∈ PMC k ( K ⊕ Z J , I K ∪ I J , O K ∪ O J ) . (9) The construction takes O ( n 3 ) O(n^3) O ( n 3 ) time, where n = ∣ V ( H ) ∣ ≥ 1 n = |V(H)| \ge1 n = ∣ V ( H ) ∣ ≥ 1 .
Proof. Let K K K be the graph constructed in Theorem 9.1, and define I K I_K I K and O K O_K O K as above. The case Ω = ∅ \Omega= \varnothing Ω = ∅ is immediate since PMCs are nonempty. For any fixed J J J , I J I_J I J , O J O_J O J , k k k and any nonempty candidate Ω ⊆ R ∪ V ( J ) \Omega\subseteq R \cup V(J) Ω ⊆ R ∪ V ( J ) , Theorem 9.1 states that Ω ∈ PMC ( H ⊕ Z J ) \Omega\in\operatorname{PMC}(H \oplus_Z J) Ω ∈ PMC ( H ⊕ Z J ) if and only if Ω ∈ PMC ( K ⊕ Z J ) \Omega\in\operatorname{PMC}(K \oplus_Z J) Ω ∈ PMC ( K ⊕ Z J ) . Since I K = I H I_K = I_H I K = I H , the inclusion constraint I H ∪ I J ⊆ Ω I_H \cup I_J \subseteq\Omega I H ∪ I J ⊆ Ω is identical on both sides, as is the cardinality bound ∣ Ω ∣ ≤ k |\Omega| \le k ∣Ω∣ ≤ k . For the exclusion constraints, because Ω ⊆ R ∪ V ( J ) \Omega\subseteq R \cup V(J) Ω ⊆ R ∪ V ( J ) is disjoint from both V ( H ) ∖ R V(H) \setminus R V ( H ) ∖ R and V ( K ) ∖ R V(K) \setminus R V ( K ) ∖ R , we have
Ω ∩ ( O H ∪ O J ) = Ω ∩ ( ( O H ∩ R ) ∪ O J ) = Ω ∩ ( O K ∪ O J ) . \Omega\cap(O_H \cup O_J) = \Omega\cap((O_H \cap R) \cup O_J) = \Omega\cap(O_K \cup O_J). Ω ∩ ( O H ∪ O J ) = Ω ∩ (( O H ∩ R ) ∪ O J ) = Ω ∩ ( O K ∪ O J ) .
Hence Ω ∩ ( O H ∪ O J ) = ∅ \Omega\cap(O_H \cup O_J) = \varnothing Ω ∩ ( O H ∪ O J ) = ∅ if and only if Ω ∩ ( O K ∪ O J ) = ∅ \Omega\cap(O_K \cup O_J) = \varnothing Ω ∩ ( O K ∪ O J ) = ∅ , which establishes (9) . Notice also that because V ( K ) ∖ R ⊆ O K V(K) \setminus R \subseteq O_K V ( K ) ∖ R ⊆ O K , every set Ω ∈ PMC k ( K ⊕ Z J , I K ∪ I J , O K ∪ O J ) \Omega\in\operatorname{PMC}_k(K \oplus_Z J, I_K \cup I_J, O_K \cup O_J) Ω ∈ PMC k ( K ⊕ Z J , I K ∪ I J , O K ∪ O J ) automatically satisfies Ω ⊆ R ∪ V ( J ) \Omega\subseteq R \cup V(J) Ω ⊆ R ∪ V ( J ) , so the reverse direction of (9) applies to all constrained PMCs of K ⊕ Z J K \oplus_Z J K ⊕ Z J .
We now prove Theorem 9.1 in three steps: characterizing how the torso operation affects PMC membership (§ 9.1 ), restoring lost full-component obstructions with forbidden vertices (§ 9.2 ), and bounding the number of added vertices by ∣ R ∣ |R| ∣ R ∣ (§ 9.3 ).
PMC membership in the torso
Let H H H be a graph and R ⊆ V ( H ) R \subseteq V(H) R ⊆ V ( H ) . For each connected component C C C of H − R H-R H − R , its external neighborhood S C = N H ( C ) S_C = N_H(C) S C = N H ( C ) is a subset of R R R . Recall from § 2 that the torso F = Tor ( H , R ) F = \operatorname{Tor}(H,R) F = Tor ( H , R ) is formed from H [ R ] H[R] H [ R ] by making each S C S_C S C a clique [6 Section 2.3, Definition 2.5] . Replacing each maximal subpath through a deleted component C C C of H − R H-R H − R with the torso edge between its entry and exit vertices in S C S_C S C (and vice versa) preserves the pairwise connectivity condition of Lemma 2.1 . However, deleting C C C can eliminate a full component: in the path a a a –c c c –b b b with R = { a , b } R = \{a,b\} R = { a , b } , the deleted component C = { c } C = \{c\} C = { c } has N H ( C ) = { a , b } N_H(C) = \{a,b\} N H ( C ) = { a , b } , so { a , b } \{a,b\} { a , b } is not a PMC of the path even though it becomes a PMC of the torso edge Tor ( H , R ) \operatorname{Tor}(H,R) Tor ( H , R ) . The following lemma shows that this is the only way taking the torso can alter PMC membership.
Lemma 9.3 (PMC membership in the torso). Let Z ⊆ R ⊆ V ( H ) Z \subseteq R \subseteq V(H) Z ⊆ R ⊆ V ( H ) and F = Tor ( H , R ) F = \operatorname{Tor}(H,R) F = Tor ( H , R ) . For every graph J J J sharing exactly Z Z Z with H H H , and every nonempty Ω ⊆ R ∪ V ( J ) \Omega\subseteq R \cup V(J) Ω ⊆ R ∪ V ( J ) ,
Ω ∈ PMC ( H ⊕ Z J ) ⟺ { Ω ∈ PMC ( F ⊕ Z J ) , and Ω ≠ N H ( C ) for every component C of H − R . (10) \Omega\in\operatorname{PMC}(H \oplus_Z J) \quad\Longleftrightarrow\quad\begin{cases} \Omega\in\operatorname{PMC}(F \oplus_Z J), \text{ and}\\ \Omega\ne N_H(C) \text{ for every component } C \text{ of } H-R. \end{cases} \tag*{(10)} Ω ∈ PMC ( H ⊕ Z J ) ⟺ { Ω ∈ PMC ( F ⊕ Z J ) , and Ω = N H ( C ) for every component C of H − R . (10)
Proof. Let G H = d e f H ⊕ Z J G_H \mathrel{\mathop{=}^{\mathrm{def}}} H \oplus_Z J G H = def H ⊕ Z J and G F = d e f F ⊕ Z J G_F \mathrel{\mathop{=}^{\mathrm{def}}} F \oplus_Z J G F = def F ⊕ Z J , so that V ( G F ) = R ∪ V ( J ) V(G_F) = R \cup V(J) V ( G F ) = R ∪ V ( J ) and V ( G H ) ∖ V ( G F ) = V ( H ) ∖ R V(G_H) \setminus V(G_F) = V(H) \setminus R V ( G H ) ∖ V ( G F ) = V ( H ) ∖ R . Because V ( H ) ∩ V ( J ) = Z ⊆ R V(H) \cap V(J) = Z \subseteq R V ( H ) ∩ V ( J ) = Z ⊆ R , every connected component C C C of H − R H-R H − R is disjoint from V ( J ) V(J) V ( J ) and has no incident edges in J J J ; hence N G H ( C ) = N H ( C ) ⊆ R N_{G_H}(C) = N_H(C) \subseteq R N G H ( C ) = N H ( C ) ⊆ R , and C C C is disjoint from Ω ⊆ V ( G F ) \Omega\subseteq V(G_F) Ω ⊆ V ( G F ) .
Forward direction (⇒ \Rightarrow ⇒ ). Suppose Ω ∈ PMC ( G H ) \Omega\in\operatorname{PMC}(G_H) Ω ∈ PMC ( G H ) . First, if Ω = N H ( C ) \Omega= N_H(C) Ω = N H ( C ) for some component C C C of H − R H-R H − R , then since C ∩ Ω = ∅ C \cap\Omega= \varnothing C ∩ Ω = ∅ and N G H ( C ) = N H ( C ) = Ω N_{G_H}(C) = N_H(C) = \Omega N G H ( C ) = N H ( C ) = Ω , the set C C C is a connected component of G H − Ω G_H-\Omega G H − Ω that is full with respect to Ω \Omega Ω , which contradicts Lemma 2.1 (1). Thus Ω ≠ N H ( C ) \Omega\ne N_H(C) Ω = N H ( C ) for every component C C C of H − R H-R H − R .
To see that Ω \Omega Ω satisfies the pair condition in G F G_F G F , take any distinct a , b ∈ Ω a,b \in\Omega a , b ∈ Ω . By Lemma 2.1 (2), G H G_H G H contains an a , b a,b a , b -path P P P whose internal vertices avoid Ω \Omega Ω . Any maximal contiguous subsegment c 1 , … , c t c_1,\ldots,c_t c 1 , … , c t of P P P contained in V ( G H ) ∖ V ( G F ) = V ( H ) ∖ R V(G_H) \setminus V(G_F) = V(H) \setminus R V ( G H ) ∖ V ( G F ) = V ( H ) ∖ R lies inside a single component C C C of H − R H-R H − R , and its immediately preceding and succeeding vertices u , v u,v u , v on P P P belong to N G H ( C ) = N H ( C ) ⊆ R N_{G_H}(C) = N_H(C) \subseteq R N G H ( C ) = N H ( C ) ⊆ R . Since N H ( C ) N_H(C) N H ( C ) is a clique in F F F , ( u , v ) ∈ E ( G F ) (u,v) \in E(G_F) ( u , v ) ∈ E ( G F ) . Replacing each such subsegment u , c 1 , … , c t , v u,c_1,\ldots,c_t,v u , c 1 , … , c t , v of P P P with the single torso edge ( u , v ) (u,v) ( u , v ) yields an a , b a,b a , b -path in G F G_F G F whose internal vertices are a subset of those of P P P and therefore avoid Ω \Omega Ω . Thus Ω \Omega Ω satisfies the pair condition in G F G_F G F .
It remains to show that G F − Ω G_F-\Omega G F − Ω has no full component with respect to Ω \Omega Ω . Suppose, by way of contradiction, that D 0 D_0 D 0 is a component of G F − Ω G_F-\Omega G F − Ω with N G F ( D 0 ) = Ω N_{G_F}(D_0) = \Omega N G F ( D 0 ) = Ω . Replacing each torso edge in G F [ D 0 ] G_F[D_0] G F [ D 0 ] with a path through the component of H − R H-R H − R that generated it (and shortcutting any repeated vertices) shows that all vertices of D 0 D_0 D 0 belong to a single connected component D D D of G H − Ω G_H-\Omega G H − Ω . Now take any u ∈ Ω u \in\Omega u ∈ Ω ; since N G F ( D 0 ) = Ω N_{G_F}(D_0) = \Omega N G F ( D 0 ) = Ω , u u u has a neighbor v ∈ D 0 ⊆ D v \in D_0 \subseteq D v ∈ D 0 ⊆ D in G F G_F G F . If ( u , v ) ∈ E ( G H ) (u,v) \in E(G_H) ( u , v ) ∈ E ( G H ) , then u ∈ N G H ( D ) u \in N_{G_H}(D) u ∈ N G H ( D ) . Otherwise, ( u , v ) ∈ E ( G F ) ∖ E ( G H ) (u,v) \in E(G_F) \setminus E(G_H) ( u , v ) ∈ E ( G F ) ∖ E ( G H ) is a torso edge, so u , v ∈ N H ( C ) u,v \in N_H(C) u , v ∈ N H ( C ) for some component C C C of H − R H-R H − R . Since C ∩ Ω = ∅ C \cap\Omega= \varnothing C ∩ Ω = ∅ and v ∈ D v \in D v ∈ D has a neighbor in C C C , the entire connected set C C C is contained in D D D , and because u ∈ N H ( C ) u \in N_H(C) u ∈ N H ( C ) , we again have u ∈ N G H ( D ) u \in N_{G_H}(D) u ∈ N G H ( D ) . Thus N G H ( D ) = Ω N_{G_H}(D) = \Omega N G H ( D ) = Ω , which contradicts Ω ∈ PMC ( G H ) \Omega\in\operatorname{PMC}(G_H) Ω ∈ PMC ( G H ) . By Lemma 2.1 , we conclude that Ω ∈ PMC ( G F ) \Omega\in\operatorname{PMC}(G_F) Ω ∈ PMC ( G F ) .
Reverse direction (⇐ \Leftarrow ⇐ ). Conversely, suppose Ω ∈ PMC ( G F ) \Omega\in\operatorname{PMC}(G_F) Ω ∈ PMC ( G F ) and Ω ≠ N H ( C ) \Omega\ne N_H(C) Ω = N H ( C ) for every component C C C of H − R H-R H − R . For any distinct a , b ∈ Ω a,b \in\Omega a , b ∈ Ω , taking an a , b a,b a , b -path in G F G_F G F whose internal vertices avoid Ω \Omega Ω , expanding each torso edge e ∈ E ( G F ) ∖ E ( G H ) e \in E(G_F) \setminus E(G_H) e ∈ E ( G F ) ∖ E ( G H ) through the component of H − R H-R H − R that supplied e e e (which is disjoint from Ω \Omega Ω ), and shortcutting repeated vertices produces an a , b a,b a , b -path in G H G_H G H whose internal vertices avoid Ω \Omega Ω . Hence Ω \Omega Ω satisfies the pair condition in G H G_H G H .
Now suppose, by way of contradiction, that G H − Ω G_H-\Omega G H − Ω has a component D D D with N G H ( D ) = Ω N_{G_H}(D) = \Omega N G H ( D ) = Ω . If D ⊆ V ( H ) ∖ R D \subseteq V(H) \setminus R D ⊆ V ( H ) ∖ R , then D D D is a single component C C C of H − R H-R H − R , so Ω = N G H ( C ) = N H ( C ) \Omega= N_{G_H}(C) = N_H(C) Ω = N G H ( C ) = N H ( C ) , contrary to our hypothesis. Otherwise, the set D 0 = d e f D ∩ V ( G F ) D_0 \mathrel{\mathop{=}^{\mathrm{def}}} D \cap V(G_F) D 0 = def D ∩ V ( G F ) is nonempty. Contracting maximal subsegments through V ( H ) ∖ R V(H)\setminus R V ( H ) ∖ R along paths in G H [ D ] G_H[D] G H [ D ] into torso edges (and vice versa) implies that D 0 D_0 D 0 is a single connected component of G F − Ω G_F-\Omega G F − Ω . Take any u ∈ Ω u\in\Omega u ∈ Ω ; since N G H ( D ) = Ω N_{G_H}(D)=\Omega N G H ( D ) = Ω , u u u has a neighbor x ∈ D x\in D x ∈ D in G H G_H G H . If x ∈ V ( G F ) x\in V(G_F) x ∈ V ( G F ) , then x ∈ D 0 x\in D_0 x ∈ D 0 and ( u , x ) ∈ E ( G F ) (u,x)\in E(G_F) ( u , x ) ∈ E ( G F ) , so u ∈ N G F ( D 0 ) u\in N_{G_F}(D_0) u ∈ N G F ( D 0 ) . If instead x ∈ V ( H ) ∖ R x\in V(H)\setminus R x ∈ V ( H ) ∖ R , let C C C be the component of H − R H-R H − R containing x x x , and fix any vertex y ∈ D 0 y\in D_0 y ∈ D 0 . Along a path from x x x to y y y in G H [ D ] G_H[D] G H [ D ] , the first vertex v v v outside C C C belongs to N G H ( C ) ∩ D = N H ( C ) ∩ D 0 N_{G_H}(C)\cap D=N_H(C)\cap D_0 N G H ( C ) ∩ D = N H ( C ) ∩ D 0 . Since u , v ∈ N H ( C ) u,v\in N_H(C) u , v ∈ N H ( C ) , the torso edge ( u , v ) (u,v) ( u , v ) is present in G F G_F G F with v ∈ D 0 v\in D_0 v ∈ D 0 , so again u ∈ N G F ( D 0 ) u\in N_{G_F}(D_0) u ∈ N G F ( D 0 ) . Consequently, N G F ( D 0 ) = Ω N_{G_F}(D_0)=\Omega N G F ( D 0 ) = Ω , which contradicts Ω ∈ PMC ( G F ) \Omega\in\operatorname{PMC}(G_F) Ω ∈ PMC ( G F ) . Thus Ω ∈ PMC ( G H ) \Omega\in\operatorname{PMC}(G_H) Ω ∈ PMC ( G H ) .
Restoring an obstruction with one forbidden vertex
By Lemma 9.3, the only candidates Ω ⊆ R ∪ V ( J ) \Omega\subseteq R\cup V(J) Ω ⊆ R ∪ V ( J ) that become false positives in the torso are the neighborhoods S = N H ( C ) S=N_H(C) S = N H ( C ) of deleted components C C C of H − R H-R H − R . Because each such S S S is a clique in F = Tor ( H , R ) F=\operatorname{Tor}(H,R) F = Tor ( H , R ) , we can eliminate S S S as a candidate PMC by attaching a single excluded vertex z S z_S z S with neighborhood S S S : deleting S S S then leaves { z S } \{z_S\} { z S } as a full component, while no other candidate avoiding z S z_S z S is affected.
Lemma 9.4 (One forbidden vertex). Let S S S be a clique of a graph F F F . Form F + F^+ F + by adding a new vertex z S z_S z S with neighborhood exactly S S S . For every nonempty Ω ⊆ V ( F ) \Omega\subseteq V(F) Ω ⊆ V ( F ) ,
Ω ∈ PMC ( F + ) ⟺ Ω ∈ PMC ( F ) and Ω ≠ S . \Omega\in\operatorname{PMC}(F^+)\quad\Longleftrightarrow\quad\Omega\in\operatorname{PMC}(F)\text{ and }\Omega\ne S. Ω ∈ PMC ( F + ) ⟺ Ω ∈ PMC ( F ) and Ω = S .
Proof. Forward direction (⇒ \Rightarrow ⇒ ). Suppose Ω ∈ PMC ( F + ) \Omega\in\operatorname{PMC}(F^+) Ω ∈ PMC ( F + ) , where Ω ⊆ V ( F ) \Omega\subseteq V(F) Ω ⊆ V ( F ) and hence z S ∉ Ω z_S\notin\Omega z S ∈ / Ω . If Ω = S \Omega=S Ω = S , then { z S } \{z_S\} { z S } is a connected component of F + − Ω F^+-\Omega F + − Ω with N F + ( { z S } ) = S = Ω N_{F^+}(\{z_S\})=S=\Omega N F + ({ z S }) = S = Ω , in contradiction to Lemma 2.1(1). Thus Ω ≠ S \Omega\ne S Ω = S . For any distinct a , b ∈ Ω a,b\in\Omega a , b ∈ Ω , take an a , b a,b a , b -path in F + F^+ F + whose internal vertices avoid Ω \Omega Ω ; if this path visits z S z_S z S , its neighbors p , q p,q p , q before and after z S z_S z S belong to the clique S = N F + ( z S ) S=N_{F^+}(z_S) S = N F + ( z S ) , so replacing p p p –z S z_S z S –q q q with the edge ( p , q ) ∈ E ( F ) (p,q)\in E(F) ( p , q ) ∈ E ( F ) yields an a , b a,b a , b -path in F F F avoiding Ω \Omega Ω internally. Finally, if F − Ω F-\Omega F − Ω had a full component D D D with respect to Ω \Omega Ω , the component of F + − Ω F^+-\Omega F + − Ω containing D D D would also be full with respect to Ω \Omega Ω , which contradicts Ω ∈ PMC ( F + ) \Omega\in\operatorname{PMC}(F^+) Ω ∈ PMC ( F + ) . Hence Ω ∈ PMC ( F ) \Omega\in\operatorname{PMC}(F) Ω ∈ PMC ( F ) .
Reverse direction (⇐ \Leftarrow ⇐ ). Conversely, suppose Ω ∈ PMC ( F ) \Omega\in\operatorname{PMC}(F) Ω ∈ PMC ( F ) and Ω ≠ S \Omega\ne S Ω = S . Since F F F is a subgraph of F + F^+ F + , Ω \Omega Ω immediately satisfies the pair condition in F + F^+ F + . To check the full-component condition in F + − Ω F^+-\Omega F + − Ω , we consider two cases. If S ⊆ Ω S\subseteq\Omega S ⊆ Ω , then S ⊊ Ω S\subsetneq\Omega S ⊊ Ω (as Ω ≠ S \Omega\ne S Ω = S ), so { z S } \{z_S\} { z S } forms an isolated component of F + − Ω F^+-\Omega F + − Ω with neighborhood N F + ( { z S } ) = S ⊊ Ω N_{F^+}(\{z_S\})=S\subsetneq\Omega N F + ({ z S }) = S ⊊ Ω , and all other components of F + − Ω F^+-\Omega F + − Ω coincide with those of $F-\Omega and are not full. If instead S ∖ Ω ≠ ∅ S\setminus\Omega\ne\varnothing S ∖ Ω = ∅ , then because S ∖ Ω S\setminus\Omega S ∖ Ω is a clique, it is contained in a single component D D D of F − Ω F-\Omega F − Ω . In F + − Ω F^+-\Omega F + − Ω , the vertex z S z_S z S merges into D D D to form the component D ∪ { z S } D\cup\{z_S\} D ∪ { z S } , while all other components remain unchanged. Since every vertex of S ∩ Ω S\cap\Omega S ∩ Ω is already adjacent to S ∖ Ω ⊆ D S\setminus\Omega\subseteq D S ∖ Ω ⊆ D , we have
N F + ( D ∪ { z S } ) = N F ( D ) ≠ Ω . N_{F^+}(D\cup\{z_S\})=N_F(D)\ne\Omega. N F + ( D ∪ { z S }) = N F ( D ) = Ω.
Thus no component of F + − Ω F^+-\Omega F + − Ω is full with respect to Ω \Omega Ω , and Ω ∈ PMC ( F + ) \Omega\in\operatorname{PMC}(F^+) Ω ∈ PMC ( F + ) .
Notice that Lemma 9.4 relies on S S S being a clique so that any path with z S z_S z S as an internal vertex can be shortened using an edge within S S S . Because S ⊆ R S\subseteq R S ⊆ R remains a clique in F □ Z J F\mathbin{\Box_Z}J F □ Z J for any outside graph J J J attached along Z Z Z , Lemma 9.4 applies directly to F □ Z J F\mathbin{\Box_Z}J F □ Z J as well (see Figure 1).
At most one auxiliary vertex per retained vertex
Adding a separate auxiliary vertex for every connected component C C C of H − R H-R H − R could leave up to ∣ V ( H ) ∣ |V(H)| ∣ V ( H ) ∣ vertices in K K K . However, two observations allow us to add at most ∣ R ∣ |R| ∣ R ∣ auxiliary vertices in total: first, multiple components C C C of H − R H-R H − R sharing the same neighborhood S = N H ( C ) S=N_H(C) S = N H ( C ) require at most a single auxiliary vertex z S z_S z S ; second, if F − S F-S F − S already contains a component D D D that is full with respect to S S S in F = Tor ( H , R ) F=\operatorname{Tor}(H,R) F = Tor ( H , R ) (i.e., N F ( D ) = S N_F(D)=S N F ( D ) = S ), then under any attachment J J J along Z Z Z , the component D ′ D' D ′ of ( F ⊕ Z J ) − S (F\oplus_Z J)-S ( F ⊕ Z J ) − S containing D D D satisfies N F ⊕ Z J ( D ′ ) = S N_{F\oplus_Z J}(D')=S N F ⊕ Z J ( D ′ ) = S and thus already prevents S S S from being a PMC of F ⊕ Z J F\oplus_Z J F ⊕ Z J . Consequently, we only need to introduce an auxiliary vertex z S z_S z S for distinct nonempty neighborhoods S = N H ( C ) S=N_H(C) S = N H ( C ) such that F − S F-S F − S has no full component with respect to S S S . Since every such S S S is a clique in F F F by construction of the torso, Lemma 2.1 implies that these sets S S S are simultaneously cliques and PMCs of F F F .
Figure 1. Compressing the path H = a H=a H = a –c c c –b b b with retained set R = { a , b } R=\{a,b\} R = { a , b } . In the torso F = Tor ( H , R ) F=\operatorname{Tor}(H,R) F = Tor ( H , R ) , the pair { a , b } \{a,b\} { a , b } becomes a PMC; adding the excluded auxiliary vertex z { a , b } z_{\{a,b\}} z { a , b } (drawn as a rectangle) restores the full-component obstruction in K K K .
To bound the number of such sets S S S by ∣ R ∣ = ∣ V ( F ) ∣ |R|=|V(F)| ∣ R ∣ = ∣ V ( F ) ∣ , we use a known property of chordal completions [10 pp. 2201, 2206] : every set that is both a clique and a PMC of F F F is a maximal clique in every minimal triangulation of F F F , and any h h h -vertex chordal graph has at most h h h maximal cliques.
Lemma 9.5 ([10 pp. 2201, 2206] ). A graph F F F on h h h vertices has at most h h h nonempty sets that are both cliques and PMCs of F F F .
Proof. If h = 0 h=0 h = 0 , the claim is trivial. For h ≥ 1 h\ge1 h ≥ 1 , fix any minimal triangulation T T T of F F F , and let S ∈ PMC ( F ) S\in\operatorname{PMC}(F) S ∈ PMC ( F ) be a clique of F F F . For each connected component C C C of F − S F-S F − S , let Q C = N F ( C ) Q_C=N_F(C) Q C = N F ( C ) ; since S ∈ PMC ( F ) S\in\operatorname{PMC}(F) S ∈ PMC ( F ) is a clique, Q C Q_C Q C is a clique satisfying Q C ⊊ S Q_C\subsetneq S Q C ⊊ S . Let T ′ T' T ′ be the subgraph of T T T formed by the union of T [ S ] T[S] T [ S ] and the induced subgraphs T [ C ∪ Q C ] T[C\cup Q_C] T [ C ∪ Q C ] over all components C C C of F − S F-S F − S . Each T [ C ∪ Q C ] T[C\cup Q_C] T [ C ∪ Q C ] is chordal and intersects the clique T [ S ] T[S] T [ S ] in the clique Q C Q_C Q C . Since gluing chordal graphs along cliques preserves chordality and E ( F ) ⊆ E ( T ′ ) ⊆ E ( T ) E(F)\subseteq E(T')\subseteq E(T) E ( F ) ⊆ E ( T ′ ) ⊆ E ( T ) , the minimality of the triangulation T T T forces T ′ = T T'=T T ′ = T . In T ′ = T T'=T T ′ = T , every vertex v ∈ C v\in C v ∈ C has N T ( v ) ∩ S ⊆ Q C ⊊ S N_T(v)\cap S\subseteq Q_C\subsetneq S N T ( v ) ∩ S ⊆ Q C ⊊ S , so no vertex outside S S S is adjacent in T T T to all of S S S . Thus S S S is a maximal clique of T T T . Because an h h h -vertex chordal graph has at most h h h maximal cliques [10 ] , there are at most h h h such sets S S S .
The compression algorithm and its guarantee
Algorithm 3 (Compress) summarizes the construction of ( K , I K , O K ) (K,I_K,O_K) ( K , I K , O K ) from ( H , Z , R , I H , O H ) (H,Z,R,I_H,O_H) ( H , Z , R , I H , O H ) .
Theorem 9.1. Given a graph H H H and sets Z ⊆ R ⊆ V ( H ) Z\subseteq R\subseteq V(H) Z ⊆ R ⊆ V ( H ) , we can construct a graph K K K such that
V ( K ) ∩ V ( H ) = R , ∣ V ( K ) ∣ ≤ 2 ∣ R ∣ . V(K)\cap V(H)=R,\qquad|V(K)|\le2|R|. V ( K ) ∩ V ( H ) = R , ∣ V ( K ) ∣ ≤ 2∣ R ∣. For every graph J J J sharing exactly Z Z Z with both H H H and K K K , and every nonempty set Ω ⊆ R ∪ V ( J ) \Omega\subseteq R\cup V(J) Ω ⊆ R ∪ V ( J ) ,
Ω ∈ PMC ( H ⊕ Z J ) ⟺ Ω ∈ PMC ( K ⊕ Z J ) . (11) \Omega\in\operatorname{PMC}(H\oplus_Z J)\iff\Omega\in\operatorname{PMC}(K\oplus_Z J). \tag*{(11)} Ω ∈ PMC ( H ⊕ Z J ) ⟺ Ω ∈ PMC ( K ⊕ Z J ) . (11) The construction takes O ( n 3 ) O(n^3) O ( n 3 ) time, where n = ∣ V ( H ) ∣ ≥ 1 n=|V(H)|\ge1 n = ∣ V ( H ) ∣ ≥ 1 .
Proof of Theorem 9.1. Let F = Tor ( H , R ) F=\operatorname{Tor}(H,R) F = Tor ( H , R ) , and let S \mathcal{S} S denote the family of distinct nonempty neighborhoods S = N H ( C ) S=N_H(C) S = N H ( C ) (over all components C C C of H − R H-R H − R ) for which F − S F-S F − S has no full component Algorithm 3 Compress(H H H , Z Z Z , R R R , I H I_H I H , O H O_H O H )
Require: Z ∪ I H ⊆ R ⊆ V ( H ) Z \cup I_H \subseteq R \subseteq V(H) Z ∪ I H ⊆ R ⊆ V ( H ) ; I H , O H ⊆ V ( H ) I_H, O_H \subseteq V(H) I H , O H ⊆ V ( H )
Ensure: Replacement graph K K K and its constraints I K , O K I_K, O_K I K , O K
1: Compute the components C \mathcal{C} C of H − R H-R H − R and their neighborhoods S C = N H ( C ) S_C = N_H(C) S C = N H ( C ) 2: F ← H [ R ] F \leftarrow H[R] F ← H [ R ] 3: for each component C C C of H − R H-R H − R do 4:  Add all missing edges within S C S_C S C to F F F 5: end for 6: K ← F K \leftarrow F K ← F 7: for each distinct nonempty set S S S among the neighborhoods S C S_C S C do 8:  if no component D D D of F − S F-S F − S satisfies N F ( D ) = S N_F(D) = S N F ( D ) = S then 9:   Add to K K K a fresh vertex z S z_S z S adjacent exactly to S S S 10:  end if 11: end for 12: I K ← I H I_K \leftarrow I_H I K ← I H ; O K ← ( O H ∩ R ) ∪ ( V ( K ) ∖ R ) O_K \leftarrow(O_H \cap R) \cup(V(K) \setminus R) O K ← ( O H ∩ R ) ∪ ( V ( K ) ∖ R ) 13: return ( K , I K , O K ) (K, I_K, O_K) ( K , I K , O K )
with respect to S S S . Every S ∈ S S \in\mathcal{S} S ∈ S is a clique in F F F by construction of the torso, and hence S ∈ PMC ( F ) S \in\operatorname{PMC}(F) S ∈ PMC ( F ) by Lemma 2.1. By Lemma 9.5, ∣ S ∣ ≤ ∣ R ∣ |S| \le|R| ∣ S ∣ ≤ ∣ R ∣ . Since Algorithm 3 adds one fresh vertex z S z_S z S for each S ∈ S S \in\mathcal{S} S ∈ S , we have V ( K ) ∩ V ( H ) = R V(K) \cap V(H) = R V ( K ) ∩ V ( H ) = R and ∣ V ( K ) ∣ = ∣ R ∣ + ∣ S ∣ ≤ 2 ∣ R ∣ |V(K)| = |R| + |\mathcal{S}| \le2|R| ∣ V ( K ) ∣ = ∣ R ∣ + ∣ S ∣ ≤ 2∣ R ∣ .
Now let J J J be any graph with V ( H ) ∩ V ( J ) = V ( K ) ∩ V ( J ) = Z V(H) \cap V(J) = V(K) \cap V(J) = Z V ( H ) ∩ V ( J ) = V ( K ) ∩ V ( J ) = Z , and let Ω ⊆ R ∪ V ( J ) \Omega\subseteq R \cup V(J) Ω ⊆ R ∪ V ( J ) be nonempty. Starting from F ⊕ Z J F \oplus_Z J F ⊕ Z J , we add the auxiliary vertices { z S : S ∈ S } \{z_S : S \in\mathcal{S}\} { z S : S ∈ S } one by one to obtain K ⊕ Z J K \oplus_Z J K ⊕ Z J . Each S ∈ S S \in\mathcal{S} S ∈ S is a clique in F ⊕ Z J F \oplus_Z J F ⊕ Z J and remains a clique as auxiliary vertices are added, and z S ∉ Ω z_S \notin\Omega z S ∈ / Ω . Applying Lemma 9.4 inductively over all S ∈ S S \in\mathcal{S} S ∈ S yields
Ω ∈ PMC ( K ⊕ Z J ) ⟺ Ω ∈ PMC ( F ⊕ Z J ) and Ω ∉ S . \Omega\in\operatorname{PMC}(K \oplus_Z J) \Longleftrightarrow\Omega\in\operatorname{PMC}(F \oplus_Z J)\text{ and }\Omega\notin\mathcal{S}. Ω ∈ PMC ( K ⊕ Z J ) ⟺ Ω ∈ PMC ( F ⊕ Z J ) and Ω ∈ / S .
We claim that whenever Ω ∈ PMC ( F ⊕ Z J ) \Omega\in\operatorname{PMC}(F \oplus_Z J) Ω ∈ PMC ( F ⊕ Z J ) , the condition Ω ∉ S \Omega\notin\mathcal{S} Ω ∈ / S is equivalent to having Ω ≠ N H ( C ) \Omega\ne N_H(C) Ω = N H ( C ) for every component C C C of H − R H-R H − R . The reverse implication is immediate since every member of S \mathcal{S} S is of the form N H ( C ) N_H(C) N H ( C ) . For the forward implication, suppose Ω ∈ PMC ( F ⊕ Z J ) \Omega\in\operatorname{PMC}(F \oplus_Z J) Ω ∈ PMC ( F ⊕ Z J ) and Ω ∉ S \Omega\notin\mathcal{S} Ω ∈ / S , and let C C C be any component of H − R H-R H − R with S = N H ( C ) S = N_H(C) S = N H ( C ) . If S = ∅ S = \varnothing S = ∅ , then S ≠ Ω S \ne\Omega S = Ω because Ω \Omega Ω is nonempty. If S ≠ ∅ S \ne\varnothing S = ∅ and S ∉ S S \notin\mathcal{S} S ∈ / S , then by definition of S \mathcal{S} S , F − S F-S F − S has a component D D D with N F ( D ) = S N_F(D) = S N F ( D ) = S . In ( F ⊕ Z J ) − S (F \oplus_Z J)-S ( F ⊕ Z J ) − S , the component D ′ D' D ′ containing D D D still satisfies N F ⊕ Z J ( D ′ ) = S N_{F \oplus_Z J}(D') = S N F ⊕ Z J ( D ′ ) = S , so S ∉ PMC ( F ⊕ Z J ) S \notin\operatorname{PMC}(F \oplus_Z J) S ∈ / PMC ( F ⊕ Z J ) and therefore S ≠ Ω S \ne\Omega S = Ω . Combining this equivalence with Lemma 9.3 gives
Ω ∈ PMC ( K ⊕ Z J ) ⟺ Ω ∈ PMC ( H ⊕ Z J ) , \Omega\in\operatorname{PMC}(K \oplus_Z J) \Longleftrightarrow\Omega\in\operatorname{PMC}(H \oplus_Z J), Ω ∈ PMC ( K ⊕ Z J ) ⟺ Ω ∈ PMC ( H ⊕ Z J ) ,
establishing (8).
For the running time, let n = ∣ V ( H ) ∣ ≥ 1 n = |V(H)| \ge1 n = ∣ V ( H ) ∣ ≥ 1 . Finding the at most n n n components of H − R H-R H − R and their neighborhoods S C S_C S C takes O ( n 2 ) O(n^2) O ( n 2 ) time, and adding the clique edges within each S C S_C S C to form F F F takes O ( n 3 ) O(n^3) O ( n 3 ) time in total. Deduplicating the bit vectors S C S_C S C and testing, for each distinct nonempty S = S C S = S_C S = S C , whether F − S F-S F − S has a full component takes O ( n 2 ) O(n^2) O ( n 2 ) time per neighborhood and O ( n 3 ) O(n^3) O ( n 3 ) time overall. Adding the at most ∣ R ∣ |R| ∣ R ∣ auxiliary vertices and forming ( I K , O K ) (I_K, O_K) ( I K , O K ) takes O ( n 2 ) O(n^2) O ( n 2 ) time. Overall, the construction runs in O ( n 3 ) O(n^3) O ( n 3 ) time.
As noted in Section 8, Theorem 9.1 preserves only those PMCs Ω \Omega Ω whose intersection with V ( H ) V(H) V ( H ) is contained in R R R . For instance, if H H H is the three-vertex path a a a –b b b –c c c with Z = I H = O H = ∅ Z = I_H = O_H = \varnothing Z = I H = O H = ∅ and k = 2 k = 2 k = 2 , then PMC 2 ( H , ∅ , ∅ ) = { { a , b } , { b , c } } \operatorname{PMC}_2(H,\varnothing,\varnothing) = \{\{a,b\}, \{b,c\}\} PMC 2 ( H , ∅ , ∅ ) = {{ a , b } , { b , c }} . If we were to choose R = { b } R = \{b\} R = { b } , then F = Tor ( H , R ) F = \operatorname{Tor}(H,R) F = Tor ( H , R ) would be the single vertex b b b , and because the deleted components { a } \{a\} { a } and { c } \{c\} { c } both have neighborhood { b } \{b\} { b } , Compress would add the excluded vertex z { b } z_{\{b\}} z { b } and leave PMC 2 ( K , ∅ , O K ) = ∅ \operatorname{PMC}_{2}(K,\emptyset,O_{K})=\emptyset PMC 2 ( K , ∅ , O K ) = ∅ . In the next section, we show how to compute a set R R R of bounded size that is guaranteed to retain at least one solution whenever one exists.
Choosing the vertices to retain
When the input graph G G G is ( q , k ) (q,k) ( q , k ) -breakable, it admits a separation ( L , Z , U ) (L,Z,U) ( L , Z , U ) with ∣ Z ∣ ≤ k |Z|\leq k ∣ Z ∣ ≤ k , ∣ L ∣ > q |L|>q ∣ L ∣ > q , and ∣ U ∣ > q |U|>q ∣ U ∣ > q , decomposing G G G as G = H ⊕ Z J G=H\oplus_{Z}J G = H ⊕ Z J where
H : = G [ L ∪ Z ] , J : = G [ U ∪ Z ] . H\mathrel{\mathop{:=}}G[L\cup Z],\qquad J\mathrel{\mathop{:=}}G[U\cup Z]. H := G [ L ∪ Z ] , J := G [ U ∪ Z ] .
In this section, we assume that the piece H H H is ( q , k ) (q,k) ( q , k ) -unbreakable (we remove this assumption in § 11 , where we handle pieces that are themselves breakable). Our goal is to replace H H H with a graph K K K of size bounded in terms of k k k such that V ( K ) ∩ V ( J ) = Z V(K)\cap V(J)=Z V ( K ) ∩ V ( J ) = Z and replacing H H H by K K K preserves the existence of a constrained PMC of size at most k k k .
By Corollary 9.2, once we fix a retained subset R ⊆ V ( H ) R\subseteq V(H) R ⊆ V ( H ) containing Z ∪ ( I ∩ V ( H ) ) Z\cup(I\cap V(H)) Z ∪ ( I ∩ V ( H )) , the procedure Compress constructs a graph K K K with ∣ V ( K ) ∣ ≤ 2 ∣ R ∣ |V(K)|\leq2|R| ∣ V ( K ) ∣ ≤ 2∣ R ∣ such that any candidate Ω ⊆ R ∪ V ( J ) \Omega\subseteq R\cup V(J) Ω ⊆ R ∪ V ( J ) belongs to PMC k ( H ⊕ Z J , I , O ) \operatorname{PMC}_{k}(H\oplus_{Z}J,I,O) PMC k ( H ⊕ Z J , I , O ) if and only if Ω \Omega Ω belongs to PMC k ( K ⊕ Z J , I K ∪ ( I ∩ V ( J ) ) , O K ∪ ( O ∩ V ( J ) ) ) \operatorname{PMC}_{k}(K\oplus_{Z}J,I_{K}\cup(I\cap V(J)),O_{K}\cup(O\cap V(J))) PMC k ( K ⊕ Z J , I K ∪ ( I ∩ V ( J )) , O K ∪ ( O ∩ V ( J ))) . To ensure that K ⊕ Z J K\oplus_{Z}J K ⊕ Z J is an equivalent instance whenever PMC k ( G , I , O ) ≠ ∅ \operatorname{PMC}_{k}(G,I,O)\neq\emptyset PMC k ( G , I , O ) = ∅ , we must choose R R R of size bounded in terms of k k k so that PMC k ( G , I , O ) \operatorname{PMC}_{k}(G,I,O) PMC k ( G , I , O ) contains at least one witness Q Q Q satisfying Q ∩ V ( H ) ⊆ R Q\cap V(H)\subseteq R Q ∩ V ( H ) ⊆ R .
In fact, we establish a universal guarantee without inspecting the outside subgraph J J J : given ( H , Z , k , I H , O H , q ) (H,Z,k,I_{H},O_{H},q) ( H , Z , k , I H , O H , q ) , we construct a set R ⊆ V ( H ) R\subseteq V(H) R ⊆ V ( H ) that works simultaneously for every graph J ′ J' J ′ satisfying V ( H ) ∩ V ( J ′ ) = Z V(H)\cap V(J')=Z V ( H ) ∩ V ( J ′ ) = Z and every choice of constraints I J ′ , O J ′ ⊆ V ( J ′ ) I_{J'},O_{J'}\subseteq V(J') I J ′ , O J ′ ⊆ V ( J ′ ) . Whenever H ⊕ Z J ′ H\oplus_{Z}J' H ⊕ Z J ′ admits a constrained PMC of size at most k k k , at least one such PMC intersects V ( H ) V(H) V ( H ) solely within R R R . Combined with Compress, the resulting graph K K K can replace H H H inside any host graph attached along Z Z Z .
The key observation behind our construction of R R R is that although an outside graph J ′ J' J ′ may be arbitrarily large, any PMC Ω \Omega Ω of size at most k k k in H ⊕ Z J ′ H\oplus_{Z}J' H ⊕ Z J ′ selects a subset X = Ω ∩ V ( J ′ ) X=\Omega\cap V(J') X = Ω ∩ V ( J ′ ) of at most k k k vertices from J ′ J' J ′ . As we show in Lemma 10.2, for any fixed X ⊆ V ( J ′ ) X\subseteq V(J') X ⊆ V ( J ′ ) of size at most k k k , the torso Tor ( J ′ , Z ∪ X ) \operatorname{Tor}(J',Z\cup X) Tor ( J ′ , Z ∪ X ) augmented with at most one excluded auxiliary vertex yields a graph J X ′ J'_{X} J X ′ on at most ∣ Z ∣ + k + 1 |Z|+k+1 ∣ Z ∣ + k + 1 vertices such that a subset of V ( H ) V(H) V ( H ) extends X X X to a PMC in H ⊕ Z J ′ H\oplus_{Z}J' H ⊕ Z J ′ if and only if it extends X X X to a PMC in H ⊕ Z J X ′ H\oplus_{Z}J'_{X} H ⊕ Z J X ′ .
We can therefore enumerate, up to vertex naming outside H H H , all simple test graphs T T T consisting of Z Z Z and at most k + 1 k+1 k + 1 fresh vertices, together with all subsets I T ⊆ V ( T ) I_{T}\subseteq V(T) I T ⊆ V ( T ) of size at most k k k and O T = V ( T ) ∖ I T O_{T}=V(T)\setminus I_{T} O T = V ( T ) ∖ I T . Because H H H is ( q , k ) (q,k) ( q , k ) -unbreakable and T T T adds at most k + 1 k+1 k + 1 vertices outside H H H , each attached graph H ⊕ Z T H\oplus_{Z}T H ⊕ Z T is ( q + k + 1 , k ) (q+k+1,k) ( q + k + 1 , k ) -unbreakable. We invoke Local with threshold q + k + 1 q+k+1 q + k + 1 on ( H ⊕ Z T , k , I H ∪ I T , O H ∪ O T ) (H\oplus_{Z}T,k,I_{H}\cup I_{T},O_{H}\cup O_{T}) ( H ⊕ Z T , k , I H ∪ I T , O H ∪ O T ) for every such test triple and collect the intersections with V ( H ) V(H) V ( H ) of all returned PMCs into R R R . If H ⊕ Z J ′ H\oplus_{Z}J' H ⊕ Z J ′ admits a constrained PMC Ω \Omega Ω with Ω ∩ V ( J ′ ) = X \Omega\cap V(J')=X Ω ∩ V ( J ′ ) = X , the test triple corresponding to ( J X ′ , X , V ( J X ′ ) ∖ X ) (J'_{X},X,V(J'_{X})\setminus X) ( J X ′ , X , V ( J X ′ ) ∖ X ) succeeds, and replacing the test vertices in its returned witness Ω T , I T ∩ V ( H ) ∖ X \Omega_{T,I_{T}\cap V(H)}\setminus X Ω T , I T ∩ V ( H ) ∖ X produces a valid constrained PMC Q Q Q of H ⊕ Z J ′ H\oplus_{Z}J' H ⊕ Z J ′ satisfying Q ∩ V ( H ) = Ω T , I T ∩ V ( H ) ⊆ R Q\cap V(H)=\Omega_{T,I_{T}\cap V(H)}\subseteq R Q ∩ V ( H ) = Ω T , I T ∩ V ( H ) ⊆ R .
Theorem 10.1 states the formal guarantee and runtime bound for constructing R R R . We keep b = ∣ Z ∣ b=|Z| b = ∣ Z ∣ explicit in the statement because our recursive reduction in § 11 applies this theorem to boundaries of size b ≤ 2 k b\leq2k b ≤ 2 k .
Theorem 10.1 (Choosing the retained vertices). Let q , k ≥ 1 q,k \ge1 q , k ≥ 1 be integers, let H H H be a ( q , k ) (q,k) ( q , k ) -unbreakable graph with n = ∣ V ( H ) ∣ ≥ 1 n=|V(H)| \ge1 n = ∣ V ( H ) ∣ ≥ 1 , and let Z , I H , O H ⊆ V ( H ) Z,I_H,O_H \subseteq V(H) Z , I H , O H ⊆ V ( H ) , where ∣ I H ∣ ≤ k |I_H| \le k ∣ I H ∣ ≤ k . Put
b = ∣ Z ∣ , m = b + k + 1 , τ b , k = ( k + 2 ) 2 ( m 2 ) + m . b=|Z|,\qquad m=b+k+1,\qquad\tau_{b,k}=(k+2)2^{\binom{m}{2}}+m. b = ∣ Z ∣ , m = b + k + 1 , τ b , k = ( k + 2 ) 2 ( 2 m ) + m . There is a deterministic algorithm that returns a set Z ∪ I H ⊆ R ⊆ V ( H ) Z\cup I_H \subseteq R \subseteq V(H) Z ∪ I H ⊆ R ⊆ V ( H ) with ∣ R ∣ ≤ b + k τ b , k |R| \le b+k\tau_{b,k} ∣ R ∣ ≤ b + k τ b , k and the following guarantee. For every graph J J J with V ( H ) ∩ V ( J ) = Z V(H)\cap V(J)=Z V ( H ) ∩ V ( J ) = Z and every I J , O J ⊆ V ( J ) I_J,O_J \subseteq V(J) I J , O J ⊆ V ( J ) , if
PMC k ( H ⊕ Z J , I H ∪ I J , O H ∪ O J ) ≠ ∅ , \operatorname{PMC}_k(H\oplus_Z J,I_H\cup I_J,O_H\cup O_J)\ne\varnothing, PMC k ( H ⊕ Z J , I H ∪ I J , O H ∪ O J ) = ∅ , then there exists
Ω ∈ PMC k ( H ⊕ Z J , I H ∪ I J , O H ∪ O J ) such that Ω ∩ V ( H ) ⊆ R . (12) \Omega\in\operatorname{PMC}_k(H\oplus_Z J,I_H\cup I_J,O_H\cup O_J)\quad\text{such that}\quad\Omega\cap V(H)\subseteq R. \tag*{(12)} Ω ∈ PMC k ( H ⊕ Z J , I H ∪ I J , O H ∪ O J ) such that Ω ∩ V ( H ) ⊆ R . (12) The running time is
2 O ( ( b + k ) 2 + k log ( 2 + q / k ) ) n 3 . (13) 2^{O((b+k)^2+k\log(2+q/k))}n^3. \tag*{(13)} 2 O (( b + k ) 2 + k l o g ( 2 + q / k )) n 3 . (13) In particular, if b = O ( k ) b=O(k) b = O ( k ) , then ∣ R ∣ ≤ 2 O ( k 2 ) |R|\le2^{O(k^2)} ∣ R ∣ ≤ 2 O ( k 2 ) and the running time is 2 O ( k 2 + k log ( 2 + q / k ) ) n 3 2^{O(k^2+k\log(2+q/k))}n^3 2 O ( k 2 + k l o g ( 2 + q / k )) n 3 .
Note that if ∣ I H ∣ > k |I_H|>k ∣ I H ∣ > k , no attachment can admit a constrained PMC of size at most k k k ; if H H H is empty, then Z = I H = ∅ Z=I_H=\varnothing Z = I H = ∅ and R = ∅ R=\varnothing R = ∅ trivially satisfies Theorem 10.1.
A small attachment after fixing the selected outside vertices
Let H H H and J J J be graphs with V ( H ) ∩ V ( J ) = Z V(H)\cap V(J)=Z V ( H ) ∩ V ( J ) = Z , and fix a subset X ⊆ V ( J ) X\subseteq V(J) X ⊆ V ( J ) representing the vertices of J J J selected by a candidate Ω ⊆ V ( H ) ∪ V ( J ) \Omega\subseteq V(H)\cup V(J) Ω ⊆ V ( H ) ∪ V ( J ) (so Ω ∩ V ( J ) = X \Omega\cap V(J)=X Ω ∩ V ( J ) = X , which in particular fixes Ω ∩ Z = X ∩ Z \Omega\cap Z=X\cap Z Ω ∩ Z = X ∩ Z ). The next lemma shows that J J J can be compressed into a graph J X J_X J X on Z ∪ X Z\cup X Z ∪ X plus at most one auxiliary vertex such that J X J_X J X preserves PMC membership for all candidates Ω \Omega Ω satisfying Ω ∩ V ( J ) = X \Omega\cap V(J)=X Ω ∩ V ( J ) = X .
Lemma 10.2. Let H , J H,J H , J be graphs with V ( H ) ∩ V ( J ) = Z V(H)\cap V(J)=Z V ( H ) ∩ V ( J ) = Z , and fix X ⊆ V ( J ) X\subseteq V(J) X ⊆ V ( J ) . There is a graph J X J_X J X , constructed from J , Z , X J,Z,X J , Z , X , such that
Z ∪ X ⊆ V ( J X ) , ∣ V ( J X ) ∣ ≤ ∣ Z ∪ X ∣ + 1 , V ( J X ) ∩ V ( H ) = Z . Z\cup X\subseteq V(J_X),\qquad|V(J_X)|\le|Z\cup X|+1,\qquad V(J_X)\cap V(H)=Z. Z ∪ X ⊆ V ( J X ) , ∣ V ( J X ) ∣ ≤ ∣ Z ∪ X ∣ + 1 , V ( J X ) ∩ V ( H ) = Z . For every nonempty Ω ⊆ V ( H ) ∪ V ( J ) \Omega\subseteq V(H)\cup V(J) Ω ⊆ V ( H ) ∪ V ( J ) with Ω ∩ V ( J ) = X \Omega\cap V(J)=X Ω ∩ V ( J ) = X ,
Ω ∈ PMC ( H ⊕ Z J ) ⟺ Ω ∈ PMC ( H ⊕ Z J X ) . (14) \Omega\in\operatorname{PMC}(H\oplus_Z J)\Longleftrightarrow\Omega\in\operatorname{PMC}(H\oplus_Z J_X). \tag*{(14)} Ω ∈ PMC ( H ⊕ Z J ) ⟺ Ω ∈ PMC ( H ⊕ Z J X ) . (14) Any vertex of J X J_X J X outside Z ∪ X Z\cup X Z ∪ X is a new auxiliary vertex.
Proof. Set W ≔ Z ∪ X W\mathrel{\coloneqq} Z\cup X W : = Z ∪ X and F ≔ Tor ( J , W ) F\mathrel{\coloneqq}\operatorname{Tor}(J,W) F : = Tor ( J , W ) . If X ≠ ∅ X\ne\varnothing X = ∅ and some connected component C C C of J − W J-W J − W satisfies N J ( C ) = X N_J(C)=X N J ( C ) = X , we define J X J_X J X by adding to F F F a single fresh vertex z z z (disjoint from V ( H ) ∪ V ( J ) V(H)\cup V(J) V ( H ) ∪ V ( J ) ) adjacent precisely to X X X ; otherwise, we set J X = F J_X=F J X = F . By construction, Z ∪ X ⊆ V ( J X ) Z\cup X\subseteq V(J_X) Z ∪ X ⊆ V ( J X ) , ∣ V ( J X ) ∣ ≤ ∣ Z ∪ X ∣ + 1 |V(J_X)|\le|Z\cup X|+1 ∣ V ( J X ) ∣ ≤ ∣ Z ∪ X ∣ + 1 , and V ( J X ) ∩ V ( H ) = Z V(J_X)\cap V(H)=Z V ( J X ) ∩ V ( H ) = Z .
Let Ω ⊆ V ( H ) ∪ V ( J ) \Omega\subseteq V(H)\cup V(J) Ω ⊆ V ( H ) ∪ V ( J ) be any nonempty set with Ω ∩ V ( J ) = X \Omega\cap V(J)=X Ω ∩ V ( J ) = X , so Ω ⊆ V ( H ) ∪ W \Omega\subseteq V(H)\cup W Ω ⊆ V ( H ) ∪ W and Ω ∩ W = X \Omega\cap W=X Ω ∩ W = X . Applying Lemma 9.3 with J J J in the role of the compressed piece, W W W as its retained set, and H H H as the graph attached along Z Z Z yields
Ω ∈ PMC ( H ⊕ Z J ) ⟺ Ω ∈ PMC ( H ⊕ Z F ) and Ω ≠ N J ( C ) for every component C of J − W . (15) \Omega\in\operatorname{PMC}(H\oplus_Z J)\Longleftrightarrow\Omega\in\operatorname{PMC}(H\oplus_Z F)\ \text{and}\ \Omega\ne N_J(C)\ \text{for every component }C\text{ of }J-W. \tag*{(15)} Ω ∈ PMC ( H ⊕ Z J ) ⟺ Ω ∈ PMC ( H ⊕ Z F ) and Ω = N J ( C ) for every component C of J − W . (15)
Because N J ( C ) ⊆ W N_J(C) \subseteq W N J ( C ) ⊆ W for every component C C C of J − W J-W J − W , the equality Ω = N J ( C ) \Omega= N_J(C) Ω = N J ( C ) can hold only if Ω ⊆ W \Omega\subseteq W Ω ⊆ W , which forces Ω = Ω ∩ W = X \Omega= \Omega\cap W = X Ω = Ω ∩ W = X . Thus, among candidates satisfying Ω ∩ V ( J ) = X \Omega\cap V(J) = X Ω ∩ V ( J ) = X , the condition Ω ≠ N J ( C ) \Omega\ne N_J(C) Ω = N J ( C ) in (15) can be violated only when Ω = X = N J ( C ) \Omega= X = N_J(C) Ω = X = N J ( C ) .
If J X = F J_X = F J X = F (no auxiliary vertex was added), then either X = ∅ X = \varnothing X = ∅ (whereas Ω ≠ ∅ \Omega\ne\varnothing Ω = ∅ ) or no component C C C of J − W J-W J − W has N J ( C ) = X N_J(C) = X N J ( C ) = X ; in either case, Ω ≠ N J ( C ) \Omega\ne N_J(C) Ω = N J ( C ) holds automatically for all components C C C of J − W J-W J − W , and (15) reduces to (14) .
If instead the auxiliary vertex z z z was added to form J X J_X J X , then some component C C C of J − W J-W J − W has N J ( C ) = X N_J(C) = X N J ( C ) = X , so the second condition in (15) simplifies to Ω ≠ X \Omega\ne X Ω = X . Because X = N J ( C ) X = N_J(C) X = N J ( C ) , the torso operation turns X X X into a clique in F F F (and hence in H ⊕ Z F H \oplus_Z F H ⊕ Z F ), and z ∉ Ω z \notin\Omega z ∈ / Ω . Applying Lemma 9.4 to H ⊕ Z F H \oplus_Z F H ⊕ Z F and the clique X X X gives
Ω ∈ PMC ( H ⊕ Z J X ) ⟺ Ω ∈ PMC ( H ⊕ Z F ) and Ω ≠ X . \Omega\in\operatorname{PMC}(H \oplus_Z J_X) \Longleftrightarrow\Omega\in\operatorname{PMC}(H \oplus_Z F) \text{ and } \Omega\ne X. Ω ∈ PMC ( H ⊕ Z J X ) ⟺ Ω ∈ PMC ( H ⊕ Z F ) and Ω = X .
which matches (15) and completes the proof.
Notice that if we impose the inclusion constraint I J X = X I_{J_X} = X I J X = X and exclusion constraint O J X = V ( J X ) ∖ X O_{J_X} = V(J_X) \setminus X O J X = V ( J X ) ∖ X on J X J_X J X (which in particular excludes the auxiliary vertex z z z , if present, as well as Z ∖ X Z \setminus X Z ∖ X ), then every constrained PMC Ω \Omega Ω of H ⊕ Z J X H \oplus_Z J_X H ⊕ Z J X satisfies Ω ⊆ V ( H ) ∪ X \Omega\subseteq V(H) \cup X Ω ⊆ V ( H ) ∪ X and Ω ∩ V ( J ) = X \Omega\cap V(J) = X Ω ∩ V ( J ) = X , so Lemma 10.2 applies in both directions.
Retaining one solution for each successful test
Lemma 10.2 allows us to construct R ⊆ V ( H ) R \subseteq V(H) R ⊆ V ( H ) by testing all possible small attachments T T T on Z Z Z plus at most k + 1 k+1 k + 1 fresh vertices. Specifically, fix k + 1 k+1 k + 1 distinct fresh vertex names p 1 , … , p k + 1 ∉ V ( H ) p_1,\ldots,p_{k+1} \notin V(H) p 1 , … , p k + 1 ∈ / V ( H ) . For each s ∈ { 0 , … , k + 1 } s \in\{0,\ldots,k+1\} s ∈ { 0 , … , k + 1 } , we enumerate every simple graph T T T on vertex set Z ∪ { p 1 , … , p s } Z \cup\{p_1,\ldots,p_s\} Z ∪ { p 1 , … , p s } (including all possible edge subsets within Z Z Z ) and every subset I T ⊆ V ( T ) I_T \subseteq V(T) I T ⊆ V ( T ) with ∣ I T ∣ ≤ k |I_T| \le k ∣ I T ∣ ≤ k , setting O T = V ( T ) ∖ I T O_T = V(T) \setminus I_T O T = V ( T ) ∖ I T . Let T Z , k \mathcal{T}_{Z,k} T Z , k denote the family of all such test triples ( T , I T , O T ) (T,I_T,O_T) ( T , I T , O T ) . A test triple ( T , I T , O T ) ∈ T Z , k (T,I_T,O_T) \in\mathcal{T}_{Z,k} ( T , I T , O T ) ∈ T Z , k is called successful if
PMC k ( H ⊕ Z T , I H ∪ I T , O H ∪ O T ) ≠ ∅ . \operatorname{PMC}_k(H \oplus_Z T,I_H \cup I_T,O_H \cup O_T) \ne\varnothing. PMC k ( H ⊕ Z T , I H ∪ I T , O H ∪ O T ) = ∅ .
Setting b = ∣ Z ∣ b = |Z| b = ∣ Z ∣ and m = b + k + 1 m = b+k+1 m = b + k + 1 , the number of test triples in T Z , k \mathcal{T}_{Z,k} T Z , k is bounded by
∣ T Z , k ∣ = ∑ s = 0 k + 1 2 ( b + s 2 ) ∑ i = 0 min { k , b + s } ( b + s i ) ≤ ( k + 2 ) 2 ( m 2 ) + m = τ b , k . (16) |\mathcal{T}_{Z,k}| = \sum_{s=0}^{k+1} 2^{\binom{b+s}{2}} \sum_{i=0}^{\min\{k,b+s\}} \binom{b+s}{i} \le(k+2)2^{\binom{m}{2}+m} = \tau_{b,k}. \tag*{(16)} ∣ T Z , k ∣ = s = 0 ∑ k + 1 2 ( 2 b + s ) i = 0 ∑ m i n { k , b + s } ( i b + s ) ≤ ( k + 2 ) 2 ( 2 m ) + m = τ b , k . (16)
where 2 ( b + s 2 ) 2^{\binom{b+s}{2}} 2 ( 2 b + s ) counts the possible edge sets on Z ∪ { p 1 , … , p s } Z \cup\{p_1,\ldots,p_s\} Z ∪ { p 1 , … , p s } and the inner sum counts the choices of I T I_T I T .
Lemma 10.3. Let H H H be a graph, let k ≥ 1 k \ge1 k ≥ 1 be an integer, and let Z , I H , O H ⊆ V ( H ) Z,I_H,O_H \subseteq V(H) Z , I H , O H ⊆ V ( H ) . Fix distinct vertices p 1 , … , p k + 1 p_1,\ldots,p_{k+1} p 1 , … , p k + 1 outside V ( H ) V(H) V ( H ) . Define T Z , k \mathcal{T}_{Z,k} T Z , k to be the family of all triples ( T , I T , O T ) (T,I_T,O_T) ( T , I T , O T ) where:
T T T is a simple graph on Z ∪ { p 1 , … , p s } Z \cup\{p_1,\ldots,p_s\} Z ∪ { p 1 , … , p s } for some s ∈ { 0 , … , k + 1 } s \in\{0,\ldots,k+1\} s ∈ { 0 , … , k + 1 } ;
I T ⊆ V ( T ) I_T \subseteq V(T) I T ⊆ V ( T ) and ∣ I T ∣ ≤ k |I_T| \le k ∣ I T ∣ ≤ k ;
O T = V ( T ) ∖ I T O_T = V(T) \setminus I_T O T = V ( T ) ∖ I T .
A triple ( T , I T , O T ) (T,I_T,O_T) ( T , I T , O T ) is successful if PMC k ( H ⊕ Z T , I H ∪ I T , O H ∪ O T ) ≠ ∅ \operatorname{PMC}_k(H \oplus_Z T,I_H \cup I_T,O_H \cup O_T) \ne\varnothing PMC k ( H ⊕ Z T , I H ∪ I T , O H ∪ O T ) = ∅ . For each successful triple, choose one such PMC Ω T , I T \Omega_{T,I_T} Ω T , I T , and put
R = Z ∪ I H ∪ ⋃ ( T , I T , O T ) ∈ T Z , k successful ( Ω T , I T ∩ V ( H ) ) . R = Z \cup I_H \cup\bigcup_{\substack{(T,I_T,O_T)\in\mathcal{T}_{Z,k}\\ \text{successful}}} \left(\Omega_{T,I_T} \cap V(H)\right). R = Z ∪ I H ∪ ( T , I T , O T ) ∈ T Z , k successful ⋃ ( Ω T , I T ∩ V ( H ) ) .
For every graph J J J with V ( H ) ∩ V ( J ) = Z V(H) \cap V(J) = Z V ( H ) ∩ V ( J ) = Z and every I J , O J ⊆ V ( J ) I_J,O_J \subseteq V(J) I J , O J ⊆ V ( J ) , if PMC k ( H ⊕ Z J , I H ∪ I J , O H ∪ O J ) ≠ ∅ \operatorname{PMC}_k(H \oplus_Z J,I_H \cup I_J,O_H \cup O_J) \ne\emptyset PMC k ( H ⊕ Z J , I H ∪ I J , O H ∪ O J ) = ∅ , then this family contains a PMC Ω \Omega Ω satisfying Ω ∩ V ( H ) ⊆ R \Omega\cap V(H) \subseteq R Ω ∩ V ( H ) ⊆ R .
Proof. Let J J J be any graph with V ( H ) ∩ V ( J ) = Z V(H) \cap V(J) = Z V ( H ) ∩ V ( J ) = Z , let I J , O J ⊆ V ( J ) I_J,O_J \subseteq V(J) I J , O J ⊆ V ( J ) , and suppose there exists Ω ∈ PMC k ( H ⊕ Z J , I H ∪ I J , O H ∪ O J ) \Omega\in\operatorname{PMC}_k(H \oplus_Z J,I_H \cup I_J,O_H \cup O_J) Ω ∈ PMC k ( H ⊕ Z J , I H ∪ I J , O H ∪ O J ) . Set X = Ω ∩ V ( J ) X = \Omega\cap V(J) X = Ω ∩ V ( J ) , so ∣ X ∣ ≤ ∣ Ω ∣ ≤ k |X| \leq|\Omega| \leq k ∣ X ∣ ≤ ∣Ω∣ ≤ k , I J ⊆ X I_J \subseteq X I J ⊆ X , and X ∩ O J = ∅ X \cap O_J = \emptyset X ∩ O J = ∅ . Let J X J_X J X be the graph obtained from ( J , Z , X ) (J,Z,X) ( J , Z , X ) by Lemma 10.2. Since ∣ V ( J X ) ∖ Z ∣ ≤ ∣ X ∖ Z ∣ + 1 ≤ k + 1 |V(J_X) \setminus Z| \leq|X \setminus Z| + 1 \leq k + 1 ∣ V ( J X ) ∖ Z ∣ ≤ ∣ X ∖ Z ∣ + 1 ≤ k + 1 , renaming the s = ∣ V ( J X ) ∖ Z ∣ s = |V(J_X) \setminus Z| s = ∣ V ( J X ) ∖ Z ∣ vertices of V ( J X ) ∖ Z V(J_X) \setminus Z V ( J X ) ∖ Z to p 1 , … , p s p_1,\ldots,p_s p 1 , … , p s while keeping all vertices of V ( H ) V(H) V ( H ) (and thus of Z Z Z ) fixed maps ( J X , X , V ( J X ) ∖ X ) (J_X,X,V(J_X) \setminus X) ( J X , X , V ( J X ) ∖ X ) to a test triple ( T , I T , O T ) ∈ T Z , k (T,I_T,O_T) \in\mathcal{T}_{Z,k} ( T , I T , O T ) ∈ T Z , k .
By Lemma 10.2, since Ω ∈ PMC ( H ⊕ Z J ) \Omega\in\operatorname{PMC}(H \oplus_Z J) Ω ∈ PMC ( H ⊕ Z J ) and Ω ∩ V ( J ) = X \Omega\cap V(J) = X Ω ∩ V ( J ) = X , we have Ω ∈ PMC ( H ⊕ Z J X ) \Omega\in\operatorname{PMC}(H \oplus_Z J_X) Ω ∈ PMC ( H ⊕ Z J X ) . Because Ω \Omega Ω has size at most k k k , satisfies ( I H , O H ) (I_H,O_H) ( I H , O H ) on H H H , and intersects V ( J X ) V(J_X) V ( J X ) in X X X , its image under the vertex renaming on V ( J X ) ∖ Z V(J_X) \setminus Z V ( J X ) ∖ Z belongs to PMC k ( H ⊕ Z T , I H ∪ I T , O H ∪ O T ) \operatorname{PMC}_k(H \oplus_Z T,I_H \cup I_T,O_H \cup O_T) PMC k ( H ⊕ Z T , I H ∪ I T , O H ∪ O T ) . Thus ( T , I T , O T ) (T,I_T,O_T) ( T , I T , O T ) is successful.
Now let Ω T , I T ∈ PMC k ( H ⊕ Z T , I H ∪ I T , O H ∪ O T ) \Omega_{T,I_T} \in\operatorname{PMC}_k(H \oplus_Z T,I_H \cup I_T,O_H \cup O_T) Ω T , I T ∈ PMC k ( H ⊕ Z T , I H ∪ I T , O H ∪ O T ) be the witness chosen for ( T , I T , O T ) (T,I_T,O_T) ( T , I T , O T ) , and let Ω ′ \Omega' Ω ′ be the set obtained from Ω T , I T \Omega_{T,I_T} Ω T , I T by applying the inverse renaming from { p 1 , … , p s } \{p_1,\ldots,p_s\} { p 1 , … , p s } back to V ( J X ) ∖ Z V(J_X) \setminus Z V ( J X ) ∖ Z . Then Ω ′ ∈ PMC k ( H ⊕ Z J X , I H ∪ X , O H ∪ ( V ( J X ) ∖ X ) ) \Omega' \in\operatorname{PMC}_k(H \oplus_Z J_X,I_H \cup X,O_H \cup(V(J_X) \setminus X)) Ω ′ ∈ PMC k ( H ⊕ Z J X , I H ∪ X , O H ∪ ( V ( J X ) ∖ X )) . In particular, Ω ′ ∩ V ( J X ) = X ⊆ V ( J ) \Omega' \cap V(J_X) = X \subseteq V(J) Ω ′ ∩ V ( J X ) = X ⊆ V ( J ) , so Ω ′ ⊆ V ( H ) ∪ V ( J ) \Omega' \subseteq V(H) \cup V(J) Ω ′ ⊆ V ( H ) ∪ V ( J ) and Ω ′ ∩ V ( J ) = X \Omega' \cap V(J) = X Ω ′ ∩ V ( J ) = X . By the reverse direction of Lemma 10.2, Ω ′ ∈ PMC ( H ⊕ Z J ) \Omega' \in\operatorname{PMC}(H \oplus_Z J) Ω ′ ∈ PMC ( H ⊕ Z J ) . Since ∣ Ω ′ ∣ = ∣ Ω T , I T ∣ ≤ k |\Omega'| = |\Omega_{T,I_T}| \leq k ∣ Ω ′ ∣ = ∣ Ω T , I T ∣ ≤ k , I J ⊆ X = Ω ′ ∩ V ( J ) I_J \subseteq X = \Omega' \cap V(J) I J ⊆ X = Ω ′ ∩ V ( J ) , and O J ∩ Ω ′ = O J ∩ X = ∅ O_J \cap\Omega' = O_J \cap X = \emptyset O J ∩ Ω ′ = O J ∩ X = ∅ , we have
Ω ′ ∈ PMC k ( H ⊕ Z J , I H ∪ I J , O H ∪ O J ) . \Omega' \in\operatorname{PMC}_k(H \oplus_Z J,I_H \cup I_J,O_H \cup O_J). Ω ′ ∈ PMC k ( H ⊕ Z J , I H ∪ I J , O H ∪ O J ) .
Because the bijection between V ( J X ) V(J_X) V ( J X ) and V ( T ) V(T) V ( T ) is the identity on V ( H ) V(H) V ( H ) , we conclude that Ω ′ ∩ V ( H ) = Ω T , I T ∩ V ( H ) ⊆ R \Omega' \cap V(H) = \Omega_{T,I_T} \cap V(H) \subseteq R Ω ′ ∩ V ( H ) = Ω T , I T ∩ V ( H ) ⊆ R .
Notice that if every test in T Z , k \mathcal{T}_{Z,k} T Z , k fails, Lemma 10.3 implies that PMC k ( H ⊕ Z J , I H ∪ I J , O H ∪ O J ) = ∅ \operatorname{PMC}_k(H \oplus_Z J,I_H \cup I_J,O_H \cup O_J) = \emptyset PMC k ( H ⊕ Z J , I H ∪ I J , O H ∪ O J ) = ∅ for every outside attachment J J J , so returning R = Z ∪ I H R = Z \cup I_H R = Z ∪ I H vacuously satisfies the guarantee.
Computing the retained set using Local
Algorithm 4 (ChooseR) implements the construction of Lemma 10.3 by invoking Local (Algorithm 1) on each test instance G T = H ⊕ Z T G_T = H \oplus_Z T G T = H ⊕ Z T with unbreakability threshold q + k + 1 q + k + 1 q + k + 1 .
Algorithm 4 ChooseR(H, Z, k, I_H, O_H, q)
Require: H is (q, k)-unbreakable; q, k ≥ 1; Z, I_H, O_H ⊆ V(H); |I_H| ≤ k
Ensure: A retained set R satisfying {xref}`(12)`
1: R ← Z ∪ I_H
2: for each (T, I_T, O_T) ∈ 𝒯_{Z,k}, generated one at a time do
3: G_T ← H ⊕_Z T
4: I_T^+ ← I_H ∪ I_T; O_T^+ ← O_H ∪ O_T
5: Ω_{T,I_T} ← Local(G_T, k, I_T^+, O_T^+, q + k + 1)
6: if Ω_{T,I_T} ≠ No then
7: R ← R ∪ (Ω_{T,I_T} ∩ V(H))
8: end if
9: end for
10: return R
Theorem 10.1. Let q , k ≥ 1 q,k \geq1 q , k ≥ 1 be integers, let H H H be a ( q , k ) (q,k) ( q , k ) -unbreakable graph with n = ∣ V ( H ) ∣ ≥ 1 n = |V(H)| \geq1 n = ∣ V ( H ) ∣ ≥ 1 , and let Z , I H , O H ⊆ V ( H ) Z,I_H,O_H \subseteq V(H) Z , I H , O H ⊆ V ( H ) , where ∣ I H ∣ ≤ k |I_H| \leq k ∣ I H ∣ ≤ k . Put
b = ∣ Z ∣ , m = b + k + 1 , τ b , k = ( k + 2 ) 2 ( m 2 ) + m . (17) b = |Z|,\qquad m = b + k + 1,\qquad\tau_{b,k} = (k+2)2^{\binom{m}{2}+m}. \tag*{(17)} b = ∣ Z ∣ , m = b + k + 1 , τ b , k = ( k + 2 ) 2 ( 2 m ) + m . (17)
There is a deterministic algorithm that returns a set Z ∪ I H ⊆ R ⊆ V ( H ) Z \cup I_H \subseteq R \subseteq V(H) Z ∪ I H ⊆ R ⊆ V ( H ) with ∣ R ∣ ≤ b + k τ b , k |R| \le b + k\tau_{b,k} ∣ R ∣ ≤ b + k τ b , k and the following guarantee. For every graph J J J with V ( H ) ∩ V ( J ) = Z V(H) \cap V(J) = Z V ( H ) ∩ V ( J ) = Z and every I J , O J ⊆ V ( J ) I_J, O_J \subseteq V(J) I J , O J ⊆ V ( J ) , if
PMC k ( H ⊕ Z J , I H ∪ I J , O H ∪ O J ) ≠ ∅ , \operatorname{PMC}_k(H \oplus_Z J, I_H \cup I_J, O_H \cup O_J) \ne\emptyset, PMC k ( H ⊕ Z J , I H ∪ I J , O H ∪ O J ) = ∅ ,
then there exists
Ω ∈ PMC k ( H ⊕ Z J , I H ∪ I J , O H ∪ O J ) such that Ω ∩ V ( H ) ⊆ R . (18) \Omega\in\operatorname{PMC}_k(H \oplus_Z J, I_H \cup I_J, O_H \cup O_J) \quad\text{such that} \quad\Omega\cap V(H) \subseteq R. \tag*{(18)} Ω ∈ PMC k ( H ⊕ Z J , I H ∪ I J , O H ∪ O J ) such that Ω ∩ V ( H ) ⊆ R . (18)
The running time is
2 O ( ( b + k ) 2 + k log ( 2 + q / k ) ) n 3 . (19) 2^{O((b+k)^2+k\log(2+q/k))}n^3. \tag*{(19)} 2 O (( b + k ) 2 + k l o g ( 2 + q / k )) n 3 . (19)
In particular, if b = O ( k ) b = O(k) b = O ( k ) , then ∣ R ∣ ≤ 2 O ( k 2 ) |R| \le2^{O(k^2)} ∣ R ∣ ≤ 2 O ( k 2 ) and the running time is 2 O ( k 2 + k log ( 2 + q / k ) ) n 3 2^{O(k^2+k\log(2+q/k))}n^3 2 O ( k 2 + k l o g ( 2 + q / k )) n 3 .
Proof. We first verify that G T = H ⊕ Z T G_T = H \oplus_Z T G T = H ⊕ Z T is ( q + k + 1 , k ) (q+k+1,k) ( q + k + 1 , k ) -unbreakable for every ( T , I T , O T ) ∈ T Z , k (T,I_T,O_T) \in\mathcal{T}_{Z,k} ( T , I T , O T ) ∈ T Z , k . Let ( L ′ , Z ′ , U ′ ) (L',Z',U') ( L ′ , Z ′ , U ′ ) be any separation of G T G_T G T of order ∣ Z ′ ∣ ≤ k |Z'| \le k ∣ Z ′ ∣ ≤ k . Restricting ( L ′ , Z ′ , U ′ ) (L',Z',U') ( L ′ , Z ′ , U ′ ) to V ( H ) V(H) V ( H ) gives a separation ( L ′ ∩ V ( H ) , Z ′ ∩ V ( H ) , U ′ ∩ V ( H ) ) (L' \cap V(H),Z' \cap V(H),U' \cap V(H)) ( L ′ ∩ V ( H ) , Z ′ ∩ V ( H ) , U ′ ∩ V ( H )) of H H H of order at most k k k . Because H H H is ( q , k ) (q,k) ( q , k ) -unbreakable, at least one side—say L ′ ∩ V ( H ) L' \cap V(H) L ′ ∩ V ( H ) —has size at most q q q . Since ∣ V ( G T ) ∖ V ( H ) ∣ ≤ k + 1 |V(G_T)\setminus V(H)| \le k+1 ∣ V ( G T ) ∖ V ( H ) ∣ ≤ k + 1 , we have ∣ L ′ ∣ ≤ ∣ L ′ ∩ V ( H ) ∣ + k + 1 ≤ q + k + 1 |L'| \le|L' \cap V(H)| + k + 1 \le q+k+1 ∣ L ′ ∣ ≤ ∣ L ′ ∩ V ( H ) ∣ + k + 1 ≤ q + k + 1 , so G T G_T G T is ( q + k + 1 , k ) (q+k+1,k) ( q + k + 1 , k ) -unbreakable.
By Theorem 3.1 , each call to Local ( G T , k , I T + , O T + , q + k + 1 ) \operatorname{Local}(G_T,k,I_T^+,O_T^+,q+k+1) Local ( G T , k , I T + , O T + , q + k + 1 ) in line 5 of Algorithm 4 correctly returns a witness Ω T , I T ∈ PMC k ( G T , I T + , O T + ) \Omega_{T,I_T} \in\operatorname{PMC}_k(G_T,I_T^+,O_T^+) Ω T , I T ∈ PMC k ( G T , I T + , O T + ) whenever the test is successful and returns No otherwise. Lemma 10.3 therefore ensures that the returned set R R R satisfies (12) .
To bound ∣ R ∣ |R| ∣ R ∣ , observe that if at least one test succeeds, then I H ⊆ Ω T , I T ∩ V ( H ) I_H \subseteq\Omega_{T,I_T} \cap V(H) I H ⊆ Ω T , I T ∩ V ( H ) for every successful test, so R R R is the union of Z Z Z (of size b b b ) with at most τ b , k \tau_{b,k} τ b , k sets Ω T , I T ∩ V ( H ) \Omega_{T,I_T} \cap V(H) Ω T , I T ∩ V ( H ) of size at most k k k each, so ∣ R ∣ ≤ b + k τ b , k |R| \le b + k\tau_{b,k} ∣ R ∣ ≤ b + k τ b , k . If every test fails, then R = Z ∪ I H R = Z \cup I_H R = Z ∪ I H has size at most b + k ≤ b + k τ b , k b+k \le b+k\tau_{b,k} b + k ≤ b + k τ b , k .
Finally, we analyze the running time. Each test graph T T T has at most m = b + k + 1 m=b+k+1 m = b + k + 1 vertices, and there are at most τ b , k = 2 O ( ( b + k ) 2 ) \tau_{b,k}=2^{O((b+k)^2)} τ b , k = 2 O (( b + k ) 2 ) triples in T Z , k \mathcal{T}_{Z,k} T Z , k . For each triple, constructing G T G_T G T on at most n + k + 1 n+k+1 n + k + 1 vertices and updating R R R takes O ( ( n + k + 1 ) 2 ) O((n+k+1)^2) O (( n + k + 1 ) 2 ) time, and by Theorem 3.1 , the call to Local runs in time
2 O ( k log ( 2 + ( q + k + 1 ) / k ) ) ( n + k + 1 ) 3 = 2 O ( k log ( 2 + q / k ) ) ( n + k + 1 ) 3 , 2^{O(k\log(2+(q+k+1)/k))}(n+k+1)^3
=
2^{O(k\log(2+q/k))}(n+k+1)^3, 2 O ( k l o g ( 2 + ( q + k + 1 ) / k )) ( n + k + 1 ) 3 = 2 O ( k l o g ( 2 + q / k )) ( n + k + 1 ) 3 ,
since q , k ≥ 1 q,k \ge1 q , k ≥ 1 implies log ( 2 + ( q + k + 1 ) / k ) = Θ ( log ( 2 + q / k ) ) \log(2+(q+k+1)/k)=\Theta(\log(2+q/k)) log ( 2 + ( q + k + 1 ) / k ) = Θ ( log ( 2 + q / k )) . Multiplying by ∣ T Z , k ∣ ≤ τ b , k |\mathcal{T}_{Z,k}| \le\tau_{b,k} ∣ T Z , k ∣ ≤ τ b , k and using n + k + 1 ≤ ( k + 2 ) n n+k+1 \le(k+2)n n + k + 1 ≤ ( k + 2 ) n for n ≥ 1 n \ge1 n ≥ 1 yields the bound in (13).
Combining ChooseR (Algorithm 4) with Compress (Algorithm 3) completes our replacement procedure for any ( q , k ) (q,k) ( q , k ) -unbreakable piece H H H : we first compute R ← ChooseR ( H , Z , I H , O H , q ) R \leftarrow\operatorname{ChooseR}(H,Z,I_H,O_H,q) R ← ChooseR ( H , Z , I H , O H , q ) and then return ( K , I K , O K ) ← Compress ( H , Z , R , I H , O H ) (K,I_K,O_K) \leftarrow\operatorname{Compress}(H,Z,R,I_H,O_H) ( K , I K , O K ) ← Compress ( H , Z , R , I H , O H ) . By Theorem 10.1 and Corollary 9.2, K K K has at most 2 ( b + k τ b , k ) 2(b+k\tau_{b,k}) 2 ( b + k τ b , k ) vertices, and for every outside graph J J J attached along Z Z Z and constraints I J , O J ⊆ V ( J ) I_J,O_J \subseteq V(J) I J , O J ⊆ V ( J ) , the instance on H ⊕ Z J H \oplus_Z J H ⊕ Z J admits a constrained PMC of size at most k k k if and only if the instance on K ⊕ Z J K \oplus_Z J K ⊕ Z J does.
Solving Extend on an arbitrary graph
When the input graph G G G is ( q , k ) (q,k) ( q , k ) -unbreakable, Algorithm Local (Algorithm 1) solves Extend directly by Theorem 3.1 . When G G G is ( q , k ) (q,k) ( q , k ) -breakable, it admits a separation ( L , Z , U ) (L,Z,U) ( L , Z , U ) with ∣ Z ∣ ≤ k |Z| \le k ∣ Z ∣ ≤ k , ∣ L ∣ > q |L| > q ∣ L ∣ > q , and ∣ U ∣ > q |U| > q ∣ U ∣ > q . If one of the two pieces—say G [ L ∪ Z ] G[L \cup Z] G [ L ∪ Z ] —is ( q , k ) (q,k) ( q , k ) -unbreakable, then running ChooseR (Algorithm 4) followed by Compress (Algorithm 3) produces a bounded replacement graph K K K such that
PMC k ( G , I , O ) ≠ ∅ ⟺ PMC k ( K ⊕ Z G [ U ∪ Z ] , I , ( O ∩ ( U ∪ Z ) ) ∪ O K ) ≠ ∅ , \operatorname{PMC}_k(G,I,O) \ne\emptyset
\quad\Longleftrightarrow\quad
\operatorname{PMC}_k\bigl(K \oplus_Z G[U \cup Z], I, (O \cap(U \cup Z)) \cup O_K\bigr) \ne\emptyset, PMC k ( G , I , O ) = ∅ ⟺ PMC k ( K ⊕ Z G [ U ∪ Z ] , I , ( O ∩ ( U ∪ Z )) ∪ O K ) = ∅ ,
which reduces the number of vertices whenever ∣ V ( K ) ∣ < ∣ V ( G [ L ∪ Z ] ) ∣ |V(K)| < |V(G[L \cup Z])| ∣ V ( K ) ∣ < ∣ V ( G [ L ∪ Z ]) ∣ , even if the complementary piece G [ U ∪ Z ] G[U \cup Z] G [ U ∪ Z ] is breakable. In a general graph, however, both pieces of a separation may be ( q , k ) (q,k) ( q , k ) -breakable.
To handle arbitrary graphs, we design a recursive procedure Reduce (Algorithm 5) that takes a piece H H H (which may already contain excluded auxiliary vertices from earlier reductions), its inclusion and exclusion constraints I H , O H I_H,O_H I H , O H , and its boundary B ⊆ V ( H ) B \subseteq V(H) B ⊆ V ( H ) of size ∣ B ∣ ≤ 2 k |B| \leq2k ∣ B ∣ ≤ 2 k , and returns a compressed replacement ( K , I K , O K ) (K,I_K,O_K) ( K , I K , O K ) of size ∣ V ( K ) ∣ ≤ r |V(K)| \leq r ∣ V ( K ) ∣ ≤ r such that B ⊆ V ( K ) B \subseteq V(K) B ⊆ V ( K ) and, for every outside graph J J J with V ( H ) ∩ V ( J ) = V ( K ) ∩ V ( J ) = B V(H) \cap V(J) = V(K) \cap V(J) = B V ( H ) ∩ V ( J ) = V ( K ) ∩ V ( J ) = B and every choice of constraints I J , O J ⊆ V ( J ) I_J,O_J \subseteq V(J) I J , O J ⊆ V ( J ) ,
PMC k ( H ⊕ B J , I H ∪ I J , O H ∪ O J ) ≠ ∅ ⟺ PMC k ( K ⊕ B J , I K ∪ I J , O K ∪ O J ) ≠ ∅ . \operatorname{PMC}_k(H \oplus_B J, I_H \cup I_J, O_H \cup O_J) \ne\varnothing\quad\Longleftrightarrow\quad\operatorname{PMC}_k(K \oplus_B J, I_K \cup I_J, O_K \cup O_J) \ne\varnothing. PMC k ( H ⊕ B J , I H ∪ I J , O H ∪ O J ) = ∅ ⟺ PMC k ( K ⊕ B J , I K ∪ I J , O K ∪ O J ) = ∅ .
Specifically, let r = r ( k ) = 2 O ( k 2 ) r=r(k)=2^{O(k^2)} r = r ( k ) = 2 O ( k 2 ) be the upper bound on the size of the replacement returned by Compress when ∣ B ∣ ≤ 2 k |B| \leq2k ∣ B ∣ ≤ 2 k . If ∣ V ( H ) ∣ ≤ r |V(H)| \leq r ∣ V ( H ) ∣ ≤ r , then Reduce simply returns ( H , I H , O H ) (H,I_H,O_H) ( H , I H , O H ) unchanged (line 1). Otherwise, Reduce invokes the deterministic cut-finding procedure of Golovach et al. [7 Lemma 2, p. 18:3] (built on Chitnis et al. [4 Section 3.5] ), which we denote by FindCut. Given ( H , r , k ) (H,r,k) ( H , r , k ) , FindCut either certifies that H H H is ( q , k ) (q,k) ( q , k ) -unbreakable for q = ( 2 r + 1 ) r 2 q=(2r+1)r^2 q = ( 2 r + 1 ) r 2 , or returns a separation ( L , Z , U ) (L,Z,U) ( L , Z , U ) of H H H with ∣ Z ∣ ≤ k |Z| \leq k ∣ Z ∣ ≤ k and ∣ L ∣ , ∣ U ∣ > r |L|,|U| > r ∣ L ∣ , ∣ U ∣ > r . If FindCut certifies that H H H is ( q , k ) (q,k) ( q , k ) -unbreakable, Reduce computes R ← ChooseR ( H , B , k , I H , O H , q ) R \gets\operatorname{ChooseR}(H,B,k,I_H,O_H,q) R ← ChooseR ( H , B , k , I H , O H , q ) and returns Compress ( H , B , R , I H , O H ) \operatorname{Compress}(H,B,R,I_H,O_H) Compress ( H , B , R , I H , O H ) (lines 3–6).
If instead FindCut returns a separation ( L , Z , U ) (L,Z,U) ( L , Z , U ) with ∣ Z ∣ ≤ k |Z| \leq k ∣ Z ∣ ≤ k and ∣ L ∣ , ∣ U ∣ > r |L|,|U| > r ∣ L ∣ , ∣ U ∣ > r , we orient the separation so that ∣ B ∩ L ∣ ≤ ∣ B ∩ U ∣ |B \cap L| \leq|B \cap U| ∣ B ∩ L ∣ ≤ ∣ B ∩ U ∣ , which guarantees that the new boundary B ′ = ( B ∩ L ) ∪ Z B'=(B \cap L)\cup Z B ′ = ( B ∩ L ) ∪ Z of H L = H [ L ∪ Z ] H_L=H[L\cup Z] H L = H [ L ∪ Z ] satisfies ∣ B ′ ∣ ≤ 2 k |B'| \leq2k ∣ B ′ ∣ ≤ 2 k . In line 11, Reduce recursively compresses H L H_L H L with boundary B ′ B' B ′ to obtain a graph K L K_L K L on at most r r r vertices. Substituting K L K_L K L for H L H_L H L produces the intermediate graph H ′ = K L ⊕ Z H [ U ∪ Z ] H'=K_L\oplus_Z H[U\cup Z] H ′ = K L ⊕ Z H [ U ∪ Z ] (line 12), which has strictly fewer vertices than H H H because ∣ L ∣ > r |L|>r ∣ L ∣ > r . Finally, line 15 makes a second recursive call to Reduce on H ′ H' H ′ with the original boundary B B B and returns the resulting replacement ( K , I K , O K ) (K,I_K,O_K) ( K , I K , O K ) .
Applying Reduce at the top level to ( G , k , I , O , ∅ ) (G,k,I,O,\varnothing) ( G , k , I , O , ∅ ) reduces the entire input graph G G G in O ( n ) O(n) O ( n ) recursive calls to an equivalent instance ( K , I K , O K ) (K,I_K,O_K) ( K , I K , O K ) on at most r r r vertices. This overall reduction builds on the recursive-understanding scheme of Chitnis et al. [4 Section 2.1] and Lokshtanov et al. [5 ] , and searching K K K directly establishes our main theorem.
Theorem 11.1 (Constrained PMC search on arbitrary graphs). Let G G G be an n n n -vertex graph, let k ≥ 0 k \geq0 k ≥ 0 be an integer, and let I , O ⊆ V ( G ) I,O \subseteq V(G) I , O ⊆ V ( G ) . There is a deterministic algorithm Extend that returns a set Ω ∈ PMC k ( G , I , O ) \Omega\in\operatorname{PMC}_k(G,I,O) Ω ∈ PMC k ( G , I , O ) , or correctly reports that no such set exists. For n ≥ 2 n \geq2 n ≥ 2 , its running time is
2 O ( k 3 ) n 4 log n . 2^{O(k^3)}n^4\log n. 2 O ( k 3 ) n 4 log n . Inputs with at most one vertex are handled in constant time. No unbreakability assumption is imposed on G G G .
Replacement size and separation threshold
Throughout the recursion, each call to Reduce receives a piece H H H , constraint sets I H , O H ⊆ V ( H ) I_H,O_H \subseteq V(H) I H , O H ⊆ V ( H ) with ∣ I H ∣ ≤ k |I_H| \leq k ∣ I H ∣ ≤ k , and a boundary set B ⊆ V ( H ) B \subseteq V(H) B ⊆ V ( H ) satisfying ∣ B ∣ ≤ 2 k |B| \leq2k ∣ B ∣ ≤ 2 k . Substituting b = 2 k b=2k b = 2 k into the bound of Theorem 10.1, we define the replacement size bound r r r by
τ 2 k , k = ( k + 2 ) ( 3 k + 1 2 ) + 3 k + 1 , r = 2 ( 2 k + k τ 2 k , k ) = 2 O ( k 2 ) . (20) \tau_{2k,k}=(k+2)^{\binom{3k+1}{2}+3k+1}, \qquad r=2(2k+k\tau_{2k,k})=2^{O(k^2)}. \tag*{(20)} τ 2 k , k = ( k + 2 ) ( 2 3 k + 1 ) + 3 k + 1 , r = 2 ( 2 k + k τ 2 k , k ) = 2 O ( k 2 ) . (20)
Whenever H H H is certified to be ( q , k ) (q,k) ( q , k ) -unbreakable, invoking R ← ChooseR ( H , B , k , I H , O H , q ) R \gets\operatorname{ChooseR}(H,B,k,I_H,O_H,q) R ← ChooseR ( H , B , k , I H , O H , q ) followed by Compress ( H , B , R , I H , O H ) \operatorname{Compress}(H,B,R,I_H,O_H) Compress ( H , B , R , I H , O H ) produces a graph K K K with ∣ V ( K ) ∣ ≤ 2 ∣ R ∣ ≤ r |V(K)| \leq2|R| \leq r ∣ V ( K ) ∣ ≤ 2∣ R ∣ ≤ r and constraint sets
I K = I H , O K = ( O H ∩ R ) ∪ ( V ( K ) ∖ R ) . (21) I_K=I_H,\qquad O_K=(O_H\cap R)\cup(V(K)\setminus R). \tag*{(21)} I K = I H , O K = ( O H ∩ R ) ∪ ( V ( K ) ∖ R ) . (21)
By Theorem 10.1 and Corollary 9.2, for every outside graph J J J attached along B B B , the replacement ( K , I K , O K ) (K,I_K,O_K) ( K , I K , O K ) preserves the existence of a constrained PMC of size at most k k k ; in addition, because all auxiliary vertices V ( K ) ∖ R V(K)\setminus R V ( K ) ∖ R belong to O K O_K O K , every constrained PMC of K ⊕ B J K\oplus_B J K ⊕ B J is already a constrained PMC of H ⊕ B J H\oplus_B J H ⊕ B J as the exact same vertex set.
Notice that the replacement bound r r r in (19) depends only on k k k and is independent of the unbreakability threshold q q q . We can therefore fix r r r first and then set q q q according to the unbreakability guarantee of the cut-finding algorithm of Chitnis et al. [4, Section 3.5], stated in the following form by Golovach et al. [7, Lemma 2, p. 18:3].
Lemma 11.2 ([7 Lemma 2, p. 18:3] ). There is a deterministic algorithm that, given an n n n -vertex graph H H H , where n ≥ 2 n\ge2 n ≥ 2 , and two integers r , k ≥ 1 r,k\ge1 r , k ≥ 1 , either returns a separation ( L , Z , U ) (L,Z,U) ( L , Z , U ) with
∣ Z ∣ ≤ k , ∣ L ∣ > r , ∣ U ∣ > r , |Z|\le k,\qquad|L|>r,\qquad|U|>r, ∣ Z ∣ ≤ k , ∣ L ∣ > r , ∣ U ∣ > r , or correctly reports that H H H is ( ( 2 r + 1 ) r 2 k , k ) ((2r+1)r2^k,k) (( 2 r + 1 ) r 2 k , k ) -unbreakable. Its running time is
2 O ( min { r , k } log ( r + k ) ) n 3 log n . 2^{O(\min\{r,k\}\log(r+k))}n^3\log n. 2 O ( m i n { r , k } l o g ( r + k )) n 3 log n .
We refer to the algorithm of Lemma 11.2 as FindCut ( H , r , k ) \operatorname{FindCut}(H,r,k) FindCut ( H , r , k ) , and fix the global unbreakability threshold
q : = ( 2 r + 1 ) r 2 k = 2 O ( k 2 ) . (22) q \mathrel{\mathop:}= (2r+1)r2^k = 2^{O(k^2)}. \tag*{(22)} q : = ( 2 r + 1 ) r 2 k = 2 O ( k 2 ) . (22)
Recursive replacement
Algorithm 5 (Reduce) gives the full recursive replacement procedure. When ∣ V ( H ) ∣ > r |V(H)|>r ∣ V ( H ) ∣ > r and FindCut ( H , r , k ) \operatorname{FindCut}(H,r,k) FindCut ( H , r , k ) returns a separation ( L , Z , U ) (L,Z,U) ( L , Z , U ) with ∣ Z ∣ ≤ k |Z|\le k ∣ Z ∣ ≤ k and ∣ L ∣ , ∣ U ∣ > r |L|,|U|>r ∣ L ∣ , ∣ U ∣ > r , we swap L L L and U U U if necessary so that ∣ B ∩ L ∣ ≤ ∣ B ∩ U ∣ |B\cap L|\le|B\cap U| ∣ B ∩ L ∣ ≤ ∣ B ∩ U ∣ . Because L , Z , U L,Z,U L , Z , U partition V ( H ) V(H) V ( H ) and ∣ B ∣ ≤ 2 k |B|\le2k ∣ B ∣ ≤ 2 k , we have
∣ B ∩ L ∣ ≤ 1 2 ∣ B ∖ Z ∣ ≤ 1 2 ∣ B ∣ ≤ k , ∣ B ′ ∣ = ∣ ( B ∩ L ) ∪ Z ∣ = ∣ B ∩ L ∣ + ∣ Z ∣ ≤ 2 k . |B\cap L|\le\tfrac{1}{2}|B\setminus Z|\le\tfrac{1}{2}|B|\le k,\qquad|B'|=|(B\cap L)\cup Z|=|B\cap L|+|Z|\le2k. ∣ B ∩ L ∣ ≤ 2 1 ∣ B ∖ Z ∣ ≤ 2 1 ∣ B ∣ ≤ k , ∣ B ′ ∣ = ∣ ( B ∩ L ) ∪ Z ∣ = ∣ B ∩ L ∣ + ∣ Z ∣ ≤ 2 k .
In line 11, the first recursive call compresses H L = H [ L ∪ Z ] H_L=H[L\cup Z] H L = H [ L ∪ Z ] with boundary B ′ = ( B ∩ L ) ∪ Z B'=(B\cap L)\cup Z B ′ = ( B ∩ L ) ∪ Z , which retains both Z Z Z (the interface to H [ U ∪ Z ] H[U\cup Z] H [ U ∪ Z ] ) and B ∩ L B\cap L B ∩ L (the portion of the external boundary B B B lying in L L L ). After substituting the returned graph K L K_L K L for H L H_L H L to form H ′ = K L ⊕ Z H [ U ∪ Z ] H'=K_L\oplus_Z H[U\cup Z] H ′ = K L ⊕ Z H [ U ∪ Z ] in line 12, the second recursive call in line 15 compresses H ′ H' H ′ with the original boundary B B B . As always, every auxiliary vertex created during any call to Compress \operatorname{Compress} Compress receives a fresh identifier distinct from all original and previously created vertices.
Correctness of the recursive replacement
We now prove by strong induction on ∣ V ( H ) ∣ |V(H)| ∣ V ( H ) ∣ that Reduce satisfies its specification at every level of the recursion.
Lemma 11.3 (Correctness of Reduce). Let H H H be a graph, let k ≥ 1 k\ge1 k ≥ 1 be an integer, and let I H , O H , B ⊆ V ( H ) I_H,O_H,B\subseteq V(H) I H , O H , B ⊆ V ( H ) with ∣ I H ∣ ≤ k |I_H|\le k ∣ I H ∣ ≤ k and ∣ B ∣ ≤ 2 k |B|\le2k ∣ B ∣ ≤ 2 k . With r , q r,q r , q defined by (19) and (21), Reduce ( H , k , I H , O H , B ) \operatorname{Reduce}(H,k,I_H,O_H,B) Reduce ( H , k , I H , O H , B ) terminates and returns ( K , I K , O K ) (K,I_K,O_K) ( K , I K , O K ) such that
B ∪ I H ⊆ V ( K ) , ∣ V ( K ) ∣ ≤ r , I K = I H , B\cup I_H\subseteq V(K),\qquad|V(K)|\le r,\qquad I_K=I_H, B ∪ I H ⊆ V ( K ) , ∣ V ( K ) ∣ ≤ r , I K = I H , and
O K = ( O H ∩ V ( K ) ) ∪ ( V ( K ) ∖ V ( H ) ) . (23) O_K=(O_H\cap V(K))\cup(V(K)\setminus V(H)). \tag*{(23)} O K = ( O H ∩ V ( K )) ∪ ( V ( K ) ∖ V ( H )) . (23) For every graph J J J sharing exactly B B B with both H H H and K K K , and every I J , O J ⊆ V ( J ) I_J,O_J\subseteq V(J) I J , O J ⊆ V ( J ) :
Algorithm 5 Reduce(H , k , I H , O H , B H,k,I_H,O_H,B H , k , I H , O H , B )
Require: k ≥ 1 k \ge1 k ≥ 1 , I H , O H , B ⊆ V ( H ) I_H,O_H,B \subseteq V(H) I H , O H , B ⊆ V ( H ) , ∣ I H ∣ ≤ k |I_H| \le k ∣ I H ∣ ≤ k , ∣ B ∣ ≤ 2 k |B| \le2k ∣ B ∣ ≤ 2 k ; r , q r,q r , q as above Ensure: A graph K K K of size at most r r r and constraints I K , O K I_K,O_K I K , O K satisfying Lemma 11.3
if ∣ V ( H ) ∣ ≤ r |V(H)| \le r ∣ V ( H ) ∣ ≤ r then return ( H , I H , O H ) (H,I_H,O_H) ( H , I H , O H )
run FindCut(H , r , k H,r,k H , r , k )
if it certifies that H H H is ( q , k ) (q,k) ( q , k ) -unbreakable then
R ← \qquad R \leftarrow R ← ChooseR(H , B , k , I H , O H , q H,B,k,I_H,O_H,q H , B , k , I H , O H , q )
\qquad return Compress(H , B , R , I H , O H H,B,R,I_H,O_H H , B , R , I H , O H )
end if
let ( L , Z , U ) (L,Z,U) ( L , Z , U ) be the returned separation
exchange L , U L,U L , U if necessary so that ∣ B ∩ L ∣ ≤ ∣ B ∩ U ∣ |B \cap L| \le|B \cap U| ∣ B ∩ L ∣ ≤ ∣ B ∩ U ∣
H L ← H [ L ∪ Z ] H_L \leftarrow H[L \cup Z] H L ← H [ L ∪ Z ] ; B ′ ← ( B ∩ L ) ∪ Z B' \leftarrow(B \cap L) \cup Z B ′ ← ( B ∩ L ) ∪ Z
I L ← I H ∩ ( L ∪ Z ) I_L \leftarrow I_H \cap(L \cup Z) I L ← I H ∩ ( L ∪ Z ) ; O L ← O H ∩ ( L ∪ Z ) O_L \leftarrow O_H \cap(L \cup Z) O L ← O H ∩ ( L ∪ Z )
( K L , I K L , O K L ) ← (K_L,I_{K_L},O_{K_L}) \leftarrow ( K L , I K L , O K L ) ← Reduce(H L , k , I L , O L , B ′ H_L,k,I_L,O_L,B' H L , k , I L , O L , B ′ )
H ′ ← K L ⊕ Z H [ U ∪ Z ] H' \leftarrow K_L \oplus_Z H[U \cup Z] H ′ ← K L ⊕ Z H [ U ∪ Z ]
I ′ ← I K L ∪ ( I H ∩ ( U ∪ Z ) ) I' \leftarrow I_{K_L} \cup(I_H \cap(U \cup Z)) I ′ ← I K L ∪ ( I H ∩ ( U ∪ Z ))
O ′ ← O K L ∪ ( O H ∩ ( U ∪ Z ) ) O' \leftarrow O_{K_L} \cup(O_H \cap(U \cup Z)) O ′ ← O K L ∪ ( O H ∩ ( U ∪ Z ))
return Reduce(H ′ , k , I ′ , O ′ , B H',k,I',O',B H ′ , k , I ′ , O ′ , B )
The graph H ⊕ B J H \oplus_B J H ⊕ B J has a PMC of size at most k k k containing I H ∪ I J I_H \cup I_J I H ∪ I J and avoiding O H ∪ O J O_H \cup O_J O H ∪ O J if and only if K ⊕ B J K \oplus_B J K ⊕ B J has a PMC of size at most k k k containing I K ∪ I J I_K \cup I_J I K ∪ I J and avoiding O K ∪ O J O_K \cup O_J O K ∪ O J ; that is, PMC k ( H ⊕ B J , I H ∪ I J , O H ∪ O J ) ≠ ∅ ⇔ PMC k ( K ⊕ B J , I K ∪ I J , O K ∪ O J ) ≠ ∅ \operatorname{PMC}_k(H \oplus_B J,I_H \cup I_J,O_H \cup O_J) \ne\varnothing\Leftrightarrow\operatorname{PMC}_k(K \oplus_B J,I_K \cup I_J,O_K \cup O_J) \ne\varnothing PMC k ( H ⊕ B J , I H ∪ I J , O H ∪ O J ) = ∅ ⇔ PMC k ( K ⊕ B J , I K ∪ I J , O K ∪ O J ) = ∅ .
Every Ω ∈ PMC k ( K ⊕ B J , I K ∪ I J , O K ∪ O J ) \Omega\in\operatorname{PMC}_k(K \oplus_B J,I_K \cup I_J,O_K \cup O_J) Ω ∈ PMC k ( K ⊕ B J , I K ∪ I J , O K ∪ O J ) belongs to PMC k ( H ⊕ B J , I H ∪ I J , O H ∪ O J ) \operatorname{PMC}_k(H \oplus_B J,I_H \cup I_J,O_H \cup O_J) PMC k ( H ⊕ B J , I H ∪ I J , O H ∪ O J ) as the same set of vertices.
Proof. We proceed by strong induction on n = ∣ V ( H ) ∣ n = |V(H)| n = ∣ V ( H ) ∣ . If n ≤ r n \le r n ≤ r , line 1 returns ( H , I H , O H ) (H,I_H,O_H) ( H , I H , O H ) unchanged and all claims hold trivially. If n > r n > r n > r and FindCut certifies that H H H is ( q , k ) (q,k) ( q , k ) -unbreakable, the claims follow directly from Theorem 10.1 , Corollary 9.2, and (21) (since V ( K ) ∩ V ( H ) = R V(K) \cap V(H) = R V ( K ) ∩ V ( H ) = R ).
Suppose now that n > r n > r n > r and FindCut returns a separation ( L , Z , U ) (L,Z,U) ( L , Z , U ) with ∣ Z ∣ ≤ k |Z| \le k ∣ Z ∣ ≤ k and ∣ L ∣ , ∣ U ∣ > r |L|,|U| > r ∣ L ∣ , ∣ U ∣ > r . By the choice of L L L in line 8, the recursive call in line 11 satisfies ∣ B ′ ∣ ≤ 2 k |B'| \le2k ∣ B ′ ∣ ≤ 2 k and ∣ I L ∣ ≤ ∣ I H ∣ ≤ k |I_L| \le|I_H| \le k ∣ I L ∣ ≤ ∣ I H ∣ ≤ k , and since ∣ U ∣ > r ≥ 1 |U| > r \ge1 ∣ U ∣ > r ≥ 1 , we have ∣ V ( H L ) ∣ = ∣ L ∣ + ∣ Z ∣ = n − ∣ U ∣ < n |V(H_L)| = |L| + |Z| = n - |U| < n ∣ V ( H L ) ∣ = ∣ L ∣ + ∣ Z ∣ = n − ∣ U ∣ < n . By the induction hypothesis, the first recursive call terminates and returns ( K L , I K L , O K L ) (K_L,I_{K_L},O_{K_L}) ( K L , I K L , O K L ) with ∣ V ( K L ) ∣ ≤ r |V(K_L)| \le r ∣ V ( K L ) ∣ ≤ r , B ′ ∪ I L ⊆ V ( K L ) B' \cup I_L \subseteq V(K_L) B ′ ∪ I L ⊆ V ( K L ) , I K L = I L I_{K_L} = I_L I K L = I L , and O K L = ( O L ∩ V ( K L ) ) ∪ ( V ( K L ) ∖ V ( H L ) ) O_{K_L} = (O_L \cap V(K_L)) \cup(V(K_L) \setminus V(H_L)) O K L = ( O L ∩ V ( K L )) ∪ ( V ( K L ) ∖ V ( H L )) , satisfying guarantees (1) and (2) with respect to H L H_L H L and boundary B ′ B' B ′ .
Next, consider the graph H ′ = K L ⊕ Z H [ U ∪ Z ] H' = K_L \oplus_Z H[U \cup Z] H ′ = K L ⊕ Z H [ U ∪ Z ] formed in line 12. Because V ( K L ) ∩ V ( H [ U ∪ Z ] ) = Z V(K_L) \cap V(H[U \cup Z]) = Z V ( K L ) ∩ V ( H [ U ∪ Z ]) = Z and s ≔ ∣ V ( K L ) ∣ ≤ r < ∣ L ∣ s \coloneqq|V(K_L)| \le r < |L| s : = ∣ V ( K L ) ∣ ≤ r < ∣ L ∣ , the number of vertices in H ′ H' H ′ is
∣ V ( H ′ ) ∣ = s + ∣ U ∣ ≤ r + ∣ U ∣ < ∣ L ∣ + ∣ Z ∣ + ∣ U ∣ = n . |V(H')| = s + |U| \le r + |U| < |L| + |Z| + |U| = n. ∣ V ( H ′ ) ∣ = s + ∣ U ∣ ≤ r + ∣ U ∣ < ∣ L ∣ + ∣ Z ∣ + ∣ U ∣ = n .
All vertices of B B B belong to V ( H ′ ) V(H') V ( H ′ ) , since B ∩ L ⊆ B ′ ⊆ V ( K L ) B \cap L \subseteq B' \subseteq V(K_L) B ∩ L ⊆ B ′ ⊆ V ( K L ) and B ∩ ( U ∪ Z ) ⊆ V ( H [ U ∪ Z ] ) B \cap(U \cup Z) \subseteq V(H[U \cup Z]) B ∩ ( U ∪ Z ) ⊆ V ( H [ U ∪ Z ]) . Similarly, I ′ = I K L ∪ ( I H ∩ ( U ∪ Z ) ) = I H I' = I_{K_L} \cup(I_H \cap(U \cup Z)) = I_H I ′ = I K L ∪ ( I H ∩ ( U ∪ Z )) = I H has size at most k k k . Thus the second recursive call Reduce(H ′ , k , I ′ , O ′ , B H',k,I',O',B H ′ , k , I ′ , O ′ , B ) in line 15 satisfies all preconditions on a graph with strictly fewer than n n n vertices, and by the induction hypothesis it terminates and returns ( K , I K , O K ) (K,I_K,O_K) ( K , I K , O K ) with ∣ V ( K ) ∣ ≤ r |V(K)| \le r ∣ V ( K ) ∣ ≤ r , B ∪ I ′ ⊆ V ( K ) B \cup I' \subseteq V(K) B ∪ I ′ ⊆ V ( K ) , I K = I ′ = I H I_K = I' = I_H I K = I ′ = I H , and guarantees (1) and (2) relative to H ′ H' H ′ .
Replacing H L H_L H L in the attached graph. Let J J J be any outside graph sharing B B B with H H H and K K K , with constraints I J , O J ⊆ V ( J ) I_J,O_J \subseteq V(J) I J , O J ⊆ V ( J ) (with V ( J ) ∖ B V(J) \setminus B V ( J ) ∖ B disjoint from intermediate auxiliary vertices as noted in Section 2). Observe that attaching J J J to H H H along B B B is identical to attaching the combined outside graph
C = H [ U ∪ Z ] ⊕ B ∩ ( U ∪ Z ) J , C = H[U \cup Z] \mathbin{\oplus}_{B \cap(U \cup Z)} J, C = H [ U ∪ Z ] ⊕ B ∩ ( U ∪ Z ) J ,
with constraint sets
I C = ( I H ∩ ( U ∪ Z ) ) ∪ I J , O C = ( O H ∩ ( U ∪ Z ) ) ∪ O J , I_C = (I_H \cap(U \cup Z)) \cup I_J,\qquad O_C = (O_H \cap(U \cup Z)) \cup O_J, I C = ( I H ∩ ( U ∪ Z )) ∪ I J , O C = ( O H ∩ ( U ∪ Z )) ∪ O J ,
to the piece H L = H [ L ∪ Z ] H_L = H[L \cup Z] H L = H [ L ∪ Z ] along the boundary B ′ = ( B ∩ L ) ∪ Z B' = (B \cap L) \cup Z B ′ = ( B ∩ L ) ∪ Z : indeed, V ( H L ) ∩ V ( C ) = V ( K L ) ∩ V ( C ) = B ′ V(H_L) \cap V(C) = V(K_L) \cap V(C) = B' V ( H L ) ∩ V ( C ) = V ( K L ) ∩ V ( C ) = B ′ , and
H L ⊕ B ′ C = H ⊕ B J , K L ⊕ B ′ C = H ′ ⊕ B J . H_L \mathbin{\oplus}_{B'} C = H \mathbin{\oplus}_B J,\qquad K_L \mathbin{\oplus}_{B'} C = H' \mathbin{\oplus}_B J. H L ⊕ B ′ C = H ⊕ B J , K L ⊕ B ′ C = H ′ ⊕ B J .
Applying the induction hypothesis for the first recursive call to the attached graph C C C and constraints ( I C , O C ) (I_C,O_C) ( I C , O C ) yields
PMC k ( H ⊕ B J , I H ∪ I J , O H ∪ O J ) ≠ ∅ ⟺ PMC k ( H ′ ⊕ B J , I ′ ∪ I J , O ′ ∪ O J ) ≠ ∅ , (24) \operatorname{PMC}_k(H \mathbin{\oplus}_B J,I_H \cup I_J,O_H \cup O_J) \ne\varnothing\iff\operatorname{PMC}_k(H' \mathbin{\oplus}_B J,I' \cup I_J,O' \cup O_J) \ne\varnothing, \tag*{(24)} PMC k ( H ⊕ B J , I H ∪ I J , O H ∪ O J ) = ∅ ⟺ PMC k ( H ′ ⊕ B J , I ′ ∪ I J , O ′ ∪ O J ) = ∅ , (24)
and ensures that every member of the right-hand family belongs to the left-hand family as the same vertex set.
Replacing H ′ H' H ′ by the final output K K K . Combining (23) with guarantee (1) of the induction hypothesis for the second recursive call on H ′ H' H ′ immediately gives
PMC k ( H ⊕ B J , I H ∪ I J , O H ∪ O J ) ≠ ∅ ⟺ PMC k ( K ⊕ B J , I K ∪ I J , O K ∪ O J ) ≠ ∅ , \operatorname{PMC}_k(H \mathbin{\oplus}_B J,I_H \cup I_J,O_H \cup O_J) \ne\varnothing\iff\operatorname{PMC}_k(K \mathbin{\oplus}_B J,I_K \cup I_J,O_K \cup O_J) \ne\varnothing, PMC k ( H ⊕ B J , I H ∪ I J , O H ∪ O J ) = ∅ ⟺ PMC k ( K ⊕ B J , I K ∪ I J , O K ∪ O J ) = ∅ ,
which proves guarantee (1) for H H H . Likewise, for any Ω ∈ PMC k ( K ⊕ B J , I K ∪ I J , O K ∪ O J ) \Omega\in\operatorname{PMC}_k(K \mathbin{\oplus}_B J,I_K \cup I_J,O_K \cup O_J) Ω ∈ PMC k ( K ⊕ B J , I K ∪ I J , O K ∪ O J ) , guarantee (2) for the second call implies Ω ∈ PMC k ( H ′ ⊕ B J , I ′ ∪ I J , O ′ ∪ O J ) \Omega\in\operatorname{PMC}_k(H' \mathbin{\oplus}_B J,I' \cup I_J,O' \cup O_J) Ω ∈ PMC k ( H ′ ⊕ B J , I ′ ∪ I J , O ′ ∪ O J ) , and guarantee (2) for the first call (with attachment C C C ) then implies Ω ∈ PMC k ( H ⊕ B J , I H ∪ I J , O H ∪ O J ) \Omega\in\operatorname{PMC}_k(H \mathbin{\oplus}_B J,I_H \cup I_J,O_H \cup O_J) Ω ∈ PMC k ( H ⊕ B J , I H ∪ I J , O H ∪ O J ) , which establishes guarantee (2) for H H H . Finally, because fresh auxiliary names prevent any deleted vertex of H L H_L H L from reappearing in K K K and both calls preserve the exclusion status of retained vertices while excluding all newly added auxiliary vertices, we have O K = ( O H ∩ V ( K ) ) ∪ ( V ( K ) ∖ V ( H ) ) O_K = (O_H \cap V(K)) \cup(V(K) \setminus V(H)) O K = ( O H ∩ V ( K )) ∪ ( V ( K ) ∖ V ( H )) . This completes the induction.
Returning a PMC of the original graph
Algorithm 6 (Extend) solves constrained PMC search on an arbitrary input graph G G G by invoking Reduce( G , k , I , O , ∅ ) (G,k,I,O,\varnothing) ( G , k , I , O , ∅ ) in line 5 to obtain a compressed graph ( K , I K , O K ) (K,I_K,O_K) ( K , I K , O K ) on at most r r r vertices, and then testing all nonempty subsets Ω ⊆ V ( K ) \Omega\subseteq V(K) Ω ⊆ V ( K ) of size at most k k k using Check( K , Ω , k , I K , O K ) (K,\Omega,k,I_K,O_K) ( K , Ω , k , I K , O K ) .
Applying Lemma 11.3 to Reduce( G , k , I , O , ∅ ) (G,k,I,O,\varnothing) ( G , k , I , O , ∅ ) with J J J as the empty graph shows that PMC k ( G , I , O ) ≠ ∅ \operatorname{PMC}_k(G,I,O) \ne\varnothing PMC k ( G , I , O ) = ∅ if and only if PMC k ( K , I K , O K ) ≠ ∅ \operatorname{PMC}_k(K,I_K,O_K) \ne\varnothing PMC k ( K , I K , O K ) = ∅ , and that every Ω ∈ PMC k ( K , I K , O K ) \Omega\in\operatorname{PMC}_k(K,I_K,O_K) Ω ∈ PMC k ( K , I K , O K ) belongs to PMC k ( G , I , O ) \operatorname{PMC}_k(G,I,O) PMC k ( G , I , O ) as the exact same vertex subset of V ( G ) V(G) V ( G ) . Consequently, Algorithm 6 is correct.
Running time of Extend
Number of recursive calls. Consider any call to Reduce on an n n n -vertex graph H H H (with n > r n > r n > r ) in which FindCut returns a separation ( L , Z , U ) (L,Z,U) ( L , Z , U ) . Let
a = ∣ L ∣ , u = ∣ U ∣ , z = ∣ Z ∣ , s = ∣ V ( K L ) ∣ ≤ r . a = |L|,\qquad u = |U|,\qquad z = |Z|,\qquad s = |V(K_L)| \le r. a = ∣ L ∣ , u = ∣ U ∣ , z = ∣ Z ∣ , s = ∣ V ( K L ) ∣ ≤ r .
Algorithm 6 Extend(G , k , I , O G,k,I,O G , k , I , O ) on an arbitrary graph
Require: k ≥ 0 k \ge0 k ≥ 0 and I , O ⊆ V ( G ) I,O \subseteq V(G) I , O ⊆ V ( G ) Ensure: A set in PMC k ( G , I , O ) \operatorname{PMC}_k(G,I,O) PMC k ( G , I , O ) , or No if this family is empty
if V ( G ) = ∅ V(G)=\varnothing V ( G ) = ∅ or k = 0 k=0 k = 0 or I ∩ O ≠ ∅ I\cap O\ne\varnothing I ∩ O = ∅ or ∣ I ∣ > k |I|>k ∣ I ∣ > k then
return No
end if
k ← min { k , ∣ V ( G ) ∣ } k\leftarrow\min\{k,|V(G)|\} k ← min { k , ∣ V ( G ) ∣ } ; fix r , q r,q r , q by (20) and (22)
( K , I K , O K ) ← Reduce ( G , k , I , O , ∅ ) (K,I_K,O_K)\leftarrow\operatorname{Reduce}(G,k,I,O,\varnothing) ( K , I K , O K ) ← Reduce ( G , k , I , O , ∅ )
for each nonempty Ω ⊆ V ( K ) \Omega\subseteq V(K) Ω ⊆ V ( K ) with ∣ Ω ∣ ≤ k |\Omega|\le k ∣Ω∣ ≤ k do
if Check ( K , Ω , k , I K , O K ) = Yes \operatorname{Check}(K,\Omega,k,I_K,O_K)=\operatorname{Yes} Check ( K , Ω , k , I K , O K ) = Yes then
return Ω \Omega Ω
end if
end for
return No
Then n = a + u + z n=a+u+z n = a + u + z , while the two recursive calls in lines 11 and 15 operate on graphs H L H_L H L and H ′ H' H ′ of sizes n 1 = a + z n_1=a+z n 1 = a + z and n 2 = u + s n_2=u+s n 2 = u + s , respectively. Since a , u > r a,u>r a , u > r and s ≤ r s\le r s ≤ r , we have n 1 , n 2 > r n_1,n_2>r n 1 , n 2 > r and
( n 1 − r ) + ( n 2 − r ) = n + s − 2 r ≤ n − r . (25) (n_1-r)+(n_2-r)=n+s-2r\le n-r. \tag*{(25)} ( n 1 − r ) + ( n 2 − r ) = n + s − 2 r ≤ n − r . (25)
By induction on n > r n>r n > r , any call to Reduce \operatorname{Reduce} Reduce on an n n n -vertex graph with n > r n>r n > r makes at most 2 ( n − r ) − 1 2(n-r)-1 2 ( n − r ) − 1 calls to Reduce \operatorname{Reduce} Reduce in total (counting the call itself): for a leaf call this is 1 ≤ 2 ( n − r ) − 1 1\le2(n-r)-1 1 ≤ 2 ( n − r ) − 1 , and for an internal call, inequality (25) and the induction hypothesis give at most
1 + ( 2 ( n 1 − r ) − 1 ) + ( 2 ( n 2 − r ) − 1 ) ≤ 2 ( n − r ) − 1 1+(2(n_1-r)-1)+(2(n_2-r)-1)\le2(n-r)-1 1 + ( 2 ( n 1 − r ) − 1 ) + ( 2 ( n 2 − r ) − 1 ) ≤ 2 ( n − r ) − 1
calls. Thus, for an N N N -vertex input graph G G G , Reduce ( G , k , I , O , ∅ ) \operatorname{Reduce}(G,k,I,O,\varnothing) Reduce ( G , k , I , O , ∅ ) makes O ( N ) O(N) O ( N ) recursive calls, each on a graph of at most N N N vertices.
Running time per call. By (20) and (22) , we have
log r = O ( k 2 ) , log q = O ( k 2 ) . \log r=O(k^2),\qquad\log q=O(k^2). log r = O ( k 2 ) , log q = O ( k 2 ) .
In each call to Reduce \operatorname{Reduce} Reduce on an n n n -vertex graph (n ≥ 2 n\ge2 n ≥ 2 ), running FindCut ( H , r , k ) \operatorname{FindCut}(H,r,k) FindCut ( H , r , k ) takes 2 O ( k 3 ) n 3 log n 2^{O(k^3)}n^3\log n 2 O ( k 3 ) n 3 log n time by Lemma 11.2. When FindCut \operatorname{FindCut} FindCut certifies ( q , k ) (q,k) ( q , k ) -unbreakability, Theorem 10.1 (with ∣ B ∣ ≤ 2 k |B|\le2k ∣ B ∣ ≤ 2 k ) bounds the running time of ChooseR \operatorname{ChooseR} ChooseR by
2 O ( k 2 + k log ( 2 + q / k ) ) n 3 = 2 O ( k 3 ) n 3 , 2^{O(k^2+k\log(2+q/k))}n^3=2^{O(k^3)}n^3, 2 O ( k 2 + k l o g ( 2 + q / k )) n 3 = 2 O ( k 3 ) n 3 ,
since log ( 2 + q / k ) ≤ log ( 2 + q ) = O ( k 2 ) \log(2+q/k)\le\log(2+q)=O(k^2) log ( 2 + q / k ) ≤ log ( 2 + q ) = O ( k 2 ) , and the subsequent call to Compress \operatorname{Compress} Compress takes O ( n 3 ) O(n^3) O ( n 3 ) time by Theorem 9.1. In a branching call, forming H L H_L H L , H ′ H' H ′ , and the updated constraint sets takes O ( n 2 ) O(n^2) O ( n 2 ) time. Multiplying the per-call bound of 2 O ( k 3 ) N 3 log N 2^{O(k^3)}N^3\log N 2 O ( k 3 ) N 3 log N by the O ( N ) O(N) O ( N ) recursive calls bounds the total time of Reduce ( G , k , I , O , ∅ ) \operatorname{Reduce}(G,k,I,O,\varnothing) Reduce ( G , k , I , O , ∅ ) by
2 O ( k 3 ) N 4 log N 2^{O(k^3)}N^4\log N 2 O ( k 3 ) N 4 log N
for $N\ge 2.
Dependence of the final search on k k k . Finally, the reduced graph K K K has at most r r r vertices, so lines 6–10 of Algorithm 6 test at most
∑ i = 1 min { k , r } ( r i ) ≤ k r k = 2 O ( k 3 ) \sum_{i=1}^{\min\{k,r\}} \binom{r}{i} \le kr^k = 2^{O(k^3)} i = 1 ∑ m i n { k , r } ( i r ) ≤ k r k = 2 O ( k 3 )
subsets Ω ⊆ V ( K ) \Omega\subseteq V(K) Ω ⊆ V ( K ) , each in time O ( r 2 + r k 2 ) ⊆ O ( r 3 ) = 2 O ( k 2 ) O(r^2 + rk^2) \subseteq O(r^3) = 2^{O(k^2)} O ( r 2 + r k 2 ) ⊆ O ( r 3 ) = 2 O ( k 2 ) via Check (§ 6.1 ). The final search therefore takes 2 O ( k 3 ) 2^{O(k^3)} 2 O ( k 3 ) time. Combined with the correctness of Extend, this proves Theorem 11.1 .