arxiv: v1 [cs.dm] 21 Oct 2017

Similar documents
arxiv: v3 [cs.dm] 18 Oct 2017

NP and NP-Completeness

Partitioning a Graph into Disjoint Cliques and a Triangle-free Graph arxiv: v6 [cs.cc] 4 Jan 2015

Optimization Problems in Multiple Subtree Graphs

Finding Paths in Grids with Forbidden Transitions

Relating 2-rainbow domination to weak Roman domination

THE COMPLEXITY OF DISSOCIATION SET PROBLEMS IN GRAPHS. 1. Introduction

DECOMPOSING 4-REGULAR GRAPHS INTO TRIANGLE-FREE 2-FACTORS

GRAPHS WITH MAXIMAL INDUCED MATCHINGS OF THE SAME SIZE. 1. Introduction

Induced Subgraph Isomorphism on proper interval and bipartite permutation graphs

Probe interval graphs and probe unit interval graphs on superclasses of cographs

Chromatic characterization of biclique cover. Denis Cornaz. Jean Fonlupt. Equipe Combinatoire, UFR 921, Universite Pierre et Marie Curie, 4 place

Partial characterizations of clique-perfect graphs II: diamond-free and Helly circular-arc graphs

On the hardness of losing width

Complexity of conditional colorability of graphs

Lecture 1. 1 Overview. 2 Maximum Flow. COMPSCI 532: Design and Analysis of Algorithms August 26, 2015

THE MINIMUM MATCHING ENERGY OF BICYCLIC GRAPHS WITH GIVEN GIRTH

On vertex coloring without monochromatic triangles

Cographs; chordal graphs and tree decompositions

G 2(X) X SOLVABILITY OF GRAPH INEQUALITIES. 1. A simple graph inequality. Consider the diagram in Figure 1.

Parameterized Domination in Circle Graphs

Perfect matchings in highly cyclically connected regular graphs

Strongly chordal and chordal bipartite graphs are sandwich monotone

This is a repository copy of Chromatic index of graphs with no cycle with a unique chord.

On the hardness of losing width

The Evolution of Grötzsch s Theorem

Complexity of locally injective homomorphism to the Theta graphs

arxiv: v1 [math.co] 25 Apr 2016

An Explicit Lower Bound of 5n o(n) for Boolean Circuits

Partial characterizations of clique-perfect graphs I: subclasses of claw-free graphs

On the oriented chromatic index of oriented graphs

List H-Coloring a Graph by Removing Few Vertices

Some Complexity Problems on Single Input Double Output Controllers

arxiv: v1 [cs.ds] 2 Oct 2018

The Budgeted Minimum Cost Flow Problem with Unit Upgrading Cost

The adjacent vertex-distinguishing total chromatic number of 1-tree

arxiv: v2 [cs.dm] 12 Jul 2014

Chords in Graphs. Department of Mathematics Texas State University-San Marcos San Marcos, TX Haidong Wu

An approximate version of Hadwiger s conjecture for claw-free graphs

NP-COMPLETE PROBLEMS. 1. Characterizing NP. Proof

A Single-Exponential Fixed-Parameter Algorithm for Distance-Hereditary Vertex Deletion

arxiv: v2 [cs.dm] 17 Nov 2012

arxiv: v1 [math.co] 10 Jun 2018

Negative results on acyclic improper colorings

On the tree cover number and the positive semidefinite maximum nullity of a graph

arxiv: v2 [math.co] 12 Jul 2009

On Graph Contractions and Induced Minors

arxiv: v1 [cs.dm] 29 Oct 2012

Graph Classes and Ramsey Numbers

Polynomial-Solvability of N P-class Problems

Balanced Partitions of Vector Sequences

MINIMALLY NON-PFAFFIAN GRAPHS

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

4-coloring P 6 -free graphs with no induced 5-cycles

NP-complete Problems

Classical Complexity and Fixed-Parameter Tractability of Simultaneous Consecutive Ones Submatrix & Editing Problems

1.3 Vertex Degrees. Vertex Degree for Undirected Graphs: Let G be an undirected. Vertex Degree for Digraphs: Let D be a digraph and y V (D).

Fixed Parameter Algorithms for Interval Vertex Deletion and Interval Completion Problems

Cleaning Interval Graphs

More on NP and Reductions

Discrete Applied Mathematics

Hölder-type inequalities and their applications to concentration and correlation bounds

Extremal Graphs Having No Stable Cutsets

1.1 P, NP, and NP-complete

Pyramidal Sum Labeling In Graphs

Claw-free Graphs. III. Sparse decomposition

Near-colorings and Steinberg conjecture

Upper Bounds of Dynamic Chromatic Number

On the complexity of the sandwich problems for strongly chordal graphs and chordal bipartite graphs

Measure and Conquer: A Simple O( n ) Independent Set Algorithm

Triangle-free graphs that do not contain an induced subdivision of K 4 are 3-colorable

Enumerating minimal connected dominating sets in graphs of bounded chordality,

Generalizations of Matched CNF Formulas

arxiv: v3 [math.co] 20 Sep 2016

Lecture J. 10 Counting subgraphs Kirchhoff s Matrix-Tree Theorem.

Distributed Weighted Vertex Cover via Maximal Matchings

arxiv: v1 [math.co] 7 Aug 2017

arxiv: v2 [math.co] 7 Jan 2016

Triangle-free graphs with no six-vertex induced path

arxiv: v1 [cs.dm] 4 May 2018

Out-colourings of Digraphs

New Upper Bounds for the Heights of Some Light Subgraphs in 1-Planar Graphs with High Minimum Degree

The Mixed Chinese Postman Problem Parameterized by Pathwidth and Treedepth

CS 301: Complexity of Algorithms (Term I 2008) Alex Tiskin Harald Räcke. Hamiltonian Cycle. 8.5 Sequencing Problems. Directed Hamiltonian Cycle

8. INTRACTABILITY I. Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley. Last updated on 2/6/18 2:16 AM

On diamond-free subposets of the Boolean lattice

arxiv: v1 [math.co] 28 Oct 2016

Averaging 2-Rainbow Domination and Roman Domination

Long Monochromatic Cycles in Edge-Colored Complete Graphs

NP-Complete Problems

The optimal pebbling number of the complete m-ary tree

Show that the following problems are NP-complete

CMSC 858F: Algorithmic Lower Bounds Fall SAT and NP-Hardness

A lower bound on the order of the largest induced linear forest in triangle-free planar graphs

NP and Computational Intractability

arxiv: v1 [cs.dm] 26 Apr 2010

CHARACTERISING VERTEX-STAR TRANSITIVE AND EDGE-STAR TRANSITIVE GRAPHS

ACYCLIC WEAK CONVEX DOMINATION IN GRAPHS

Chapter 3. Complexity of algorithms

Transcription:

