Manuscript Offprint
arXiv:2610.01441On the Classical and Parameterized Complexity of Strong Odd Coloring
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.
Abstract
A strong odd k-coloring of a graph G is a proper k-coloring such that every color appearing in the neighborhood of a non-isolated vertex appears an odd number of times. The minimum k for which G admits a strong odd k-coloring is the strong odd chromatic number, denoted by , of G. Given a graph G and an integer k, STRONG ODD k-COLORABILITY problem asks whether G admits a strong odd k-coloring.
It is known that STRONG ODD k-COLORABILITY is NP-complete in general graphs. In this paper, we prove that the problem is NP-complete on perfect elimination bipartite graphs for , which is a subclass of bipartite graphs. Furthermore, we show that is inapproximable within a factor of for every . On the positive side, we obtain a linear time algorithm to compute an optimal strong odd coloring for block graphs. From a parameterized perspective, we present an FPT algorithm for STRONG ODD k-COLORABILITY when parameterized by treewidth. Moreover, we show that the problem cannot be solved in time for every and when parameterized by treewidth under SETH. Furthermore, we show that STRONG ODD k-COLORABILITY does not admit a polynomial kernel when parameterized by feedback vertex set. Lastly, we prove that STRONG ODD k-COLORABILITY is W[1]-hard when parameterized by clique-width.
Keywords: Strong odd coloring; parameterized complexity; graph algorithms; NP-completeness.
1 Introduction
Petruševski and Škrekovski [19] introduced the notion of odd coloring in 2022. A proper coloring of a graph is an odd coloring if, for every non-isolated vertex , at least one color appears an odd number of times in . The minimum for which admits an odd -coloring is the odd chromatic number of and is denoted by . Odd coloring has been studied extensively since then, see e.g., [2, 7, 9, 13, 14]. Bhyravarapu et al. studied parameterized complexity of odd coloring [4].
Kwon and Park [15] introduced a stronger version of odd coloring with a stronger parity requirement. A proper coloring of a graph is a strong odd coloring if, for every non-isolated vertex , every color that occurs in occurs an odd number of times in . The minimum for which admits a strong odd -coloring is the strong odd chromatic number of , denoted by . Consequently, , where is the square of , obtained by adding an edge between every pair of vertices at distance two in .
The difference between , , and can be arbitrarily large. For the complete bipartite graph , we have , whereas . Thus, the difference between and is unbounded. Moreover, is unbounded. For example, Kwon and Park [15] showed that for , , while the general bound [7] gives a linear bound in . These examples highlight the distinct behavior of strong odd coloring and motivate its structural and algorithmic study.
The study of strong odd coloring has primarily focused on the structural bounds and determination of the strong odd chromatic number for specific graph classes. However, its computational complexity remains largely unexplored. Kwon and Park [15] studied strong odd coloring for graphs with bounded maximum average degree, where maximum average degree of a graph G is the maximum of over all non-empty subgraphs H of G. Caro et al. [8] established that the strong odd chromatic number of planar graphs is bounded by a constant, and posed a question whether the strong odd chromatic number of all planar graphs is at most 12. Pang et al. [18] answered this question in the negative by constructing a planar graph G with . Later, Manattu et al. [17] constructed a planar graph G with and also evaluated the strong odd chromatic number of the join of cycles and empty graphs and one point union of graphs. Goetze et al. [12] proved that the strong odd chromatic number is bounded on every proper minor-closed graph class. Recently, Pilipczuk [20] extended this boundedness result by proving that strong odd chromatic number is bounded on graph classes of bounded expansion.
Given a graph G and an integer k, the STRONG ODD k-COLORABILITY problem asks whether G admits a strong odd coloring using at most k colors. The corresponding optimization problem is to determine , denoted by STRONG ODD CHROMATIC NUMBER. Belmonte et al. [3] proved that STRONG ODD k-COLORABILITY is NP-complete for . Consequently, the problem is para-NP-hard when parameterized by k. Caro et al. [8] proved that STRONG ODD k-COLORABILITY is linear time solvable for trees and unicyclic graphs. In this paper, we study the classical complexity and initiate the study of the parameterized complexity of STRONG ODD k-COLORABILITY.
-
We give a linear time algorithm for computing an optimal strong odd coloring of block graphs. We traverse the cut-tree in breadth-first search order and recursively color the block children of each cut vertex. We reuse colors from the parent to compute an optimal coloring, and ensure that the strong odd condition satisfies.
-
We give an FPT algorithm for STRONG ODD k-COLORABILITY parameterized by the treewidth. We design a dynamic programming algorithm on a nice tree decomposition of the graph that runs in time . Moreover, for every and every , we show that STRONG ODD k-COLORABILITY cannot be solved in time , unless the Strong Exponential Time Hypothesis (SETH) fails. It remains open whether the running time of our algorithm can be improved to narrow the gap with the lower bound.
-
We show that STRONG ODD k-COLORABILITY does not admit a polynomial kernel when parameterized by feedback vertex set. Moreover, we prove that the problem is W[1]-hard when parameterized by clique-width.
The paper is organized as follows. In Section 2, we introduce some necessary definitions. Section 3 presents hardness results. In Section 4, we present a linear time algorithm on block graphs. In Section 5, we study the parameterized complexity of the problem.
2 Preliminaries
All graphs considered in this paper are finite, connected, simple, and undirected. We follow the notation and terminology used in [6]. For a positive integer , let . Let be a graph. An assignment of colors to a set is a partial coloring of . We say a vertex satisfies the strong odd condition under a coloring if each color that appears in , appears an odd number of times in .
Let be a bipartite graph. An edge is called bisimplicial if the subgraph of induced by is a complete bipartite graph. A perfect edge elimination scheme of a graph is an ordering of edges such that each edge is bisimplicial in the graph . A graph is a perfect elimination bipartite graph if it admits a perfect edge elimination scheme.
Let be a graph. A vertex of is a cut vertex if is disconnected. A block of is a maximal connected subgraph that has no cut vertex. A graph is a block graph if every block of is a clique.
A parameterized problem is a problem whose instances are pairs , where is the input and is the parameter. A parameterized problem is fixed-parameter tractable (FPT) if there exists a computable function such that can be solved in time . A kernelization for a parameterized problem is a polynomial time algorithm that, given an instance , outputs an equivalent instance such that , where is a computable function. If is a polynomial function, then the problem is said to admit a polynomial kernel. We use the standard notions of parameterized reductions and W[1]-hardness. For further details on parameterized complexity, we refer the reader to [10].
Definition 1 (Tree Decomposition). A tree decomposition of a graph is a pair , where is a tree whose every node is assigned a vertex subset , called a bag, such that the following conditions hold:
(T1) . In other words, every vertex of G is in at least one bag.
(T2) For every edge , there exists a node of such that bag contains both and .
(T3) For every , the set , i.e., the set of nodes whose corresponding bags contain , induces a connected subtree of .
The width of a tree decomposition equals . The treewidth of a graph , denoted by , is the minimum possible width of a tree decomposition of .
A rooted tree decomposition is nice if (i) and both have exactly one vertex for every leaf of and (ii) Every non-leaf node of is of one of the following three types:
- Introduce node: a node with exactly one child such that for some vertex ; we say that is introduced at .
• Forget node: a node with exactly one child such that for some vertex ; we say that is forgotten at .
• Join node: a node with two children and such that .
Lemma 1 ([10]). If a graph G admits a tree decomposition of width at most k, then it also admits a nice tree decomposition of width at most k. Moreover, given a tree decomposition of G of width at most k, one can compute a nice tree decomposition of G of width at most k that has at most nodes in time .
Let be a graph. A set is a vertex cover of if every edge of has at least one endpoint in . The minimum cardinality of a vertex cover of is called the vertex cover number of and is denoted by . A set is a feedback vertex set of if is a forest. The minimum cardinality of a feedback vertex set of is the feedback vertex set number and is denoted by .
Definition 2 (Clique-width). The clique-width of a graph G, denoted by , is the minimum number of labels needed to construct G using the following four operations:
(a) Introducing a vertex. creates a new vertex v with label i. Thus, consists of a single vertex v with label i.
(b) Disjoint union. constructs the disjoint union of the labeled graphs and .
(c) Introducing edges. adds an edge between every vertex with label i and every vertex with label j, where , in .
(d) Renaming labels. changes the label of every vertex with label i to label j in .
An expression constructed using these four operations and using at most w labels is called a w-expression. In other words, the clique-width of a graph G is the minimum integer w for which there exists a w-expression that constructs G.
3 Hardness results
In this section, we show that STRONG ODD k-COLORABILITY is NP-complete on perfect elimination bipartite graphs. Further, we show that cannot be approximated within a factor of for every .
Theorem 1. STRONG ODD k-COLORABILITY is NP-complete for for perfect elimination bipartite graphs.
Proof. It is easy to verify that STRONG ODD k-COLORABILITY is in NP. Now we show that STRONG ODD k-COLORABILITY is NP-hard by reducing an instance of k-COLORABILITY to an instance of STRONG ODD k-COLORABILITY such that G is k-colorable if and only if H is strong odd k-colorable.
Construction 1. Let be a graph with and . We construct a graph from in polynomial time using the following steps.
(a) Take a copy vertex of each vertex . Let .
(b) Take a vertex corresponding to each edge and make adjacent to the copy of both the endpoints of in . Let . Clearly, each is a vertex of degree 2.
(c) For each vertex , introduce a new vertex . Let . We add an edge between and whenever there is an edge between and . Therefore, each is a vertex of degree 2.
(d) Attach number of pendant vertices to each vertex , denote them by . Let .
Note that is a bipartite graph. Let and . Every edge is bisimplicial in for each . Moreover, there are no edges in the graph . Therefore, is a perfect edge elimination scheme of the graph . Thus, is a perfect elimination bipartite graph.
Claim 1. G is k-colorable if and only if H is strong odd k-colorable.

