PMC IWOCA CameraReady
PMC IWOCA CameraReady
PMC IWOCA CameraReady
1 Introduction
The Perfect Matching Cut problem was introduced by Heggernes and Telle
(1998) in the context of their study of generalized domination problems. Gen-
eralized dominating sets are parameterized by two sets of nonnegative integers
σ and ρ as follows. A set S of vertices of a graph is said to be a (σ, ρ)-set if
∀v ∈ S, |N(v) ∩ S| ∈ σ and Vu ∈ / S, | N(v) ∩ S |∈ ρ. The (k, σ, ρ)-partition problem
asks for the existence of a partition V1 , V2 , . . . , Vh of vertices of a given graph
G such that Vi , i = 1, 2, . . . , k is a (σ, ρ)-set of G. One of the special cases of
this problem that the authors demonstrated to be NP-complete was when k = 2,
σ = N and ρ = 1. Note that this asks if the graph can be partitioned into two
parts, say X and Y, so that every vertex in X has exactly one neighbor in Y and
every vertex in Y has exactly one neighbor in X. This is indeed the definition of
a perfect matching cut.
⋆
Supported by IIT Gandhinagar and the SERB ECR grant MTR/2017/001033.
1
We use the O∗ notation which suppresses polynomial factors.
2 Misra and More
We note that the Perfect Matching Cut problem can be thought of as a more
demanding variation of the Matching Cut problem (Chvátal, 1984), which asks
if the graph can be partitioned into two parts, say X and Y as before, so that every
vertex in X has at most one neighbor in Y and every vertex in Y has at most one
neighbor in X. This way the edges in the cut induced by (X, Y) form a matching,
but not necessarily one that is perfect. Neither a matching cut nor a perfect
matching cut is guaranteed to exist. The computational question is to determine
if they do. One could also ask for a matching cut that cuts at least k edges, with
the perfect matching cut question being the special case when k = n/2. For a
representative sample of recent developments on the algorithmic aspects of the
Matching Cut problem, we refer the reader to the works of Komusiewicz et al.
(2018); Golovach et al. (2021); Chen et al. (2021).
From results of Bui-Xuan et al. and Telle and Proskurowski, it turns out that
the Perfect Matching Cut problem is FPT in the treewidth or cliquewidth
of the input graph and XP in the maximum induced matching-width (mim-
width) of a given decomposition of the graph. In a more recent development, Le
and Telle (2022) show that the problem can be solved in polynomial time on two
other graph classes as well: the first one includes claw-free graphs and graphs
without an induced path on five vertices, while the second one properly contains
all chordal graphs. Finally, Feghali et al. (2023) obtain a complete complexity
classification of Perfect Matching Cut for H-subgraph-free graphs where H
is any finite set of graphs.
We slightly abuse this notation in a few ways: if (A, B) is clear from the context
we drop the subscript, if P = ∅, we use the shorter notation G[Q ⇝ B], if P = v
and Q = ∅, we will use G[v ⇝ A], and so on. We now describe some polynomial-
time reduction rules (we borrow and slightly adapt these from Le and Telle).
These will be used to preprocess instances of PMC-Extension.
Reduction Rule 0.[Maintain Valid Cuts] If there is a vertex u ∈ A (resp, B)
that has more than one neighbor in B (repsectively, A), then say No.
Reduction Rule 1.[Neigbors of Saturated Vertices are Determined]
If u ∈ A⋆ (resp, B⋆ ), v ∈ F, and (uv) is an edge; then return G[v ⇝ A] (resp,
G[v ⇝ B]).
Reduction Rule 2.[Last Chance for an Unsaturated Vertex]
If u ∈ A◦ (resp, B◦ ) and N(u) ∩ F = v, then return G[v ⇝ B] (resp, G[v ⇝ A]).
Reduction Rule 3.[No Chance for an Unsaturated Vertex]
If u ∈ A◦ ∪ B◦ and N(u) ∩ F = ∅, then say No.
Reduction Rule 4.[Too Many Neighbors in A ∪ B]
– If u ∈ F with |N(u) ∩ A| ⩾ 2 and |N(u) ∩ B| ⩾ 2 then say No5 .
– If u ∈ F and |N(u) ∩ A| ⩾ 2 (resp, |N(u) ∩ B| ⩾ 2) then return G[u ⇝ A]
(resp, G[u ⇝ B]).
Reduction Rule 5.[Degree One in F]
If u ∈ ∂(F), d(u) = 2, u has one neighbor in A (resp, B), u has one neighbor v
in F, and v has a neighbor in A ∪ B; then return G[v ⇝ B] (resp, G[v ⇝ A]).
Reduction Rule 6.[Degree One in F Extended]
If u ∈ ∂(F), d(u) = 2, u has one neighbor in A (resp, B), u has one neighbor v
in F, and d(v) = 1; then return G[u ⇝ A, v ⇝ B] (resp, G[v ⇝ A, u ⇝ B]).
Reduction Rule 7.[Degree Zero in F]
If u ∈ ∂(F) such that d(u) ∈ {1, 3} and dF (u) = 0, and if u has exactly one
neighbor in A (resp, B), return G[u ⇝ B] (resp, G[u ⇝ A]).
5
Note that this scenario does not arise if the input graph has maximum degree at
most three.
6 Misra and More
none of the reduction rules are applicable on the instance. An instance (G, A, B)
where A = B = ∅ or G[A ∪ B] has isolated vertices is called degenerate. Before
we begin, we specify some useful invariants.
Key Invariants
1. A ∪ B is non-empty.
2. G[A ∪ B] has no isolated vertices.
3. Every vertex in F has at most one neighbor in A and at most one neigh-
bor in B.
4. If (uv) is an edge and u ∈ ∂(F) and v ∈ A ∪ B, then v ∈ A◦ ∪ B◦
5. Every u ∈ A◦ ∪ B◦ has at least two neighbors in F.
We say that an instance clean if it satisfies all the invariants above. Notice that
the reduction rules preserve the invariants, which is to say that if the input sat-
isfies any subset of the invariants above, then so does the output. Further, notice
that a reduced instance is either clean or degenerate. Our branching preserves
invariants: if the input is a clean instance, then so is the output.
Note an instance G of Perfect Matching Cut can be solved by guessing one
edge in the final solution and applying the algorithm for PMC-Extension on
the guess. In particular, we return:
_
A P G, A = {u}, B = {v}
e=(u,v)∈E(G)
_
A P G[u ⇝ A, {p, q, v} ⇝ B] A P G[{p, q} ⇝ A, {u, v} ⇝ B] .
_
A P G[u ⇝ A, {p, q, r, v} ⇝ B] A P G[{p} ⇝ A, {u, v} ⇝ B] .
_
A P G[{v, u} ⇝ A, {a′ , b′ } ⇝ B] A P G[{a′ , b′ } ⇝ A, {v, u} ⇝ B] .
8 Misra and More
3. Suppose there is a degree-3 vertex v in ∂(F) such that v has one neighbor
a in A and two neighbors p, q in F. Note that a has exactly one neighbor
other than v in F, by invariants (2) and (5), say u. Note that u ∈ ∂(F) and:
– If d(u) = 1 then the instance is not reduced, a contradiction.
– If d(u) = 2 and dF (u) = 1 then we would have branched on u.
– If d(u) = 3 and dF (u) = 1 we would have branched7 on u.
– If d(u) = 3 and dF (u) = 3 then d(u) ⩾ 4, a contradiction.
Therefore, we have that d(u) = 3 and dF (u) = 2 or d(u) = 2 and dF (u) = 0.
We analyze these cases separately.
(a) d(u) = 3 and dF (u) = 2.
7
Indeed, in this scenario u would then be a degree three vertex in ∂(F) with one
neighbor each in a A and B (notice that this is the only possibility because of our
assumption that the instance is reduced).
Finding Perfect Matching Cuts Faster 9
_
A P G[v ⇝ A, {u, r, s} ⇝ B] A P G[u ⇝ A, {v, p, q} ⇝ B] .
Note that we have {r, s} ∩ {p, q} = ∅ since G has no cycles of length four.
Therefore, this is a (4, 4) branch.
Fig. 2. A figure describing the setting of Case (a) within Branching Rule 3.
_
A P G[{w, v} ⇝ A, u ⇝ B] A P G[u ⇝ A, {v, p, q, w} ⇝ B] .
10 Misra and More
Fig. 3. A figure describing the setting of Case (b) within Branching Rule 3.
The case when there is a degree 3 vertex v in ∂(F) such that v has one
neighbor b in B and two neighbors p, q in F is symmetric and analogously
handled.
This completes the description of the branching rules.
Finding Perfect Matching Cuts Faster 11
Observe that if none of the branching rules are applicable on a clean and reduced
instance, then note that we have the following:
1. Every vertex in ∂(F) has degree two in G: indeed, if we have a degree three
vertex in ∂(F), then we would have branched according to branching rules
2 or 3; and if we have a degree one vertex in ∂(F), then the instance is not
reduced. Combined with invariant (3), we have that every vertex in ∂(F) has
exactly one neighbor in A and exactly one neighbor in B.
2. Every vertex in A◦ ∪ B◦ has exactly two neighbors in F: this follows from
the assumption about the maximum degree of the graph being three, and
invariants (2) and (5). Therefore, we have that everyvertex has degree two
in the graph G[∂(F) ∪ A◦ ∪ B◦ ] \ E[G[A]] ∪ E[G[B]] , which is to say that
this subgraph is a disjoint union of cycles. Further, note that F \ ∂(F) = ∅,
since G is connected.
Observe that this instance can be solved in polynomial time by checking the
parity of the cycles. This concludes our handling of the base case of the algorithm.
It can be verified that all the branching and reduction rules preserve the invari-
ants, and this can be used to establish that the branching rules are exhaustive
and correct. These arguments are implicit in the description of the branching
rules.
5 Concluding Remarks
We show improved algorithms for Perfect Matching Cut on general graphs
and graphs of maximum degree 3 and girth at least six. A natural question is if
we can achieve a comparable running time without the assumption of excluding
short cycles. We believe this can be done with a more careful case analysis.
Obtaining a sub-exponential running time for bipartite graphs with maximum
degree three and girth g, matching the ETH-based lower bound from Le and
Telle is also a natural open problem.
Due to lack of space, we defer our second result about a O∗ (1.2599n )-algorithm
applicable to all n-vertex graphs to a full version of this paper.
Bibliography
Bui-Xuan, B.-M., Telle, J. A., and Vatshelle, M. (2013). Fast dynamic pro-
gramming for locally checkable vertex subset and vertex partitioning problems.
Theoretical Computer Science, 511:66–76.
Chen, C.-Y., Hsieh, S.-Y., Le, H.-O., Le, V. B., and Peng, S.-L. (2021). Matching
cut in graphs with large minimum degree. Algorithmica, 83(5):1238–1255.
Chvátal, V. (1984). Recognizing decomposable graphs. Journal of Graph Theory,
8(1):51–53.
Feghali, C., Lucke, F., Paulusma, D., and Ries, B. (2023). Matching cuts in
graphs of high girth and h-free graphs.
Fomin, F. V. and Kratsch, D. (2010). Exact Exponential Algorithms. Texts in
Theoretical Computer Science. An EATCS Series. Springer.
Golovach, P. A., Komusiewicz, C., Kratsch, D., and Le, V. B. (2021). Refined
Notions of Parameterized Enumeration Kernels with Applications to Matching
Cut Enumeration. In 38th International Symposium on Theoretical Aspects of
Computer Science (STACS 2021), volume 187, pages 37:1–37:18.
Heggernes, P. and Telle, J. A. (1998). Partitioning graphs into generalized dom-
inating sets. Nordic J. of Computing, 5(2):128–142.
Komusiewicz, C., Kratsch, D., and Le, V. B. (2018). Matching Cut: Kernel-
ization, Single-Exponential Time FPT, and Exact Exponential Algorithms. In
13th International Symposium on Parameterized and Exact Computation (IPEC
2018), pages 19:1–19:13.
Le, V. B. and Telle, J. A. (2022). The perfect matching cut problem revisited.
Theor. Comput. Sci., 931:117–130.
Telle, J. A. and Proskurowski, A. (1997). Algorithms for vertex partitioning
problems on partial k-trees. SIAM Journal on Discrete Mathematics, 10(4):529–
550.
Édouard Bonnet, Chakraborty, D., and Duron, J. (2023). Cutting barnette
graphs perfectly is hard.