Eliminating Odd Cycles by Remoing a Matching Carlos V.G.C. Lima 1,, Dieter Rautenbach 2,, Uéerton S. Souza 3,, and Jayme L. Szwarcfiter 4 1 Departament of Coputer Science, Federal Uniersity of Minas Gerais, Belo Horizonte, Brazil 2 Institute of Optimization and Operations Research, Ulm Uniersity, Ulm, Germany 3 Institute of Computing, Fluminense Federal Uniersity, Niterói, Brazil 4 PESC, COPPE, Federal Uniersity of Rio de Janeiro, Rio de Janeiro, Brazil arxi:1710.077411 [cs.dm] 21 Oct 2017 Abstract We study the problem of determining whether a gien graph G = (V,E) admits a matching M whose remoal destroys all odd cycles of G (or equialently whether G M is bipartite). This problem is also equialent to determine whether G admits a (1,1)-coloring, which is a 2-coloring of V (G) in which each color class induces a graph of maximum degree at most 1. We show that such a decision problem is NP-complete een for planar graphs of maximum degree 4, but can be soled in linear-time in graphs of maximum degree 3. We also present polynomial time algorithms for (claw, paw)-free graphs, graphs containing only triangles as odd cycles, graphs with bounded dominating sets, P 5 -free graphs, and chordal graphs. In addition, we show that the problem is fixed-parameter tractable when parameterized by clique-width, which implies polynomial time solability for many interesting graph classes of such as distance-hereditary graphs and outerplanar graphs. Finally a 2 c(g) n algorithm, and a kernel haing at most 2 nd(g) ertices are presented, where c(g) and nd(g) are the ertex coer number and the neighborhood diersity of the input graph, respectiely. Keywords: Odd decycling matching (1,1)-coloring Planar graphs Parameterized complexity 1 Introduction Gien a graph G = (V,E) and a graph property Π, the Π edge-deletion problem consists in determining the minimum number of edges required to be remoed in order to obtain a graph satisfying Π [12]. Gien an integer k 0, the Π edge-deletion decision problem asks for a set F E(G) with F k, such that the obtained graph by the remoal of F satisfies Π. Both ersions hae receied widely attention on the study of their complexity, where we can cite [2, 12, 23, 26, 29, 33, 37, 38] and references therein for applications. When the obtained graph is required to be bipartite, the corresponding edge- (ertex-) deletion problem is called edge (ertex) bipartization [1, 14, 22] or edge (ertex) frustration [39]. Choi, Nakajima, and Rim [14] showed that the edge bipartization decision problem is NP-complete een for cubic graphs. Furmańczyk, Kubale, and Radziszowski [22] considered ertex bipartization of cubic graphs by the remoal of an independent set. In this paper we study the analogous edge deletion decision problem, that is, the problem of determining whether a finite, simple, and undirected graph G admits a remoal of a set of edges that is a matching in G in order to obtain a bipartite graph. Formally, for a set M of edges of a graph G = (V,E), let G M be the graph with ertex set V (G) and edge set E(G) \ M. For a matching M E(G), we say that M is an odd decycling matching of G if G M is bipartite. Let BM denote the set of all graphs admitting an odd decycling matching. We deal with the complexity of the following decision problem. ODD DECYCLING MATCHING Input: A finite, simple, and undirected graph G. Question: Does G BM? A more restricted ersion of this problem is considered by Schaefer [35]. He deals with the problem of determining whether a gien graph G admits a 2-coloring of the ertices so that each ertex has exactly one neighbor with same color as itself. We can see that the remoal of the set of edges whose endertices hae same color, which is a perfect matching of G, generates a bipartite graph. Schaefer proed that such a problem is NP-complete een for planar cubic graphs. With respect to the minimization ersion, the edge-deletion decision problem in order to obtain a bipartite graph is analogous to SIMPLE MAX CUT, which was proed to be NP-complete by Garey, Johnson and Stockmeyer [23]. Yannakakis [37] proed its NP-completeness een for cubic graphs. Partially supported by CAPES, FAPERJ, and CNPq/DAAD2015SWE/290021/2015-4. Email addresses: carloslima@dcc.ufmg.br (Lima), dieter.rautenbach@uni-ulm.de (Rautenbach), ueerton@ic.uff.br (Souza), and jayme@cos.ufrj.br (Szwarcfiter) 1

Cowen et al. [20] studied the (k,d)-colorings, called defectie, that are k-coloring of the ertices such that each color class has maximum degree d. They proed that it is NP-complete to determine whether a gien graph is (2, 1)-colorable een for graphs with maximum degree 4 and een for planar graphs with maximum degree 5. Angelini et al. [3] determined that ODD DECYCLING MATCHING can be soled in linear-time for partial 2-trees, where it is known that k-tree graphs hae treewidth at most k, for any k 1. ODD DECYCLING MATCHING can also be seen as another problem. A graph G is (d 1,...,d k )-colorable if V (G) can be partitioned into V 1,...,V k, such that the induced subgraph G[V i ] has maximum degree at most d i, for all 1 i k. This is a generalization of the classical proper k-coloring, when eery d i = 0, and the d-improper k-coloring, when eery d i = d 1. It is clear to see that G BM if and only if G is (1,1)-colorable. Loász [30] proed that if a graph G satisfies (d 1 + 1) + (d 2 + 1) + + (d k + 1) (G) + 1 then G is (d 1,...,d k )-colorable, where (G) denotes the maximum degree of G. This result shows that eery subcubic graph is (1, 1)-colorable and thus belongs to BM. Borodin, { Kostochka, and Yancey }[7] studied the (1, 1)-colorable graphs with respect to the sparseness parameter mad(g) = max 2 E(H) V (H), for all H G. They proed that eery graph G with mad(g) 14 5 is (1,1)-colorable, where this bound is sharp. Moreoer, they defined the parameter ρ(g) = min ρ G(S), such that ρ G (S) = 7 S 5 E(G[S]). They S V (G) showed that G is (1,1)-colorable if ρ(g) 0. Finally, they also proed that eery planar graph with girth (the size of the smallest cycle of G) at least 7 is (1,1)-colorable. This is the best result concerning (1,1)-coloring of planar graphs. In this work we summarize our results as follows. We proe that ODD DECYCLING MATCHING is NP-complete een for 3-colorable planar graphs with maximum degree 4, which improes the preious result by Cowen et al. [20]. As positie results, we show polynomial time algorithms for (claw, paw)-free graphs, graphs that hae only triangles as odd cycles, and graphs that hae a small dominating set. We also show that graphs in BM can be expressed in monadic second order logic. Hence, using Courcelle s meta-theorems [15, 16, 19] we proe that ODD DECYCLING MATCHING is fixed-parameter tractable when parameterized by clique-width, which improes the preious result by Angelini et al. [3]. We also show an exact 2 O(c(G)) n algorithm, where c(g) is the ertex coer number of G. Finally, for a generalization of ODD DECYCLING MATCHING, we show a kernel with at most 2 nd(g) ertices when such a more general problem is parameterized by neighborhood diersity number, nd(g). 1.1 Preliminaries Let G = (V,E) be a graph with n(g) ertices and m(g) edges. Gien a subgraph H of G, we denote by G[H] the induced subgraph of G by V (H). Let N G () = {u : u E(G)} be the neighborhood of in G. Moreoer, let N G [] = {} N G () be the closed neighborhood of in G. The degree of a ertex V (G), N G (), is denoted by d G (), and let (G) be the maximum degree of G. Let P n and C n be a path and a cycle of length n, respectiely. Furthermore, we denote by K n and K n,m the complete graphs of order n and the complete bipartite graphs with parts of order n and m, respectiely. A diamond is the graph obtained by remoing one edge from the K 4. Let W k be the wheel graph of order k, that is, the graph containing a ertex, called central, and a cycle C of order k, such that is adjacent to all ertices of C. We say that a graph is a k-pool if it is formed by k triangles edge-disjoint whose bases induce a C k. Formally, a k-pool is obtained from a cycle C = { 1, 2,..., 2k } (k 3), such that the odd-indexed ertices induce a cycle p 1 p 2... p k p 1, called internal cycle of the k-pool, where p i = 2i 1, 1 i k. The een-indexed ertex b i is the i-th-border of the k- pool, where {b i } = N C (p i ) N C (p i+1 ) and i + 1 is taken modulo 2k. Fig. 1c and Fig. 1d represent the 3-pool and 5-pool, respectiely. The claw (K 1,3 ) and the paw (a triangle plus an edge) graphs are the unique ones with degree sequences 1,1,1,3 and 1, 2, 2, 3, respectiely. Clearly, eery graph G BM admits a proper 4-coloring. Hence eery graph in BM is K 5 -free. More precisely, eery graph in BM is W 4 -free, which is depicted in Fig 1a. Hence some proper 4-colorable graphs do not admit an odd decycling matching. Fig. 1 shows some others examples of forbidden subgraphs. Lemma 1 collects some properties of graphs in BM. Lemma 1. For a graph G BM and an odd decycling matching M of G, the following assertions are true. (i) If G has a diamond D as a subgraph, then M contains no edge e / E(D) incident to only one ertex of degree three of D. (ii) G[N G ()] cannot contain two disjoint P 3, for eery V (G). (iii) G cannot contain a W k as a subgraph, for all k 4. (i) G cannot contain a k-pool as a subgraph, for all odd k 3. Proof. (i) Let G BM be a graph that contains a diamond D as a subgraph, such that V (D) = {u, 1, 2, 3 } and d D (u) = d D ( 2 ) = 3. We can see that M E(D) equals to exactly one of the following sets: {u 1, 2 3 }, { 1 2,u 3 }, {u 2 }. For 2