Figure 1: Illustration of Construction 1.
Proof. Let be a proper -coloring of . We extend this coloring to a strong odd -coloring of , say . For each . Color each vertex by avoiding the colors assigned to both of its neighbors in . Then color each vertex by assigning the same color as assigned to . Assign distinct colors to each vertex of the set from the set of colors .
Now, we show that is a strong odd coloring of . Since each vertex is a pendant vertex, either a color does not appear at all or it appears an odd number of times in . Let and be two neighbors of a vertex . Since and are adjacent in , and are assigned distinct colors under . Therefore, either a color does not appear at all, or it appears an odd number of times in for each . Similarly, either a color does not appear at all, or it appears an odd number of times in for each . The set is an independent set in . Thus, neighbors of each are only in the sets , , and . Since is adjacent to whenever is adjacent to and , each color that appears in appears an even number of times. Note that each appears exactly once in . Consequently, each color of the set appears an odd number of in . Thus, is a strong odd coloring of .
Conversely, let be a strong odd -coloring of . We restrict the coloring to the vertices of the set , denoted by . Since and have a common 2-neighbor whenever there is an edge between and in , for each edge . Thus, is a proper -coloring of .
It is well known that k-COLORABILITY is NP-complete, for . Therefore, STRONG ODD k-COLORABILITY is NP-complete for perfect elimination bipartite graphs, . This completes the proof of Theorem 1.
Now, we provide an inapproximability result for STRONG ODD CHROMATIC NUMBER. We use the following result by Zuckerman [21].
Theorem 2 (Zuckerman [21]). For any , CHROMATIC NUMBER of a graph cannot be approximated within unless .
Theorem 3. For any , STRONG ODD CHROMATIC NUMBER of a graph is inapproximable within unless .
Proof. We construct a graph from an arbitrary graph such that a polynomial time -approximation algorithm for STRONG ODD CHROMATIC NUMBER gives a polynomial time -approximation algorithm for CHROMATIC NUMBER.
Construction 2. Let be a graph with the vertex set and the edge set . We construct a graph from the graph in polynomial time using the following steps.
(a) Take two copies of , say and . Let and .
(b) Let be the vertex corresponding to and . Attach pendant vertices to each vertex and . Let and represent the sets of all the pendant vertices attached to and , respectively. Let .
(c) Add a vertex z and make it adjacent to each vertex of .
(d) Attach n number of pendant vertices to the vertex z. Let be the set of all the pendant vertices attached to the vertex z.
Claim 2.
Proof. We prove this by showing that admits a strong odd coloring with at most colors.
Let be an optimal proper coloring of . Note that . We construct a strong odd coloring of with at most colors. For each and , assign . Assign . For each with , assign . If is even, then choose a color and color each uncolored vertex in with color . If is odd, then choose a color , color all uncolored vertices in with color , and assign color to . It remains to color the vertices in . Let . Recall that corresponds to the vertex . We color in with the same colors as the vertices in i.e., for every color , the number of vertices among receiving the color is equal to the number of vertices in receiving the color . We color in with colors in so that each color is used exactly once. If is even, then choose a color and color each vertex in with color . If is odd, then choose a color , color all uncolored vertices in with color , and assign color to . Then color each vertex of with the same colors used in , so that the number of vertices colored with color in is equal to the number of vertices colored with color in .
Proper coloring: We first show that is a proper coloring of . Since is proper, is proper on and . Note that , which is distinct from the color assigned to any of its neighbors. Finally, each vertex receives a color different from , and each receives a color different from . Thus, is proper.
Strong odd condition: Now we show that each vertex satisfies the strong odd condition.
Vertices of : First, consider a vertex . Fix a color with . By construction, the number of vertices of color in is even. The color appears an odd number of times among . Therefore, color appears an odd number of times in . Note that the color appears exactly once in , and the color appears at most once in . Thus, every vertex satisfies the strong odd condition.
Vertices of : Let . Then is adjacent to its corresponding vertex and to . Since , each of these colors appears exactly once in . Therefore, satisfies the strong odd condition. For every , we have . Thus, the color appears exactly once in , so satisfies the strong odd condition. Therefore, every vertex in satisfies the strong odd condition.
Vertex : Finally, consider . We show that every color in appears an odd number of times in . Fix a color . The number of vertices of color in is equal to the number of vertices of color in . Hence, the total number of vertices of color in is even. Note that the color appears an odd number of times in . Therefore, color appears an odd number of times in . Hence, also satisfies the strong odd condition.
Thus, is a strong odd coloring of H with at most colors.
Assume that there exists a polynomial time algorithm that approximates STRONG ODD CHROMATIC NUMBER within a factor of for a graph with vertices. Let return a strong odd coloring of with number of colors. Therefore, . Note that . By Claim 2, . Since , . Thus, . Since is adjacent to every vertex of , . Since restriction of on is a proper coloring of with at most colors, . We have . Therefore,
where . This is a contradiction to Theorem 2. Thus, Theorem 3 holds.
4 Linear-time algorithm in block graphs
In this section, we study strong odd coloring of block graphs. We present a linear time algorithm to compute an optimal strong odd coloring of a block graph . Let be a block graph. Let be the set of all the blocks of and be the set of all the cut vertices of for some integers . We represent by a tree-like structure known as cut-tree (see [1]), denoted by , where and . The vertices are the block vertices of and the vertices are the cut vertices of . The cut-tree can be obtained in linear time by a depth-first search of . We say a cut-tree is an ordered cut-tree if children of each cut vertex of are ordered in increasing order of their size from left to right. Let be an ordered cut-tree of . We denote the parent of a vertex by PARENT(). For a block vertex , denotes the set of vertices in the block in . Let be a cut vertex of with block children . The set of blocks containing a vertex is denoted by , i.e., . The set of all the vertices in is denoted by . Let be a partial coloring of , where . For a vertex subset , we define , that is, denotes the set of colors assigned by to the colored vertices in .
Observation 1. If G is a complete graph, then .
From now on, we assume that G is not a complete graph. We present an algorithm that computes an optimal strong odd coloring of G.
Let be a non-complete block graph and let be its cut-tree rooted at a cut vertex . For every cut vertex of , let be its block children in with . We describe the algorithm by explaining its two main procedures, COLORROOT and COLORCUTVERTEX. First, Algorithm 1 calls the procedure COLORROOT.
(a) COLORROOT assigns the color 1 to v.
(b) Since is a clique and is already colored, any strong odd coloring needs at least colors to color all the uncolored vertices of . COLORROOT constructs a set such that has colors and each color is distinct from .
(c) COLORROOT colors the vertices of blocks and some vertices of so that any color that appears on the vertices of appears an even number of times. Later, all these colors are used on the vertices of . Thus, the parity of each color becomes odd in .
(d) COLORROOT colors the remaining vertices of using new colors.
(e) COLORROOT colors with colors from the set .
Therefore, COLORROOT colors the root vertex v of and all the block children of v. When all the block children of v are colored, v satisfies the strong odd condition.
Algorithm 1: STRONGODD-COLORINGBLOCK(G)
Input: A non-complete block graph .
Output: A strong odd coloring f of G.
1 Let be an ordered cut-tree of G, rooted at an arbitrary cut vertex v;
2 For every cut vertex x, let be its block children in with ;
3 Traverse in breadth-first search order;
4 Set ;
5 ;
6 ;
7 ;
8 while (there exists a cut vertex x such that its block children are uncolored) do
9 ;
10 ;
11 ;
12 return f
Procedure 1: COLORROOT(G, T(G))
Input: A block graph G, its ordered cut-tree .
Output: A partial coloring of G, a set of colors S.
1 Set ;
2 Set ;
3 Let be such that .
4 for do
5 while (there is an uncolored vertex ) do
6 Assign a color to z and an uncolored vertex in .
7 Let be the set of uncolored vertices of .
8 if then
9 Add number of new colors to S.
10 while (there is an uncolored vertex ) do
11 Assign a color to z.
12 while (there is an uncolored vertex ) do
13 Assign a color to z.
14 return
Claim 3. The vertex v satisfies the strong odd condition under the partial coloring returned by the procedure COLORROOT.
Proof. Note that COLORROOT selects a set containing colors. Then COLORROOT colors the blocks and some vertices of with colors from until each block is colored. Since , there is always an uncolored vertex in whenever there is an uncolored vertex in . Whenever the procedure COLORROOT assigns a color on an uncolored vertex of some block , it colors an uncolored vertex in with color . Consequently, each color appears an even number of times in . Note that COLORROOT colors the uncolored vertices of with colors distinct from and colors in , and these colors are not used on . Finally, COLORROOT colors the block with colors from the set . Since and is already colored, has sufficient colors to color each vertex of . Consequently, each color of the set appears an odd number of times in and any color appearing on appears exactly once in . Hence, satisfies the strong odd condition under the partial coloring returned by the procedure COLORROOT.
Then, Algorithm 1 traverses the tree in breadth-first search order. Whenever Algorithm 1 encounters a cut vertex x such that its block children are uncolored, it calls the procedure COLORCUTVERTEX.
(a) Note that PARENT(x) is already colored. Therefore, x is already colored.
(b) Since is a clique and is already colored, any strong odd coloring needs at least colors to color all the uncolored vertices of . COLORCUTVERTEX constructs two disjoint sets and such that .
(c) If , then COLORCUTVERTEX selects colors from COLORSET(PARENT(x)) and takes .
(d) If , then COLORCUTVERTEX selects all the colors from COLORSET(PARENT(x)) in the set and selects colors distinct from colors of the set in the set .
(e) COLORCUTVERTEX tries to make the parity of as many colors of the set even in . Once parity of each color is even in , COLORCUTVERTEX colors remaining vertices of with colors from keeping the parity even in . Later, all these colors are used on the vertices of . Thus, the parity of each color of the set becomes odd in .
(f) COLORCUTVERTEX colors the vertices of blocks one by one using the colors from the set T exactly once, ensuring that the parity of the colors used becomes even.
(g) If each color of the set COLORSET(PARENT(x) \ f(x)) is used on a vertex of , , ..., and all blocks are colored except and , then COLORCUTVERTEX uses new colors distinct from COLORSET(V(B_v)) to color the uncolored vertices of .
(h) If each color of the set COLORSET(PARENT(x) \ f(x)) is used on a vertex of , , ..., and all blocks are not colored yet, then COLORCUTVERTEX colors the uncolored vertices of , , ..., and some vertices of using the colors of the set ensuring that each color of the appears an even number of times in .
(i) If each block is colored and there are some colors in which are not used on the vertices of , then COLORCUTVERTEX first colors the vertices of with the colors that appears an even number of times in . Note that the set of colors appearing an even number of times in is , where is the set of colors of that appears on the vertices on . If there are some uncolored vertices in , COLORCUTVERTEX colors the uncolored vertices of with new colors distinct from COLORSET( ).
(j) After all these steps, COLORCUTVERTEX colors the remaining uncolored vertices of by using new colors.
(k) Finally, COLORCUTVERTEX colors the uncolored vertices of by using colors from the set .
Thus, COLORCUTVERTEX colors all block children of x. When all the block children of x are colored, x satisfies the strong odd condition.
Procedure 2:COLORCUTVERTEX(G, T(G), S, , x)
Input: A block graph G, its ordered cut-tree , a set of colors S, a partial coloring such that all the vertices that come before x in breadth-first search order of are colored, and a cut vertex x.
Output: A partial coloring of G such that is colored under and a set of colors S.
1 Let .
2 if then
3 Let be such that .
4 Let .
5 else
6 Let .
7 if then
8 Add number of new colors to S.
9 Let be such that .
10 Let .
11 for do
12 while (there is an uncolored vertex ) do
13 if then
14 Assign a color to z.
15 .
16 else
17 Assign a color to z and an uncolored vertex in .
18 if and then
19 Add new colors to S.
20 while (there is an uncolored vertex ) do
21 if then
22 Assign a color to z.
23 .
24 else
25 Assign color to z.
26 Let be the set of colors that appear an even number of times in colored vertices of .
27 if and then
28 Add new colors to S.
29 while (there is an uncolored vertex ) do
30 if then
31 Assign color to z.
32 else
33 Assign color to z.
34 return , S
Claim 4. Let be a cut vertex. The vertex satisfies the strong odd condition under the partial coloring returned by the procedure COLORCUTVERTEX.
Proof. Note that is already colored. Since is a clique and is already colored, any strong odd coloring needs at least colors to color all the uncolored vertices of . COLORCUTVERTEX constructs two disjoint sets and such that . If , then selects colors from in and takes . If , then takes all the colors from in and selects colors in the set . first colors number of vertices of the blocks in breadth first search order.
Case 1: When all colors of are exhausted, i.e., at some iteration.
Note that the parity of each color becomes even in . Since COLORCUTVERTEX is processing blocks in breadth first search order and ,