c 1 c 2 c 1 c 2 b 1 u c 5 u c 3 p 1 p 2 c 4 c 3 c 4 b 3 p 3 b 2 (a) The W 4. b 1 p 1 p 2 b 5 (b) The W 5. (c) The 3-pool. u b 2 p 5 p 3 b 4 p 4 b 3 (d) The 5-pool. c 1 c 2 c 3 c 4 c 5 c 6 (e) Two diamonds sharing a ertex of degree 3. Figure 1: Some examples of forbidden subgraphs. each of such sets, both u and 2 are matched by M. Hence M cannot contain any edge e / E(G[V (D)]) incident to only u or 2. (ii) Let V (G) such that G[N G ()] contains two disjoint P 3, P and P. It follows that G[{} P] and G[{} P ] are diamonds that share a ertex of degree at least three. By (i) the statement holds. (iii) Suppose for a contradiction that G contains a subgraph H isomorphic to a wheel graph W k, k 4. Let V (H) = {u, 1, 2,..., k 1, k }, such that u is adjacent to all ertices of the cycle C = 1 2... k 1. If k 6, then u contains two disjoint P 3 in its neighborhood, and thus it follows by (ii) that k 5. In this case, it can be easily erified that W 4 and W 5 are forbidden subgraphs. (i) Suppose, for a contradiction, that G contains a subgraph H isomorphic to a k-pool, for some odd k 3. Let C = {p 1 p 2... p k p 1 } be its internal cycle and let B = {b 1,b 2,...,b k } be the ertices of the border of H, such that {p i b i, p i+1 b i } E(H), for all 1 i k modulo k. Clearly M must contain some edge of C and one edge of eery triangle p i b i p i+1. W.l.o.g., consider p 1 p 2 M E(C). This implies that M contains no edge in {p 2 b 2, p 2 p 3, p 1 b k, p 1 p k }. Therefore, p k b k and p 3 b 2 must be in M, which forbids two more edges from the triangles p k 1 b k 1 p k and p 3 b 3 p 4. Continuing this process, it follows that c k+3 2, which is at the same distance of p 1 and p 2 in C, must contain two incident edges in M, a contradiction. 1.2 A linear Time Algorithm for Subcubic Graphs Bondy and Locke [6] presented the following lemma, which was also obtained by Erdős [21] by induction on n(g). Lemma 2. (Bondy and Locke [6]) Let G be a graph and let B be a largest bipartite subgraph of G. Then d B () 1 2 d G(), for eery V (G). Lemma 2 shows that eery subcubic graph G admits an odd decycling matching, since eery ertex has at most one incident edge not in a largest bipartite subgraph of G. This result was also obtained by Loász [30] with respect to 1-improper 2-coloring of graphs with maximum degree at most 3. Consider a bipartition of V (G) into sets A and B. For eery ertex, we say that is of type (a,b) if d V (G)\X () = a and d X () = b, where X is the part (either A or B) which contains. We present a linear algorithm to find an odd decycling matching of subcubic graphs, Algorithm 1. Theorem 3. Algorithm 1 returns in linear-time an odd decycling matching for subcubic graphs. Proof. Let A be a maximal independent set of G. Let B = V (G) \ A. In this case, eery ertex of A is of type (k,0) and there is no ertex in B of type (0,k), k {1,2,3}. Therefore, if there exists a ertex of type (a,b) with a < b, then it must be in B and be of type (1,2). In order to proe the correctness of Algorithm 1, it is sufficient to show that the operations on lines 7 8 and 10 11 do not generate ertices of type (a,b) with a < b. Let {u} = N G[A] (). If u is of type (3,0), then is moed from B to A by lines 7 8. In this case, it follows that both u and are ertices of type (2,1) after the line 8. If u is not of type (3,0), then the lines 10 11 modify the types of u and. If u is of type (1,1), then u and are modified to type (2,0) and (3,0), respectiely; If u is of type (1,0), then u and are modified to type (1,0) and (3,0), respectiely; If u is of type (2,0), then u and are modified to type (1,1) and (3,0), respectiely; If u is of type (2,1), then u and are modified to type (2,1) and (3,0), respectiely. 3

Algorithm 1: A linear-time algorithm that determines an odd decycling matching for subcubic graphs. Data: A subcubic graph G. Result: An odd decycling matching M of G. 1 A A maximal independent set of G; 2 B V (G) \ A; 3 M /0; 4 while exists a ertex B of type (1,2), with respect to A and B, do 5 u N G[A] (); 6 if u is of type (3,0) then 7 B B \ {}; 8 A A {}; 9 else 10 B {B {u}} \ {}; 11 A {A {}} \ {u}; 12 M all edges of G[A] G[B]; 13 return M; We can see that each neighbor w of u in the same part X {A,B} of u loses exactly one neighbor (that is u) in G[X]. Moreoer, w receies at most one new neighbor (that is ) in G[X]. The same occurs for eery neighbor of in V (G) \ X. Therefore, in any case it is not obtained ertices of type (a,b) with a < b, which implies that the Algorithm 1 finishes. Despite the simplicity of Algorithm 1, determining the size of a minimum odd decycling matching of subcubic graphs is NP-hard, since this problem becomes analogous to MAX CUT [24] for such a class. 2 NP-Completeness for ODD DECYCLING MATCHING In this section we proe that ODD DECYCLING MATCHING is NP-complete een for planar graphs of maximum degree at most 4. We organize the proof in three parts. In the first one we show some polynomial time reductions from NOT-ALL- EQUAL 3-SAT (NAE-3SAT) [35] and POSITIVE PLANAR 1-IN-3-SAT [32]. In the second part we proe that ODD DECYCLING MATCHING is NP-complete for graphs with maximum degree at most 4. This proof is a more intuitie and easier to understand the gadgets and construction of the next part. The third part presents a proof that ODD DECYCLING MATCHING is NP-complete een for planar graphs with maximum degree at most 5. Finally, the proof finishes as a corollary from the preious results by just slightly modifying the used gadgets. 2.1 Preliminaries Let F be a Boolean formula in CNF with set of ariables X = {x 1,x 2,...,x n } and set of clauses C = {c 1,c 2,...,c m }. The associated graph of F, G F = (V,E), is the bipartite graph such that there exists a ertex for eery ariable and clause of F, where (X,C) is a bipartition of V (G F ) into independent sets. Furthermore, there exists an edge x i c j E(G F ) if and only if c j contains either x i or x i. We say that F is planar if its associated graph is planar. In order to obtain a polynomial reduction, we consider the following decision problems, which are NP-complete. NOT-ALL-EQUAL 3-SAT (NAE-3SAT) [35] Input: A Boolean formula in 3-CNF, F. Question: Is there a truth assignment to the ariables of F, in which each clause has one literal assigned true and one literal assigned false? POSITIVE PLANAR 1-IN-3-SAT [32] Input: A planar Boolean formula in 3-CNF, F, with no negated literals. Question: Is there a truth assignment to the ariables of F, in which each clause has exactly one literal assigned true? In order to proe the NP-completeness of ODD DECYCLING MATCHING, we first present a polynomial time reduction from NAE-3SAT and POSITIVE PLANAR 1-IN-3-SAT to the following decision problems, respectiely: NAE-3SAT 3 Input: A Boolean formula in CNF, F, where each clause has either 2 or 3 literals, each ariable occurs at most 3 times, and each literal occurs at most twice. Question: Is there a truth assignment to the ariables of F in which each clause has at least one literal assigned true and at least one literal assigned false? 4

Figure 2: The associated graph G F obtained from F = (x 1 x 2 x 3 ) (x 1 x 3 x 4 ) (x 1 x 4 x 5 ) (x 2 x 3 x 5 ). The black ertices correspond to clauses. PLANAR 1-IN-3-SAT 3 Input: A planar Boolean formula in CNF, F, where each clause has either 2 or 3 literals and each ariable occurs at most 3 times. Moreoer, each positie literal occurs at most twice, while eery negatie literal occurs at most once in F. Question: Is there a truth assignment to the ariables of F in which each clause has exactly one true literal? Theorem 4. NAE-3SAT 3 is NP-complete. PLANAR 1-IN-3-SAT 3 is NP-complete. Proof. Since erifying whether a graph is planar can be done in linear-time [27], as well as whether a formula in 3-CNF has a truth assignment, both problems are in NP. Let F be a Boolean formula in 3-CNF such that X = {x 1,x 2,...,x n } denotes the set of ariables and C = {c 1,c 2,...,c m } is the set of clauses of F. We construct a formula F from F as follows. For a ertex x i V (G F [X]), let d GF (x i ) be the degree of x i in G F. For such a ariable x i with d GF (x i ) = k 3, we create k new clauses c j i of size 2, and k new ariables xz i as follows: ( ) c j i = x j i, x j+1 i, if j {1,...,k 1}; ( ) xi k, x1 i, if j = k. In addition, we replace the j th (1 j k) ( occurrence ) of the ariable x i X by an occurrence of a ariable x j i, where a literal x i (resp. x i ) is replaced by a literal x j i resp. x j i. Let S be the set of all ertices x i V (G F [X]) with d GF (x i ) = k 3. For such a ertex x i S, let X i = {xi 1,...,xk i } and C i = {c 1 i,...,ck i }. Note that, the associated graph G F can be obtained from G F by replacing the corresponding ertex of x i S by a cycle of length 2d GF (x i ) induced by the corresponding ertices of the new clauses in C i and the new ariables in X i. In addition, for each x i S and c j N GF (x i ) an edge x t i c j is added in E(G F ), such that eery corresponding ertex x t i X i has exactly one neighbor c j / C i. Fig. 2 shows an example of the transformation for a Boolean formula. As we can see, eery ariable x occurs at most 3 times in the clauses of F, since eery ariable x i with d GF (x i ) 3 is replaced by d GF (x i ) new ariables that are in exactly 3 clauses of F. By the construction, each literal occurs at most twice. Moreoer, if F has no negatie literals, then only the new ariables hae a negated literal and each one occurs exactly once in F. Now, it remains to show that if G F is planar then we can construct F as a planar formula. Consider a planar embedding Ψ of G F, we construct G F replacing each corresponding ertex x i S by a cycle of length 2d GF (x i ), as described aboe. After that, in order to presere the planarity, we can follow the planar embedding Ψ to add a matching between ertices corresponding to ariables in such a cycle and ertices corresponding to clauses c j / C i and that x i c j. Such a matching indicates in which clause of C i a gien new ariable will replace x i in F. Thus, without loss of generality, if G F is planar then we can assume that F is planar as well. Let F be an instance of NAE-3SAT (resp. POSITIVE PLANAR 1-IN-3-SAT) such that X = {x 1,...,x n } denotes its set of ariables and C = {c 1,c 2,...,c m } its set of clauses. Let F be the formula obtained from F by the aboe construction. As we can obsere, for any truth assignment of F, all x t i X i (for a gien ariable x i of F) hae the same alue. Therefore, any clause of F containing exactly two literals has true and false alues. At this point, it is easy to see that F has a notall-equal (resp. 1-in-3) truth assignment if and only if F has a not-all-equal (resp. 1-in-3) truth assignment. Now we show the NP-completeness of ODD DECYCLING MATCHING. Let us call the graph depicted in Fig 3a by head. Vertex is the neck of the head. Gien a graph G, the next lemma shows that such a structure is ery useful to ensure that some edges cannot be in any odd decycling matching of G. The next simple lemma is used in the correctness of our reductions. 5

(a) The head graph H. (b) The odd decycling matching of H. Figure 3: The head graph and its odd decycling matching M, which is represented by the stressed edges. Vertices with same color belong to the same part in the bipartition of G M. Lemma 5. Let G be a graph that contains an induced subgraph H isomorphic to a head graph, whose neck is. Then all edges not in H incident to cannot be in any odd decycling matching of G. Moreoer H admits only one odd decycling matching. Proof. Let M be an odd decycling matching of G. Suppose for a contradiction that there exists an edge e incident to, such that e contains an endertex not in H. In this case, we get that h 1 and h 4 does not belong to M, which implies that h 1 h 4 M. By the triangle h 1 h 2 h 5, it follows that h 2 h 5 must be in M. Hence the cycle h 1 h 2 h 3 h 4 remains in G M, a contradiction. Now suppose that h 4 M. In this case, the edge h 1 h 2 cannot be in M, otherwise the cycle h 1 h 4 h 3 h 2 h 5 h 1 suries in G M. In the same way, the edge h 1 h 5 / M, otherwise the cycle h 1 h 2 h 5 h 3 h 4 h 1 is not destroyed by M. Therefore we get that h 2 h 5 must be in M, which implies that h 3 h 6 M. Hence the cycle h 5 h 3 h 4 h 7 h 6 h 5 belongs to G M. Since the triangle h 1 h 2 h 5 has no edge in M, it is not destroyed by M, a contradiction. Finally, we get that h 1 must be in M, which implies that h 2 h 5 M as well. Therefore, it follows that h 3 h 6 must be in M. Hence h 4 h 7 also must be in M, which turns the graph bipartite. Since all choices of the edges of M are necessary, we get that there is only one possible odd decycling matching of H, which is perfect. Fig. 3b shows such a matching. This concludes the proof. 2.2 NP-Completeness for Graphs with Maximum Degree at Most 4 With Lemma 5 we can establish the NP-completeness of ODD DECYCLING MATCHING. Remember that graphs in BM are all 4-colorable. The next results show that the NP-completeness is also obtained een for 3-colorable bounded degree graphs. First we present a more intuitie proof by a reduction from NAE-3SAT 3, next we present a more complex proof that also preseres the planarity. The circles with an H in the figures represent an induced subgraph isomorphic to the head graph, whose neck is the ertex touching the circle. By simplicity, this pattern will be used in the remaining figures wheneer possible. Theorem 6. ODD DECYCLING MATCHING is NP-complete een for 3-colorable graphs with maximum degree at most 4. Proof. We proe that ODD DECYCLING MATCHING is NP-complete by a reduction from NAE-3SAT 3 Let F be an instance of NAE-3SAT 3, with X = {x 1,x 2,...,x n } and C = {c 1,c 2,...,c m } be the sets of ariables and clauses of F, respectiely. We construct a graph G = (V,E) as follows: For each ariable x i X, we construct a ariable gadget G xi. Such a gadget consists on a diamond D with a head, whose neck is the ertex u i of degree two in D. The ertices of degree three in D, d 1 i and d 2 i, represent the literal x i, while the last one, d 3 i, of degree two represents the negatie literal x i. Fig. 4 shows the ariable gadget G xi. For each clause c j C, we associate a clause gadget G c j. If c j contains three literals, then G c j is a triangle with ertices c 1 j, c2 j, and c3 j. Moreoer, each ertex ck j is adjacent to a linking ertex lk j, k {1,2,3}, which is a neck of a head H. Such clause gadget is showed in Fig. 5b. In a similar way, if c j has size two, then G c j is as depicted in Fig. 5a, where l 1 j and l2 j are the ertices that connect G c j to the gadgets of the ariables contained in c j. We link a clause gadget G c j to a ariable gadget G xi, such that x i c j, as follows. If c j contains the positie literal x i, then add one edge between a linking ertex l k j to either d1 i or di 2, otherwise we add the edge lk j d3 i, for some 1 k 3. Since the Head graph is 3-colorable, clearly the aboe construction generates also a 3-colorable graph. Next we proe that F has a truth assignment if and only if the graph G obtained form the aboe construction has an odd decycling matching. If F has a truth assignment φ, then each clause c j contains at least one true literal and at least one false literal. For such a clause, we associate true to c k j if and only if its corresponding literal is true in φ. In the same way, for eery ariable gadget G xi, we associate true to di 1 and di 2 if and only if the positie literal x i is true in φ. Therefore, we can construct a bipartition of V (G) into sets T and F, that represent the literal assigned true and false, respectiely, as follows. For each clause gadget G c j of 3 literals, remoe the edge c z j cw j if φ(c z j ) = φ(cw j ), 1 z w 3; 6