Figure 2: Execution of COLORROOT on a cut-tree. Each circle represents a block, and the number inside the circle denotes the number of vertices in the corresponding block, including its cut-vertices. The list associated with a block specifies the colors assigned to its uncolored vertices (the parent of each block B is colored before B is processed). Lists shown in blue indicate that each vertex of the corresponding block was colored in the previous step.
is uncolored whenever is uncolored. Moreover, the number of uncolored vertices in is at least the number of uncolored vertices in . Let is uncolored, for some . COLORCUTVERTEX assigns a color to and an uncolored vertex in . Since , each block can be colored with colors from maintaining properness. After coloring each block , COLORCUTVERTEX colors uncolored vertices of with new colors which are distinct from colors in . Since and is already colored, has sufficient colors to color each vertex of . COLORCUTVERTEX colors vertices of with colors from . Therefore, each color appears an even number of times in , and each color appearing on appears exactly once in . Thus, satisfies the strong odd condition under the partial coloring returned by the procedure COLORCUTVERTEX.
Case 2: When all colors of T are not exhausted, i.e., at any iteration.
Let be the set of colors that are used on the vertices of . Note that each vertex of the blocks is colored. Since no color of the set has appeared in , the set of colors appearing an even number of times in is . COLORCUTVERTEX colors the vertices of with colors from the set and then uses new colors distinct from the colors used in , maintaining properness. Since , we have . Therefore, each color appears on some vertex