Figure 4: Variable gadget G c j in Theorem 6. For each clause gadget G c j of 2 literals, remoe either the edge w 1 j c1 j or w1 j c2 j ; For eery ariable gadget G xi, remoe the edge d 1 i d2 i ; For each induced head H, remoe edges as in Fig. 3b. It is not hard to see that the obtained graph is bipartite, since each linking ertex l k j is in the opposite set of ck j and of dz i, such that l k j dz i E(G). Moreoer, c1 j and c2 j are in opposite sets, for eery clause of length 2. Since the remoed edges are clearly a matching in G, it follows that G BM. Now we consider that G BM. By Lemma 5, it follows that di 1d2 i must be in any odd decycling matching of G, for eery ariable gadget G xi. Analogously, either w 1 j c1 j or w1 j c2 j and exactly one edge ck j cz j must be included in any odd decycling matching of G, for eery clause gadget G c j of 2 and 3 literals, respectiely. Therefore, for an odd decycling matching of G, we can associate to the parts of the bipartition of G M as true and false. Thus, it follows that: d 1 i and d 2 i are in the same part, while d 3 i is in the opposite one, for eery ariable gadget G xi ; c 1 j and c2 j are in different parts, for eery clause gadget G c j of length 2; All the ertices c k j are not in the same part, for eery clause gadget G c j of length 3; Hence, eery clause has at least one true and one false literal, which implies that F is satisfiable. Since NAE-3SAT is polynomial time solable for planar graphs [31], the preious construction cannot be planar. Moreoer planar graphs are classical 4-colorable graphs. Hence it is interesting to know what happens in such a class. The next Subsection deals with this problem. 2.3 NP-Completeness for Planar Graphs Now we will show that ODD DECYCLING MATCHING remains NP-complete een for 3-colorable planar graphs with maximum degree 4. We proe the NP-completeness by a reduction from PLANAR 1-IN-3-SAT 3. In order to proe this result, next we gie a useful lemma. Lemma 7. Let b be a border of an odd k-pool graph G, such that c 1 and c k are its neighbors in G. It follows that eery odd decycling matching of G b must contain exactly one edge of the internal cycle, which is different from c 1 c k. Moreoer, there is only one odd decycling matching for such an edge. Proof. Let C = p 1 p 2... p k p 1 be the internal cycle of G and let b i be the i-th-border of G, such that N G (b i ) = {p i, p i+1 }, 1 i k 1. Since C has odd length, it follows that eery odd decycling matching of G contains at least one edge of C. Suppose for a contradiction that G has an odd decycling matching M containing p 1 p k. In this case, we get that the edges in {p 1 p 2, p 1 b 1, p k p k 1, p k b k 1 } cannot be in M. Therefore M must contain the edges b 1 p 2 and b k 1 p k 1. In the (a) For clauses of size two. (b) For clauses of size three. Figure 5: Clause gadget G c j in Theorem 6. Fig. 6a is such that c j = (x a x b ). Fig. 6b is such that c j = (x a x b x c ). 7

(a) For clauses of size two. (b) For clauses of size three. Figure 6: Clause gadget G c j in Theorem 8. Fig. 6a is such that c j = (x a x b ). Fig. 6b is such that c j = (x a x b x c ). same way, we can see that the edges {p 2 p 3, p 2 b 2, p k 1 p k 2, p k 1 b k 2 } are not in M. Hence, it can be seen that all edges indent to p k 1 are forbidden to be in M, which implies that the triangles p k 2 p k 1 b k 2 and p k 1 p k+1 b k 1 hae no edge 2 2 2 2 2 2 2 in M, a contradiction by the choice of M. Let p i p i+1 be an edge of C contained in an odd decycling matching M of G. In a same fashion, the edges in {p i p i 1, p i b i 1, p i p i+1, p i b i+1 } cannot be in M. Following this pattern, we can see that eery edge p j b j must be in M, for eery 1 j i 1. Furthermore, it follows that b z p z+1 M, for eery i + 1 z k 1. Since M contains one edge of eery triangle of G, it follows that M is unique, for eery edge p i p i+1. Finally, such an odd decycling matching contains only one edge of C. Theorem 8. ODD DECYCLING MATCHING is NP-complete een for 3-colorable planar graphs with maximum degree at most 5. Proof. Let F be an instance of PLANAR 1-IN-3-SAT 3, with X = {x 1,x 2,...,x n } and C = {c 1,c 2,...,c m } be the sets of ariables and clauses of F, respectiely. We construct a planar graph G = (V,E) of maximum degree 5 as follows: For each clause c j C, we construct a gadget G c j as depicted in Fig. 6. Such gadgets are just a 5-pool and a 7-pool less a border for clauses of size 2 and 3, respectiely. Moreoer, for the alternate edges of the internal cycle we subdiide them twice and append a head graph to each such a new ertex. Finally, we add two ertices l j (k,w) and l j (k,b), such that b 2k 1 j l j (k,w) E(G) and b 2k j l j (k,b) E(G), for k {1,2,3}. For such new ertices, we append a head graph to each one. For each ariable x i X, we construct a gadget G xi as depicted in Fig. 7. Such a gadget is a 7-pool less a border, where we subdiide the edges p 2 i p3 i, p3 i p4 i, p4 i p5 i, and p6 i p7 i twice, where eery such a new ertex has a pendant head. We rename each border ertex b 2k 1 i (k {1,3}) as d i (k,b) and b 2k i as d i (k,w), for k {1,2,3}. Moreoer we add a new ertex d i (2,b) adjacent to p 4 i, which has a pendant head graph. The connection between clause and ariable gadgets are as in Fig. 6 and Fig. 7, where each pair of arrow head edges in a ariable gadget G xi corresponds to a pair of such edges in a clause gadget G c j, such that x i c j. More precisely, if x i c j, then we add the edges l j (k,b)d i (k,b) and l j (k,w)d i (k,w), for some k {1,2,3} and for some k {1,2}. On the other hand, if x i c j, then we add the edges l j (k,b)d i (3,b) and l j (k,w)d i (3,w), for some k {1,2,3}. Figure 7: Variable gadget G xi in Theorem 8. Each pair of edges with one no endertex connects G xi to one clause gadget G ca, G cb, or G cc, where x i (c a c b c c ). 8

(a) p 1 j p2 j M (b) p3 j p4 j M (c) p5 j p6 j M Figure 8: All possible configurations gien by the remoal of an odd decycling matching M, represented by the stressed edges, from a clause gadget G c j of three literals. The colors in the ertices represent the bipartition of G c j M. If a ariable occurs only twice in F, then just consider those connections corresponding to the literals of x i in the clauses of F, such that d i (3,b) and d i (3,w) represent x i. Let G be the graph obtained from F by the aboe construction. We can see that G has maximum degree 5, where the only ertices with degree 5 are those p 4 i, for each ariable gadget G x i. Furthermore, it is clear that G is 3-colorable. It remains to show that if F is planar (that is, if G F is planar), then G is planar. Consider a planar embedding ψ of G F. We replace each ariable ertex xi of G F by a ariable gadget G xi, as well as eery clause ertex c j of G c j by a clause gadget G c j. The clause gadgets correspond to clauses of length two or three, which depends on the degree of c j in G F. Since the clause and ariable gadgets are planar, we just need to show that the connections among them keep the planarity. Gien an edge xi c j E(G F ), we connect G xi and G c j by duplicating such an edge as parallel edges l j (k,w)l i (k,w) and l j (k,b)l i (k,b), for some k {1,2,3} and for some k {1,2} or l j (k,b)l i (3,b) and l j (k,w)l i (3,w), for some k {1,2,3}, as preiously discussed. In order to proe that F is satisfiable if and only if G BM, we discuss some considerations related to odd decycling matchings of the clause and ariable gadgets. By Lemma 7, we know that an odd k-pool graph less a border admits one odd decycling matching for each edge of the internal cycle, except that whose both endertices are adjacent to the remoed border. Furthermore, by Lemma 5 it follows that each external edge incident to the neck of an induced head cannot be in any odd decycling matching. In this way, Fig. 8 shows the possible odd decycling matchings M, gien by the stressed edges for the clause gadget G c j of clauses of length three. The black and white ertex assignment represents the bipartition of G c j M. Notice that exactly one pair of ertices l j (k,w) and l j (k,b) (k {1,2,3}) is such that they hae the same color, while the other such pairs hae opposite colors. More precisely, we can see that l j (k,w) has the same color for each pair with opposite color ertices as well as l j (k,b), for each odd decycling matching of G c j. In this way, we can associate one literal x 1 j, x2 j, and x3 j to each pair of ertices l j(k,w) and l j (k,b), k {1,2,3}. A similar analysis can be done for clause gadgets of clauses of length two. In the same fashion as the clause gadgets, each ariable gadget G xi admits two possible odd decycling matchings M as depicted in Fig. 9. We can see that the pair l i (3,b) and l i (3,b) has a different assignment for the other two pairs l i (k,b) and l i (k,b), k {1,2}. Moreoer, the last two pairs hae the same assignment, as it can be seen in Fig. 9a and Fig. 9b. One more detail is that the unique possibilities for such pairs is such that l i (3,b) and l i (3,b) hae opposite assignments if and only if the ertices l i (k,b) and l i (k,b) hae the same assignment, k {1,2}. Therefore we can associate the positie literal x i to the pairs l i (k,b) and l i (k,b), k {1,2}, while x i can be represented by l i (3,b) and l i (3,b). As obsered aboe for clause gadgets, we can associate true alue to the pair of ertices l j (k,w) and l j (k,b) with same color, k {1,2,3}. This implies that exactly one of them is true and, that is, exactly one literal of c j has true alue. Moreoer, each ariable gadget has two positie literals and a negatie one, such that the positie and negatie hae opposite truth assignment. Hence, if G BM, then eery clause gadget has exactly one true literal and eery ariable has a correct truth assignment, which implies that F is satisfiable. Conersely, if F is satisfiable, then each clause has exactly one true literal. Thus, for each clause c j gadget we associate to pair of ertices corresponding to its true literal a same color. By Fig.8, there is an appropriate choice of an odd decycling matching for each true literal of c j. Moreoer, for each literal gadget G xi there is also an appropriate odd decycling matching for the choice of the true literal. This concludes the proof. Let G be the graph obtained by the construction in Theorem 8, next we show how to obtain a planar graph of maximum degree 4. Since the only ertices of degree 5 of G are those p 4 i in the ariable gadgets, we present a slightly modified ariable gadget, which is depicted in Fig 10. In fact, we just modify the head graph. In Fig. 3 we can see that the ertex h 6 has degree 3, which allows us to use it to connect the ariable gadget to the clause one. Fig. 11 shows the possible odd decycling matching of the modified ariable gadget. Since such configurations are analogous to those of the original ariable gadget, with respect to the ertex that connect to clause gadgets, we obtain our main result of this section. Corollary 9. ODD DECYCLING MATCHING is NP-complete een for 3-colorable planar graphs with maximum degree 4. 9

(a) p 1 i p2 i M (b) p 5 i p6 i M Figure 9: All possible configurations gien by the remoal of an odd decycling matching M, represented by the stressed edges, from a ariable gadget G xi. The colors in the ertices represent the bipartition of G xi M. 3 Polynomial Time Results In this section we present our positie results about ODD DECYCLING MATCHING for some graph classes. 3.1 Graphs with Only Triangles as Odd Cycles We consider now a slightly general ersion of ODD DECYCLING MATCHING, where some edges are forbidden to be in any odd decycling matching. ALLOWED ODD DECYCLING MATCHING (AODM) Instance: A graph G and a set F of edges of G. Task: Decide whether G has an odd decycling matching M that does not intersect F, and determine such a matching if it exists. A matching M as in AODM is an allowed odd decycling matching of (G,F). Since (G,F) has an allowed odd decycling matching if and only if (K,E(K) F) has an allowed odd decycling matching for eery component K of G, we may assume that G is connected. Moreoer, note that if G has an allowed odd decycling matching, then G BM, since all allowed odd decycling matching is an odd decycling matching of G. With this new notion, it follows the next result. Theorem 10. AODM can be soled in polynomial time for graphs with only triangles as odd cycles. Proof. Let G be a graph without odd cycles of size at least 5 and let F be a set of edges of G. As described aboe, we can consider G connected. Moreoer, we can assume G as a bridge-free graph, that is, a graph whose all blocks hae size at least 3. Consider a block decomposition Π of G. Clearly we can assume that G has at least two blocks. Let B be a block of G that contains exactly one cut-ertex, that is, B is a final block in Π. If G[B] is bipartite, then clearly (G,F) has an allowed odd decycling matching if and only if (G,F ) admits an allowed odd decycling matching, where G = ((V (G) \V (B)) {},E(G) \ E(B)) and F = F \ E(B). Hence we can suppose that B has a triangle 1 2 3 1. If { 1 2, 1 3 } is not an edge cut, then G { 1 2, 1 3 } has a path P from 1 to { 2, 3 }. Consider P such a path of length at least 2 and such that it is a longest one. Moreoer, consider 2 as the first ertex reached by P between 2 and 3. In this way P must hae the form 1 u 2, otherwise either G[V (P) { 3 }] or P { 1 2 } would contain an odd cycle of Figure 10: The modified ariable gadget. 10