Figure 3: Execution of COLORCUTVERTEX for . Each circle represents a block, and the number inside the circle denotes the number of vertices in the corresponding block, including its cut-vertices. The list associated with a block specifies the colors assigned to its uncolored vertices (the parent of each block B is colored before B is processed). Lists shown in blue indicate that each vertex of the corresponding block was colored in the previous step or in the partial strong odd coloring given as input to the procedure.
of . Consequently, parity of each color becomes odd in . Note that each color appearing on appears exactly once on . Thus, satisfies the strong odd condition under the partial coloring returned by the procedure COLORCUTVERTEX.
Since is a clique for each , any color that appears in appears uniquely under any proper coloring. Consequently, we have the following observation.
Observation 2. Let be a proper k-coloring of . Then each vertex satisfies the strong odd condition under .
Lemma 2. Algorithm 1 returns a strong odd coloring of G.
Proof. We first show that is a proper coloring. Note that Algorithm 1 calls COLORROOT to color the block children of root . Algorithm 1 traverses in breadth-first search order and calls COLORCUTVERTEX to color the block children to any cut vertex whose block children are not already colored. Whenever COLORROOT or COLORCUTVERTEX colors an uncolored vertex of a block , is colored with a color that does not appear in COLORSET(). Thus, no two vertices