(a) p 1 i p2 i M (b) p 5 i p6 i M Figure 11: All possible configurations gien by the remoal of an odd decycling matching M from the modified ariable gadget. length at least 5, when P has either an een number of ertices or an odd number, respectiely. It also follows that all path between 1 and 2, except 1 2, has length 2. Moreoer, eery path between 1 and 3, except 1 3, has length 2 and contains 2. If u 3 E(G), then N B ( 1 ) = {u, 2, 3 }, otherwise let w N B ( 1 ). Since d B (w) 2, we get that N B (w) = { 1, 2 }, otherwise would exist a path between 1 and 2 of length at least 3, a contradiction. Howeer the cycle 1 u 3 2 w 1 has length 5, a contradiction. Thus G[{ 1, 2, 3,u}] is isomorphic to a K 4 and { 1 2, 1 3, 1 u} is an edge cut. Hence B is a block of G and, by symmetry, = 1. In this case we get that (G,F) has an allowed odd decycling matching if and only if (G,F ) has an allowed odd decycling matching, where F does contain any matching of B of maximum size G = ((V (G) \V (B)) {},E(G) \ E(B)) and F = (F \ E(B)) {x : x N G () \ { 1, 2, 3 }}. If u 3 / E(G), then {z 2,z 1 } is an edge cut for eery ertex z N B ( 2 ) N B ( 1 ). Furthermore, by symmetry, N B ( 2 ) N B ( 1 ) is an independent set. Thus { 1, 2 } {N B ( 2 ) N B ( 1 )} is a block of G. If { 1, 2 } and N B ( 2 ) N B ( 1 ) 3, then (G,F) has an allowed odd decycling matching is and only if (G,F ) has an allowed odd decycling matching, where 1 2 / F and G = ((V (G) \V (B)) {},E(G) \ E(B)) and F = (F \ E(B)) {x : x N G () \V (B)}. If { 1, 2 } and N B ( 2 ) N B ( 1 ) = 2, then (G,F) has an allowed odd decycling matching if and only if (G,F ) has an allowed odd decycling matching, where 1 2 / F, or F { 1 u, 2 3 }, or F { 1 3, 2 u}, and G = ((V (G) \V (B)) {},E(G) \ E(B)), and F = (F \ E(B)) {x : x N G () \V (B)}, If / { 1, 2 }, then (G,F) has an allowed odd decycling matching if and only if (G,F ) has an allowed odd decycling matching, where 1 2 / F and G = ((V (G) \V (B)) {},E(G) \ E(B)) and F = (F \ E(B)). Finally it remains the case that G[{ 1, 2, 3 }] is a block and, by symmetry, suppose = 1. Thus (G,F) has an allowed odd decycling matching if and only if (G,F ) has an allowed odd decycling matching, where 2 3 / F and or 1 2 / F or, 1 3 / F, and G = ((V (G) \V (B)) {},E(G) \ E(B)) and F = F \ E(B), G = ((V (G) \V (B)) {},E(G) \ E(B)), and F = (F \ E(B)) {x : x N G () \V (B)}. 3.2 Graphs with Small Dominating Sets We will show now that ODD DECYCLING MATCHING can be soled in polynomial time when the gien graph G has a dominating set of constant size, which is also gien as input. Such a result generalizes some known graph classes, as for example P 5 -free graphs [13], since the graphs in BM do not admit K 5 as a subgraph. 11

Theorem 11. Let k be a positie integer. For a graph G whose domination number is at most k, it is possible to decide in polynomial time whether G has a matching M such that G M is bipartite, and to find such a matching if it exists. Proof. Let G be as in the statement. A dominating set of order at most k can be found in time O(n k ). Let D be such a dominating set of G of order at most k. Let P D be the set of all bipartitions P D of D into sets A D and B D, such that D[A D ] and D[B D ] do not hae any ertex of degree 2. Note that P D = O(2 k ). Let P D P D be a bipartition of D. We partition all of the other ertices of G D in such a way that P D defines a bipartition of G M D, if one exists, where M D is a matching that will be remoed, gien the choice of D. We do the following tests and operations for each ertex V (G) \V (D): If d AD () 2 and d BD () 2, then P D is not a alid partition; If d AD () 2, then A D A D {}; If d BD () 2, then B D B D {}. Iteratiely we allocate the ertices in V (G) \V (D) as described aboe into the respectie sets A D e B D, or we stop if it is not possible to acquire a alid bipartition. After these operations, V (G) \V (A D B D ) can be partitioned into three sets as follows: X = {u V (G) \V (A D B D ) : d AD (u) = 1 and d BD (u) = 0}; Y = {u V (G) \V (A D B D ) : d AD (u) = 0 and d BD (u) = 1}; Z = {u V (G) \V (A D B D ) : d AD (u) = 1 and d BD (u) = 1}; Since eery ertex in V (G) \V (D) has a neighbor in D, it follows that the neighborhood of all the ertices of X Y Z in A D B D is in D. In this way, we can make a choice of a matching M D to be remoed, such that all of the ertices of X Y Z in A D B D are allocated in A D B D and G M D must be bipartite. Note that there are (n k) k possibilities of choices for M D. In this way, we can choose a dominating set D of order at most k and make all possible bipartitions P D of V (D) into sets A D and B D as preiously described. For each one, we iteratiely allocate the ertices of V (G) \V (D) into A D and B D in a unique way. After this operations, we test all possible matchings M D with edges between ertices of D and those in X Y Z. We can see that in any case we do O(n k ) operations, which concludes the proof. Corollary 12. ODD DECYCLING MATCHING can be soled in polynomial time for P 5 -free graphs. Proof. Follows from the fact that eery connected P 5 -free graph has a dominating clique or a dominating P 3 [13], and graphs in BM do not admit K 5 as a subgraph. 3.3 (Claw, Paw)-free Graphs In this subsection we consider graphs that hae no induced subgraph isomorphic to the claw (K 1,3 ) or to the paw (K 1,3 plus an edge). Let G be a connected (claw, paw)-free graph. We first proe that if G BM, then the neighborhood of any ertex of G has a small size. Lemma 13. If G BM is a claw-free graph, then (G) 5. Proof. Suppose for a contradiction that G has a ertex of degree at least 6, such that { 1, 2, 3, 4, 5, 6 } N G (). Since G is claw-free, then either G[N G ()] has exactly two connected components, which must be cliques, or itself is connected. In the first case, since G is K 5 -free, it follows that each connected component of G[N G ()] has size at most 3. Moreoer, by Lemma 1(ii), if both hae size at least 3, then G / BM, a contradiction. Now suppose that G[N G ()] is connected. If G[N G ()] has a P 5 = abcde as a subgraph, then it is not difficult to see that the only odd decycling matching M of G[{} {a,b,c,d,e}] should hae the edges ab, c and de. Moreoer ae / E(G), otherwise G[{} {a,b,c,d,e}] has a W 5 as a subgraph, a contradiction by Lemma 1(iii). In this way, any other ertex f N() can be adjacent only to ertex c, since all of the ertices in {,a,b,c,d,e} are matched by M. Hence G[{} {a,e, f }] induces a claw in G, a contradiction. On the other hand, necessarily G[N G ()] has a P 3, otherwise there exist at least three connected components in G[N G ()]. By symmetry, suppose that 1 2 and 2 3 E(G). By Lemma 1(ii) G[{ 4, 5, 6 }] has exactly one edge, say 4 5. Since G[N G ()] is connected, the same has a path P of length at least 4 which connects 6 to 4 and 5 by at least one ertex between 1, 2, and 3. Since G[N G ()] does not contain P 5, we can rename the ertices in { 1, 2, 3, 4, 5, 6 } such that P = 1 2 3 4. We know that 1 4 / E(G), otherwise P {} is a W 4, a contradiction by Lemma 1(iii). Hence 5 and 6 must be adjacent to at least one of 1 and 4, which creates a P 5 in G[N G ()], a contradiction. 12

(a) (b) (c) (d) (e) (f) (g) (h) (i) (j) (k) (l) (m) Figure 12: All possible neighborhoods of of a claw-free graph G BM. By Lemma 13, it is not hard to see that the possible neighborhoods of a ertex of a claw-free graph G BM are depicted in Fig. 12. It follows from Lemma 13 and of Fig. 12 that the only possibilities to the neighborhood of a ertex in a (claw, paw)- free graph are as in Fig. 12a, Fig. 12f, Fig. 12g, Fig. 12h and Fig. 12i. In this way we can directly conclude the following lemma. Lemma 14. If G BM is a (claw, paw)-free graph then (G) 3. Hence we can just apply Algorithm 1 to obtain a linear-time algorithm for (claw, paw)-free graphs. Moreoer, by Lemma 14 we can characterize the connected (claw, paw)-free graphs that admit an odd decycling matching. Theorem 15. If G is a connected (claw, paw)-free graph, then G BM if and only if G is isomorphic to a path, a cycle, a diamond or to a K 4. Proof. Let G be a connected (claw, paw)-free graph. Clearly, if G is isomorphic to a path, a cycle, a diamond or to a K 4, then G BM. Now consider G BM. By Lemma 14 we know that does not exist any ertex of degree 4 in G. If all of the ertices of G hae degree 2, then G is isomorphic to a cycle. If G is the triial graph, then the theorem follows. Let be a ertex of degree 1 in G. It follows that either G is a path of length at least one, or there is a ertex u of degree three. Consider u such that it is such a ertex closest to in G. Let w N G (u) be in the path P from to u and let u 1 and u 2 be its two neighbors except for w in G. Since d G (w) 2, we get that w is not adjacent neither to u 1, nor to u 2. Thus u 1 u 2 E(G), since G is claw-free. In this way G[wuu 1 u 2 ] is isomorphic to a paw, a contradiction. Hence G must be a path. Finally suppose that G has a ertex of degree 3 and that G is not isomorphic to a K 4. In this way it follows that G[{} N G ()] is isomorphic to a diamond. Let N G () = { 1, 2, 3 }, such that d G ( 2 ) = 3. Since and 2 hae degree 3, they cannot be adjacent to any other ertex. Suppose that 1 has a neighbor u / {, 2 }. Since u, u 2 / E(G), then G[{u,, 1, 2 }] is isomorphic to a paw, a contradiction. It follows in a similar way that N G ( 3 ) = {, 2 }. Hence G is isomorphic to a diamond. 4 Fixed-Parameter Tractability In this section, we consider the parameterized complexity of ODD DECYCLING MATCHING, and present an analysis of its complexity when parameterized by some classical parameters. Definition 1. The clique-width of a graph G, denoted by cwd(g), is defined as the minimum number of labels needed to construct G, using the following four operations [8]: 1. Create a single ertex with an integer label l (denoted by l()); 2. Disjoint union of two graphs (i.e. co-join) (denoted by ); 3. Join by an edge eery ertex labeled i to eery ertex labeled j for i j (denoted by η(i, j)); 4. Relabeling all ertices with label i by label j (denoted by ρ(i, j)). 13

Some graph classes with bounded clique-width include cographs [8], distance-hereditary graphs [25], graphs with bounded neighborhood diersity [28], and graphs with bounded tree-width such as forests, pseudoforests, cactus graphs, series-parallel graphs, outerplanar graphs, Halin graphs, Apollonian networks, and control flow graphs [5, 8, 11, 25, 36]. The same follows for (P 6, claw)-free and (claw, co-claw)-free graphs [9, 10]. Courcelle, Makowsky and Rotics [18] stated that for any graph G with clique-width bounded by a constant k, and for each graph property Π that can be formulated in a monadic second order logic (MSOL 1 ), there is an O( f (cwd(g)) n) algorithm that decides if G satisfies Π [15 19]. In this monadic second-order graph logic known as MSOL 1, the graph is described by a set of ertices V and a binary adjacency relation edge(.,.), and the graph property in question may be defined in terms of sets of ertices of the gien graph, but not in terms of sets of edges. Using Courcelle, Makowsky and Rotics s meta-theorem based on monadic second order logic [18], in order to show the fixed-parameter tractability of ODD DECYCLING MATCHING when parameterized by clique-width, it remains to show that the related property is MSOL 1 -expressible. Theorem 16. ODD DECYCLING MATCHING is in FPT when parameterized by the clique-width. Proof. Remind that the problem of determining whether G has an odd decycling matching is equialent to determine whether G admits an (1,1)-coloring, which is a 2-coloring of V (G) in which each color class induces a graph of maximum degree at most 1 [30]. Thus, it is enough to show that the property G has an (1,1)-coloring is MSOL 1 -expressible. We construct a formula ϕ(g) such that G BM ϕ(g) as follows: S 1,S 2 V (G) : (S 1 S 2 = /0) (S 1 S 2 = V (G)) ( 1 S 1 [ u 1,w 1 S 1 : (u 1 w 1 ) edge(u 1, 1 ) edge(w 1, 1 )]) ( 2 S 2 [ u 2,w 2 S 2 : (u 2 w 2 ) edge(u 2, 2 ) edge(w 2, 2 )]). Since clique-width generalizes seeral graph parameters [28], we obtain the following corollary. Corollary 17. ODD DECYCLING MATCHING is in FPT when parameterized by the following parameters: neighborhood diersity; treewidth; pathwidth; feedback ertex set; ertex coer. Corollary 18. ODD DECYCLING MATCHING is solable in polynomial-time for chordal graphs. Proof. Since graphs containing K 5 does not hae an odd decycling matching, chordal graphs in BM hae bounded treewidth [34], and thus, ODD DECYCLING MATCHING is solable in polynomial-time for such a class. Courcelle s theorem is a good classification tool, howeer it does not proide a precise FPT-running time bound. Next result shows the exact upper bound for ODD DECYCLING MATCHING parameterized by c(g), the ertex coer number of G. Theorem 19. ODD DECYCLING MATCHING admits a 2 O(c(G)) n algorithm. Proof. Let S be a ertex coer of G such that S = c(g). The algorithm follows in a similar way to Algorithm 11. Let P S be the set of all bipartitions P S of S into sets A S and B S, such that S[A S ] and S[B S ] do not hae any ertex of degree 2. Note that P S = O(2 k ). For each P S P S, we will check if an odd decycling matching of G can be obtained from P S by applying the following operations: For each ertex V (G) \V (S) do If d AS () 2 and d BS () 2, then P S is not a alid partial partition; If d AS () 2, then A S A S {}; If d BS () 2, then B S B S {}. After that, if for all ertices the first condition is not true, then V (G) \V (A S B S ) can be partitioned into three sets: 14