Figure 4: Execution of COLORCUTVERTEX for . Each circle represents a block, and the number inside the circle denotes the number of vertices in the corresponding block, including its cut-vertices. The list associated with a block specifies the colors assigned to its uncolored vertices (the parent of each block B is colored before B is processed). Lists shown in blue indicate that each vertex of the corresponding block was colored in the previous step or in the partial strong odd coloring given as input to the procedure.
of the same block receive the same color. Therefore, whenever . Hence, is a proper coloring of .
It remains to show that each vertex satisfies the strong odd condition. Let . By Observation 2, satisfies the strong odd condition. Now, let . By Claims 3 and 4, satisfies the strong odd condition under the partial colorings returned by COLORROOT and COLORCUTVERTEX. Since no vertex is recolored by Algorithm 1, satisfies the strong odd condition under the coloring returned by Algorithm 1.
Therefore, f is a strong odd coloring of G.
Lemma 3. Let Algorithm 1 return a coloring f of G using k colors. Then .
Proof. Note that there exists a cut vertex such that Algorithm 1 enlarges to contain colors while processing the blocks containing . Let be the block children of such that . Let .
Case 1: , i.e, is the root of .
Let be any strong odd coloring of . Without loss of generality, assume that and colors are assigned to the vertices of under and . Let .
Note that each color appears an even number of times in and each color that appears in occurs an odd number of times in . Let be the colors that appear an odd number of times in under . It is easy to see that . Since each color can appear at most once in a block in a strong odd coloring, each color appears in an even number of blocks in and each color that appears in occurs an odd number of blocks in . Therefore, must use at least number of new colors to color the blocks keeping the parity constraint.
Case 2: , i.e., is not the root of .
Let be any strong odd coloring of , and let . Without loss of generality, assume that and colors are assigned to the vertices of under and . Let . Note that each color appears an even number of times in and each color that appears in occurs an odd number of times in . Let be the colors that appear an odd number of times in under . It is easy to see that . Since each color can appear at most once in a block in a strong odd coloring, each color appears in an even number of blocks in and each color that appears in occurs an odd number of blocks in . Note that can use at most colors from . If a color appears on , then it must appear on an odd number of blocks in . If a color appears on , then it must appear in an even number of blocks in . Thus, needs at least number of colors in to maintain the parity constraints.
Therefore, if Algorithm 1 returns a strong odd coloring of using colors, then . Since is a strong odd coloring by Lemma 2, we have . Hence .
Theorem 4. (*) Algorithm 1 returns an optimal strong odd coloring of G in time.
Proof. Algorithm 1 returns an optimal strong odd coloring by Lemmas 2 and 3 for every block graph G.
Now, we show that Algorithm 1 runs in time. The cut-tree can be constructed in time using a depth-first search. The ordering of the block children of each cut vertex can be computed from their sizes in time. The breadth-first traversal of takes time. Algorithm 1 calls two procedures, COLORROOT and COLORCUTVERTEX.
ColorRoot: COLORROOT colors the root v and its block children. Note that lines 1-3 and lines 7-9 can be executed in time. Each vertex is colored at most once. Moreover, each iteration of each loop in COLORROOT colors at least one vertex in . Therefore, the total number of iterations of all loops in COLORROOT is . For , the COLORSET( ) computed in for and while loop for an uncolored vertex can be computed in time. Similarly, the COLORSET( ) computed in while loop for an uncolored vertex can be computed in time.
ColorCutVertex: Consider one execution of COLORCUTVERTEX for a cut vertex . Note that lines 1-10, lines 18-19, and lines 27-28 can be executed in time. The procedure colors only the block children of . Each vertex is colored at most once. Moreover, each iteration of each loop in COLORCUTVERTEX colors at least one vertex in . Therefore, the total number of iterations of all loops in COLORCUTVERTEX is . For , the COLORSET( ) computed in for and while loop for an uncolored vertex can be computed in time. Similarly, the COLORSET( ) computed in while loop for an uncolored vertex can be computed in time.
Note that COLORSET( ) is computed only when an uncolored vertex is colored for some cut vertex . COLORSET( ) can be computed before executing the loop for and can be updated whenever a vertex is colored in time. Therefore, all executions of COLORROOT and COLORCUTVERTEX runs in time . Since , Algorithm 1 runs in time .
5 Parameterized complexity by structural parameters
We study the parameterized complexity of STRONG ODD k-COLORABILITY when parameterized by treewidth, feedback vertex set, and clique-width of the input graph.
Theorem 5. STRONG ODD k-COLORABILITY parameterized by treewidth and k admits an FPT algorithm with running time .
Proof. We assume that a nice tree decomposition of with for each is given. Thus, each node of is of one of the types: (i) leaf node, (ii) introduce node, (iii) forget node, and (iv) join node. Before going into the algorithm, we define an operation that will be used in this section. We define a binary operation such that , , , , , and . Now, we proceed with the dynamic programming algorithm for treewidth. Given a bag corresponding to the vertex , a state for the bag is a tuple , where determines the bag; is a vertex coloring of ; is a parity function. The value indicates the current parity status of the color in among the edges processed so far. Precisely, if appears an odd number of times, if appears a non-zero even number of times, and if has not yet appeared in .
We denote the dynamic programming table corresponding to the node by and the value corresponding to the state is denoted by . For a node , let denote the set of vertices of appearing in bags of the subtree rooted at . For a state , suppose there is a proper coloring such that (i) its restriction to is the coloring , (ii) For each , if , appears an odd number of times in ; if , appears an even ( ) number of times ; if , then does not appear at all in , (iii) for each if is a forget node forgetting the vertex . Then . Otherwise, . Intuitively, we are assigning 0 to only those states, for which cannot be extended to a strong odd coloring of the graph . For a coloring to be strong odd, it should be proper, and each vertex should satisfy the strong odd condition. Therefore, we have condition (i) and (iii). Note that should correctly store the parity of each color in the neighborhood of each vertex for a state . Therefore, we have condition (ii).
Our dynamic programming algorithm will compute for each state corresponding to each node . For the root , if there is a state such that for each and , then has a strong odd -coloring. Now, we describe our dynamic programming in cases according to the types of nodes of the tree decomposition.
Leaf node: Let be a leaf node with . Then,
For the correctness, note that no neighbor of z is colored yet in the graph processed so far, as a leaf node only contains z.
Introduce node: Let be an introduce node with child introducing a vertex . Note that . Consider a state . Let . Since is a tree decomposition, each vertex is in the bag . Thus, should be as per the occurrence of color in . Moreover, changes for each . Note that remains the same for each . Also, remains the same for each .
Let be a state such that (i) , (ii) , for each , (iii) , for each , and (iv) for each , , where
Then, we have . Otherwise, .
Forget Node: Let be a forget node with child forgetting a vertex . Note that . Consider a state . Note that cannot be extended to a strong odd coloring of if . Let be a state such that (i) , (ii) for each , (iii) for each , and (iv) . Then, we have . Otherwise, .
Join Node: Let be a join node with children and such that . Consider the states , and . We say that the states are consistent with each other if (i) , and (ii) for each , , where
Since , if a color appears in for some , then this occurrence is counted in both subtrees rooted at and . Hence, directly combining and results in counting this occurrence twice. Therefore, we use to correct this double counting and obtain the actual parity.
If there exist states corresponding to and corresponding to such that and , and are consistent, then . Otherwise, .
Now we prove the recurrence formulas used in the dynamic programming algorithm above.
Introduce node: We prove the correctness of the recurrence formula by showing that if and only if .
First assume that . Note that there is exactly one state, say , that satisfies all the conditions. Since satisfies the above-mentioned conditions, there exists a proper coloring satisfying all the conditions for to be 1.
Conversely, assume that . Since is introduced in and satisfies the condition (iv), there exists a proper coloring satisfying all the conditions for to be 1. Therefore, .
Forget node: Let be a forget node with child such that . We prove the correctness of the recurrence formula by showing that if and only if and for each .
First, assume that . Note that there states that satisfies all the required conditions except (iv). Although there is at most one state, say , that satisfies all the conditions. Since and satisfies the above-mentioned conditions, there exists a proper coloring satisfying all the conditions for to be 1. Since we are forgetting a vertex , the neighborhood of is processed completely. If for some color , then does not satisfy strong odd condition. Therefore, cannot be extended to a strong odd coloring of . Then, . Therefore,
Conversely, assume that and for each . Then, there exists a proper coloring satisfying all the conditions for to be 1. Therefore, .
Join node: First, assume that . Let . Note that there exists two states and such that and are consistent with each other. By the definition of consistency and .
Conversely, assume that and . Since and for each , , satisfies all the conditions for to be 1.
Running time: Note that there is exactly one state corresponding to the child of an introduce node satisfying all the required conditions and it can be searched in time. Thus, leaf node and introduce node can be processed in time . Now consider a forget node. There is exactly one state corresponding to child of a forget node satisfying all the conditions required and it can be searched in time. Therefore, forget node can be processed in time . Now, consider a join node with children and . Fix a coloring col of . We enumerate every pair of parity functions corresponding to the two children. For each such pair, the parity function par of the parent is uniquely determined. Since there are possible colorings of , join node can be processed in time . Therefore, the total running of the algorithm is .
This shows that strong odd coloring is fixed-parameter tractable when parameterized by the treewidth of the input graph and the number of colors.
Since the class of graphs with bounded treewidth is a minor-closed family, the class of graphs with bounded treewidth is contained in the class of graphs with bounded expansion. Consequently, for some function [20].
Corollary 1. STRONG ODD k-COLORABILITY admits an FPT algorithm when parameterized by treewidth.
Now, we prove a lower bound on STRONG ODD k-COLORABILITY parameterized by treewidth tw.
Theorem 6. For , STRONG ODD k-COLORABILITY parameterized by treewidth tw cannot be solved in time under SETH.
Proof. We give a parameterized reduction from k-COLORABILITY parameterized by treewidth.
Construction 3. Given an instance of k-COLORABILITY, where tw denotes the treewidth of G, we construct a graph H from G as follows:
(a) Initialize as a copy of . For each vertex , let denote the copy of in , and let .
(b) For each vertex , attach pendant vertices to , where denotes the degree of in . Let be the set of pendant vertices attached to the vertex .
If , then STRONG ODD k-COLORABILITY is trivially yes. So we may assume that . Therefore, has vertices, which is polynomial in the size of the input.
Claim 5. .
Proof. Let be a tree decomposition of with bag size at most . We construct a tree decomposition of starting with . Since is a tree decomposition, there exists a bag containing in . Now, attach number of child bags to with for each where is the copy of . Do this for every vertex . Then, replace with its copy in .
Now, we show that a tree decomposition of . For the copy of every vertex , we have added a bag to every edge for each . There is a bag containing for every vertex , and there is a bag containing and for every edge . Since we have attached bags containing to a bag containing with for each and is not contained in any other bag, bags containing induces a connected subtree of . Moreover, we have added bags of size at most 2. Since and bag size of is at most , is a tree decomposition of with bag size at most . Thus, .
Claim 6. G is k-colorable if and only if H is strong odd k-colorable.
Proof. Assume that is a proper -coloring of . We define a coloring for . For each vertex , . For each vertex , let . For each , for . For each , assign distinct colors from the set to the vertices of , one color per vertex.
We claim that is a strong odd coloring of . Since is a proper coloring of and we do not assign to any vertex from the set , is a strong odd coloring of . Now, consider any vertex . Let be a color that appears in . If appears number of times in , then appears number of times in and once in . Therefore, appears an odd number of times in . Now, assume that does not appear in . The color appears exactly once in . Therefore, each color appears an odd number of times in . Since each vertex is a vertex of degree 1, every color appearing in appears an odd number of times. Thus, is a strong odd -coloring of .
Let be a strong odd coloring of . Since is an induced subgraph of , restriction of to is a proper -coloring of .
Lokshtanov et al. [16] have shown that k-COLORABILITY cannot be solved in time time under SETH, for any fixed . Therefore, STRONG ODD k-COLORABILITY parameterized by treewidth tw cannot be solved in time under SETH, for .
Now, we study STRONG ODD k-COLORABILITY parameterized by the size of a feedback vertex set. We use the following kernelization lower bound for k-COLORABILITY, proved by Bodlaender et al. [5].
Theorem 7 (Bodlaender et al. [5]). k-COLORABILITY parameterized by the size of a vertex cover does not admit a polynomial kernel unless NP coNP/poly.
Note that every vertex cover of a graph is also a feedback vertex set. Therefore, for every graph , . Therefore, -COLORABILITY parameterized by the size of a feedback vertex set does not admit a polynomial kernel unless .
Theorem 8. STRONG ODD k-COLORABILITY parameterized by the size of a feedback vertex set does not admit a polynomial kernel unless NP coNP/poly.
Proof. We prove the result by giving a polynomial-parameter transformation from k-COLORABILITY parameterized by feedback vertex set number to STRONG ODD k-COLORABILITY with the same parameter. Let be an instance of k-COLORABILITY, where is a feedback vertex set of size . We construct from as constructed in Construction 3 in the proof of Theorem 6.
Let . Since is a forest and all vertices added to while constructing are pendant vertices, is a forest. Thus, is a feedback vertex set of with .
By Claim 6, is -colorable if and only if is strong odd -colorable. Therefore, STRONG ODD -COLORABILITY parameterized by the size of a feedback vertex set does not admit a polynomial kernel unless .
Now, we study the parameterized complexity of STRONG ODD k-COLORABILITY when parameterized by clique-width of the input graph. Fomin et al. [11] proved the following.
Theorem 9 (Fomin et al. [11]). k-COLORABILITY is W[1]-hard when parameterized by clique-width.
We transfer this hardness result to STRONG ODD k-COLORABILITY by a parameter-preserving reduction from k-COLORABILITY.
Theorem 10. STRONG ODD k-COLORABILITY is W[1]-hard when parameterized by clique-width.
Proof. We give a parameterized reduction from k-COLORABILITY parameterized by clique-width. Given an instance of k-COLORABILITY, where w denotes the clique-width of G, we construct a graph H from G as constructed in the proof of Theorem 6.
Claim 7. .
Proof. Let be a w-expression of . Let be a vertex that is introduced with label in . We replace the subexpression by
where is the copy of in and are the pendant vertices attached to .
Initially, receives label , while all pendant vertices in receive label . The operation makes every vertex in adjacent to . We then rename to the original label of and rename to . Since label is not involved in any introducing edge operation, no edges are introduced between the vertices in and any vertex except . Thus, every vertex in is adjacent only to . Renaming to the original label will create all the edges in by introducing edge operations of on the copies of the vertices of in . Hence, the resulting expression constructs and uses at most labels. Therefore, .
By Claim 6, G is k-colorable if and only if H is strong odd k-colorable. Therefore, STRONG ODD k-COLORABILITY is W[1]-hard when parameterized by clique-width.
References
[1] A. V. Aho, J. E. Hopcroft, J. D. Ullman, The Design and Analysis of Computer Algorithms, Addison-Wesley, Boston, 1974.
[2] J. Anderson, H. Chau, E.-K. Cho, N. Crawford, S. G. Hartke, E. Heath, O. Henderschedt, H. Kwon, Z. Zhang, The forb-flex method for odd coloring and proper coloring of planar graphs, Discrete Mathematics 348 (2025) 114648.
[3] R. Belmonte, J. P. Bravo, N. Köhler, H. Müller, Complexity classification of colouring problems with parity constraints (2026).
[4] S. Bhyravarapu, S. Kumari, I. V. Reddy, On the parameterized complexity of odd coloring, Theoretical Computer Science 1082 (2026) 116074.
[5] H. L. Bodlaender, B. M. P. Jansen, S. Kratsch, Cross-composition: A new technique for kernelization lower bounds, in: Proceedings of the 28th International Symposium on Theoretical Aspects of Computer Science (STACS), 2011, pp. 165–176.
[6] J. A. Bondy, U. S. R. Murty, Graph Theory, Graduate Texts in Mathematics, Springer, New York, 2008.
[7] Y. Caro, M. Petruševski, R. Škrekovski, Remarks on odd colorings of graphs, Discrete Applied Mathematics 321 (2022) 392–401.
[8] Y. Caro, M. Petruševski, R. Škrekovski, Z. Tuza, On strong odd colorings of graphs, Discrete Mathematics 348 (11) (2025) 114601.
[9] E.-K. Cho, I. Choi, H. Kwon, B. Park, Odd coloring of sparse graphs and planar graphs, Discrete Mathematics 346 (5) (2023) 113305.
[10] M. Cygan, F. V. Fomin, L. Kowalik, D. Lokshtanov, D. Marx, M. Pilipczuk, M. Pilipczuk, S. Saurabh, Parameterized Algorithms, Springer International Publishing, 2015.
[11] F. V. Fomin, P. A. Golovach, D. Lokshtanov, S. Saurabh, Intractability of clique-width parameterizations, SIAM Journal on Computing 39 (5) (2010) 1941–1956.
[12] M. Goetze, F. Klute, K. Knauer, I. Parada, J. P. Peña, T. Ueckerdt, Strong odd coloring in minor-closed classes (2025).
[13] M. Kashima, S. Maezawa, K. Osako, K. Ozeki, S. Tsuchiya, An odd 4-coloring of a maximal outerplanar graph, Discrete Mathematics 348 (2025) 114556.
[14] M. Kashima, K. Ozeki, Odd coloring of k-trees, Discrete Applied Mathematics 390 (2026) 88–101.
[15] H. Kwon, B. Park, Strong odd coloring of sparse graphs, Discrete Mathematics 349 (11) (2026) 115292.
[16] D. Lokshtanov, D. Marx, S. Saurabh, Known algorithms on graphs of bounded treewidth are probably optimal, ACM Transactions on Algorithms 14 (2) (2018) 1–30.
[17] A. J. Manattu, A. Vinay, A. Lakshmanan S, On a conjecture about the strong odd chromatic number of planar graphs, Discrete Mathematics 349 (12) (2026) 115293.
[18] J.-R. Pang, L.-Y. Miao, Y.-Z. Fan, On odd and strong odd colorings of graphs, Discrete Mathematics 349 (1) (2026) 114683.
[19] M. Petruševski, R. Škrekovski, Colorings with neighborhood parity condition, Discrete Applied Mathematics 321 (2022) 385–391.
[20] M. Pilipczuk, Strong odd colorings in graph classes of bounded expansion, The Electronic Journal of Combinatorics 32 (4) (Oct. 2025).
[21] D. Zuckerman, Linear degree extractors and the inapproximability of max clique and chromatic number, Theory of Computing 3 (2007) 103–128.