Abstract 1 Introduction 2 Preliminaries 3 Triangle Modulator 4 Below Guarantee Parameterizations 5 Conclusion References

Graph Coloring Below Guarantees via Co-Triangle Packing

Shyan Akmal ORCID INSAIT, Sofia University “St. Kliment Ohridski”, Bulgaria Tomohiro Koana ORCID Keio University, Yagami, Japan
Abstract

In the -Coloring problem, we are given a graph on n nodes, and tasked with determining if its vertices can be properly colored using colors. In this paper we study below-guarantee graph coloring, which tests whether an n-vertex graph can be properly colored using gk colors, where g is a trivial upper bound such as n. We introduce an algorithmic framework that builds on a packing of co-triangles K3¯ (independent sets of three vertices): the algorithm greedily finds co-triangles and employs a win-win analysis. If many are found, we immediately return yes; otherwise these co-triangles form a small co-triangle modulator, whose deletion makes the graph co-triangle-free.

Extending the work of [Gutin et al., SIDMA 2021], who solved -Coloring (for any ) in randomized O(2k) time when given a K2¯-free modulator of size k, we show that this problem can likewise be solved in randomized O(2k) time when given a K3¯-free modulator of size k.

This result in turn yields a randomized O(23k/2) algorithm for (nk)-Coloring (also known as Dual Coloring), improving the previous O(4k) bound. We then introduce a smaller parameterization, (ω+μ¯k)-Coloring, where ω is the clique number and μ¯ is the size of a maximum matching in the complement graph; since ω+μ¯n for any graph, this problem is strictly harder. Using the same co-triangle-packing argument, we obtain a randomized O(26k) algorithm, establishing its fixed-parameter tractability for a smaller parameter. Complementing this finding, we show that no fixed-parameter tractable algorithm exists for (ωk)-Coloring or (μ¯k)-Coloring under standard complexity assumptions.

Keywords and phrases:
coloring, parameterized algorithms, algebraic algorithms, above-guarantee, below-guarantee, subset convolution, determinants
Funding:
Shyan Akmal: Partially funded by the Ministry of Education and Science of Bulgaria (support for INSAIT, part of the Bulgarian National Roadmap for Research Infrastructure).
Tomohiro Koana: Supported by JST ERATO Grant Number JPMJER2301, Japan.
Copyright and License:
[Uncaptioned image] © Shyan Akmal and Tomohiro Koana; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Graph algorithms analysis
; Theory of computation Parameterized complexity and exact algorithms
Related Version:
Full Version: https://arxiv.org/abs/2509.12347
Acknowledgements:
We thank the anonymous reviewers for helpful feedback on this work.
Editors:
Ho-Lin Chen, Wing-Kai Hon, and Meng-Tsung Tsai

1 Introduction

Graph coloring is a cornerstone of theoretical computer science and discrete mathematics: it connects to deep structure theorems and has driven the development of numerous algorithmic techniques [3, 5, 6, 8, 14]. Given an undirected graph G on n vertices, a proper coloring of G is an assignment of colors to its nodes such that any two adjacent vertices receive different colors. The canonical decision problem for this concept is k-Coloring: given an integer k and a graph G, decide whether G admits a proper coloring with at most k colors.

While 2-Coloring is polynomial-time solvable, 3-Coloring (and therefore k-Coloring for every k3) is already NP-hard [18]. The field of parameterized complexity tackles such NP-hard tasks by measuring the complexity of solving these problems in terms of secondary measures. In this paper we focus on a particularly important subarea of this field known as below-guarantee parameterization.

Below-Guarantee Parameterization.

In the guarantee parameterization paradigm, we reformulate problems by first identifying classes of instances that are trivially solvable – typically because a solution is guaranteed to exist – and then parameterize general instances by their distance from these “easy” cases. See [13] for a survey of this area.

Dual Coloring.

In the context of coloring graphs with n nodes, observe that the n-Coloring problem is trivial, because we can obtain a proper coloring by assigning each vertex a distinct color. The framework of below-guarantee parameterization described above then motivates studying the (nk)-Coloring problem, also referred to as Dual Coloring, where the parameter k captures how many colors we are trying to “save” compared to the trivial coloring using different colors for all vertices. The Dual Coloring problem has been influential in parameterized complexity, with its study in [7] introducing the concept of crown reductions, by now a basic technique in the field of kernelization [10, Chapter 4]. Given an n-node instance G of Dual Coloring and any constant ε>0, [17] showed that in polynomial time one can kernelize the instance to a graph G on (2+ε)k vertices such that the answer to the Dual Coloring problem is the same on G and G, for sufficiently large k in terms of ε>0. Combining this kernelization with existing 2npoly(n) time algorithms for graph coloring [5], we immediately recover a O(4(1+ε)k) time algorithm for Dual Coloring for any constant ε>0, where we write O(f(k)) to denote f(k)poly(n). Without going through this kernelization, one can also use the algorithms of [12] to solve Dual Coloring directly in O(4k) time. We improve upon this result:

Theorem 1.

Dual Coloring can be solved in randomized O(23k/2) time.

Let us mention a closely related problem called (nk)-Set Cover. In this problem, we are given a family of subsets of [n], and are tasked with determining if there exist (nk) sets from whose union is [n]. Very recently, Alferov et al. [2] showed that (nk)-Set Cover can be solved in O(23k/2||) time. Even though the (nk)-Coloring problem can be cast as an instance of (nk)-Set Cover, where is the collection of all independent vertex sets of the graph, this result of [2] does not imply an O(23k/2) time algorithm for (nk)-Coloring, because can have exponentially many sets in n. The dynamic programming approach used in the algorithm of [2] appears to inherently require this runtime dependence on || even when the sets can be implicitly described as in (nk)-Coloring, so that Theorem 1 is not directly implied by this previous work. However, we note it seems plausible that one could combine the ideas of [2] with the subset convolution arguments of [4] to obtain fast algorithms for Dual Coloring as well, and recover Theorem 1.

A Stronger Structural Guarantee.

Given a graph G, we let G¯ denote its complement graph, which has the same vertex set as G, but an edge {u,v} if and only if u and v are distinct, non-adjacent nodes in G. Let ω=ω(G) denote the size of the maximum clique in G. Let μ¯=μ(G¯) denote the size of the maximum matching in the complement G¯. Then we have the following structural parameter-based guarantee for coloring G.

Observation 2.

The graph G admits a proper coloring using at most (ω+μ¯) colors.

Proof.

Let M be a maximal matching in G¯. By definition, |M|μ¯. By maximality of M in G¯, the vertices that are not incident to any edge in M form an independent set in G¯. Thus the set C of vertices outside M form a clique in G, so |C|ω. We color G as follows. For each edge in M, we assign a unique color to both of its endpoints, and we assign distinct new colors to all vertices in C. In total, we use at most (ω+μ¯) colors. By construction this coloring is proper, which proves the claim.

Note that in any graphs with n vertices, we always have (ω+μ¯)n. This is because if we take a clique C in G of size ω and a matching M in G¯ of size μ¯, then by definition each edge of M is incident to at least one distinct vertex outside of C, which forces n|C|+|M|=(ω+μ¯). Thus the guarantee of Observation 2 is stronger than the trivial fact that any graph with n vertices always has a proper coloring using n colors.

In the same way this latter observation motivated the Dual Coloring problem, it is natural to ask if we can obtain efficient algorithms while parameterizing below the stronger guarantee provided by Observation 2. We prove that this is indeed possible.

Theorem 3 (Parameterization from Stronger Guarantee).

Given an integer k1, and a graph G that has maximum clique size ω and whose complement has maximum matching size μ¯, we can solve (ω+μ¯k)-Coloring in randomized O(26k) time.

Our approach.

The key ideas behind Theorems 1 and 3 are sketched below; see Section 1.1 for more details. We first greedily compute a maximal packing of co-triangles K3¯ (independent triplets). If the packing holds many co-triangles, saving two colors per co-triangle already yields the desired proper coloring. Otherwise, the packing’s vertices form a small co-triangle modulator S, whose deletion results in a K3¯-free graph. In the latter case, we extend the randomized procedure of Gutin et al. [12], to show that we can solve the desired coloring problem in O(2|S|) time.

Hardness results.

We also note that algorithms which are fixed-parameter tractable with respect to k are unlikely to exist for (ωk)-Coloring and (μ¯k)-Coloring, so that combining ω and μ¯ together in Theorem 3 appears to be necessary in order to achieve efficient parameterized algorithms with respect to these parameters. For the former, this is because 3-Coloring is NP-hard in planar graphs [11]. Since a planar graph does not have a clique of size five, this means that assuming PNP we cannot hope to solve (ωk)-Coloring in f(k)poly(n) time for any function f(). To show hardness for the latter problem, we prove the following.

Theorem 4.

The (n/2k)-Coloring problem is W[1]-hard in the parameter k on graphs with n vertices whose complement has a perfect matching.

In view of Theorem 4, we cannot hope for an O(f(k))-time algorithm for (μ¯k)-Coloring, for any function f().

1.1 Technical Overview

As a starting point, we give a brief overview for how the work of [12] implies a O(4k) time algorithm for Dual Coloring.

Given a host graph G and pattern graph H, we say G is H-free if G does not contain H as an induced subgraph. We say a set of vertices S in G is an H-free modulator if deleting the vertices in S from G makes the graph H-free. For , we let K denote the complete graph on vertices, and K¯ denote its complement, the independent set on vertices.

The main relevant result from previous work is the following, proven in [12, Theorem 3.5].

Proposition 5 (Clique Modulator).

Given a graph G together with a K2¯-free modulator of size p (i.e., a set of at most p vertices, whose deletion from G turns the graph into a clique), we can solve k-Coloring on G for any k in randomized O(2p) time.

Recall that given a pattern graph H and a host graph G, we say an H-packing in G is a collection of vertex-disjoint, induced copies of H in G. Using Proposition 5 we can solve Dual Coloring in O(4k) time using the following three steps.

Step 1: Identify Matching

Extract a maximal K2¯-packing M in G.

Step 2: Large Matching Easy Instance

If |M|k, then report that a proper coloring using at most (nk) colors exists.

Step 3: Small Matching Small Modulator

If |M|<k, the vertices participating in M form a K¯2-free modulator of size p<2k. Then apply Proposition 5 to solve Dual Coloring in O(4k) time.

In Step 1 we obtain M by running a polynomial time algorithm for finding a maximum matching in the complement graph G¯. In Step 2 we observe that if |M|k, then we can assign a distinct color for each K2¯ in M to color its two vertices, and then color all remaining vertices in G with different colors to obtain a proper coloring using at most k+(n2k)=nk colors overall. In Step 3 we observe that if |M|<k, by maximality deleting each K2¯ in M results in a K2¯-free graph, so Proposition 5 solves the problem.

This strategy of extracting a matching and then performing casework on its size to either identify a solution or enforce more structure is similar to previous work on kernelization for Dual Coloring [7, 17] and applications of crown decomposition [10, Chapter 4].

To solve Dual Coloring faster in O(23k/2) time, we work with a structure more complicated than a matching: a triangle packing. The core technical lemma powering our new algorithms is the following result.

Lemma 6.

Given a K3¯-free modulator of size p and any positive integer k, the k-Coloring problem can be solved in randomized O(2p) time.

Since any K3¯-free modulator is also a K2¯-free modulator by definition, Lemma 6 is a stronger version of Proposition 5. We remark that an extension to K4¯-free modularator is unlikely because Coloring is NP-hard on K4¯-free graphs [16].

Step 1: Identify Triangle Packing

Extract a maximal K3¯-packing 𝒯 in G.

Step 2: Large Packing Easy Instance

If |𝒯|k/2, then report that a proper coloring using at most (nk) colors exists.

Step 3: Small Packing Small Modulator

If |𝒯|<k/2, the vertices participating in 𝒯 form a K3¯-free modulator of size p<3k/2. Then apply Lemma 6 to solve Dual Coloring in O(23k/2) time.

In Step 1 we obtain 𝒯 in polynomial time by running a greedy algorithm. In Step 2 we observe that if |𝒯|k/2, then we can assign each K3¯ in 𝒯 a different color to color its three vertices, and then color all remaining vertices in G with different colors to obtain a proper coloring using at most k/2+(n3k/2)=nk colors overall. In Step 3 we observe that if |𝒯|<3k/2, by maximality deleting each K3¯ in 𝒯 results in a K3¯-free graph, so Lemma 6 solves the problem.

The proof of Proposition 5 from [12] is established using algebraic techniques. The main idea is that given a K2¯-free modulator S of size p, the induced subgraph on VS is a clique, so every vertex outside of S must be assigned a different color. Solving the k-Coloring problem can then be reduced to a problem similar to bipartite matching, where one must determine for each vertex outside of S the subset of vertices in S it shares a color with (intuitively, the subset of S it is “matched to”). The authors use determinants to enumerate bipartite matchings in an auxiliary graph capturing this question, and apply algorithms for polynomial sieving and fast subset convolution to find the best matching (corresponding to an optimal coloring) and solve this problem in O(2p) time, comparable to the number of subsets of S that must be considered.

Our proof of Lemma 6 uses similar technical ingredients. Here, because we are given a K3¯-free modulator S instead of a K2¯-free modulator, we can no longer assume that the vertices in S¯=VS all get different colors. However, we can assume that in a proper coloring of the graph, any given color appears at most twice across the nodes in S¯. This then lets us reduce the k-Coloring problem in this context to a problem related to perfect matchings, albeit in a nonbipartite graph. At a high level, we do this by considering all partitions of S¯ into sets of size at most two, where these parts represent distinct color classes in S¯, and then consider all ways of matching these parts to different subsets of S, corresponding to extending these color classes from S¯ to the full graph.

Since we work with matchings in general undirected graphs, we use Pfaffians instead of determinants in our arguments. We also used a Pfaffian-based algebraic approach in recent work on Edge Coloring [1]. On top of this framework, we use fast subset convolution to ensure that we achieve the same O(2p) runtime as before.

Our algorithm for (ω+μ¯k)-Coloring follows by employing a similar strategy to the procedure for Dual Coloring outlined above, with a more refined analysis with respect to the relevant structural parameters.

Comparison with the (𝒏𝒌)-Set Cover Result.

Alferov et al. [2] achieved an O(23k/2||) algorithm for (nk)-Set Cover on input families via a different toolkit. Their procedure likewise begins by extracting a maximal triangle packing and immediately reports a yes-instance when that packing is large (Step 2 in our outline). When the packing is small, they study the matching structure in the remaining part via the Gallai-Edmonds decomposition. A sufficiently large matching again certifies a solution, and they carefully use this fact to obtain a runtime bound of O(23k/2||). These arguments are tailored to (nk)-Set Cover, and do not lead to an efficient algorithm parameterized by K3¯-free modulator size as in Lemma 6, which is central to proving Theorem 3. For the special case of (nk)-Coloring, where the set can be succinctly described as the collection of independent sets in a given graph, the dynamic program employed in [2] still suffers from this issue. Due to this limitation, this previous approach does not directly prove Theorem 1 either.

Organization.

In Section 2, we review notation and basic facts about graphs, matrices, and polynomials that will be useful to us. In Section 3 we prove Lemma 6. In Section 4, we apply Lemma 6 to design our algorithm for Dual Coloring and (ω+μ¯k)-Coloring (our harder structural parameter variant of Dual Coloring) and prove Theorem 3, and also establish a lower bound for a related problem by proving Theorem 4. We conclude in Section 5 by summarizing our work and mentioning relevant open problems.

2 Preliminaries

General Notation.

Given a positive integer a, we let [a]={1,,a} denote the set of the first a consecutive positive integers.

Graph Notation.

We let G denote the input graph on n vertices and m edges. We let V denote the vertex set of G. Given a subset of nodes SV, we let G[S] denote the induced subgraph of G on S. We let μ(G),ω(G), and α(G) denote the size of a maximum matching, clique, and independent set in G respectively. We let K3 denote the complete graph on three nodes, which we refer to as a triangle.

From Coloring to Clique Covers.

Given a graph G, we say a clique cover of G is a collection 𝒞 of vertex-disjoint cliques in G such that every vertex appears in some clique of 𝒞. The size of this cover is simply |𝒞|, the number of cliques used in the clique cover.

In the p-Clique Cover problem, we are given a graph G on n vertices and are tasked with determining if G has a clique cover of size at most p. For convenience, we refer to (nk)-Clique Cover as the Dual Clique Cover problem. By complementing the graph it is easy to see that p-Coloring and p-Clique Cover are equivalent computational tasks.

Observation 7 (Clique Cover).

For any integer p1, solving p-Coloring on a graph G is equivalent to solving p-Clique Cover on the complement graph G¯.

Proof.

Suppose we have a proper coloring of G. Then the set of vertices assigned any fixed color form an independent set in G, which means they form a clique in G¯. Thus the coloring induces a clique cover of the same size. The reverse direction, that a solution to p-Clique Cover on G¯ implies a solution to p-Coloring on G, follows by symmetric reasoning.

For convenience, in our proofs we will use Observation 7 to frame our algorithms as solving problems related to Clique Cover instead of Coloring.

Algebraic Preliminaries.

Throughout we work over a finite field 𝔽 of size poly(n). Arithmetic operations over 𝔽 take poly(logn) time.

Given a set S, let Π(S) denote the set of perfect matchings on S (i.e., the collection of partitions of S into sets of size exactly two). Given a skew-symmetric matrix 𝐀 (i.e., a matrix that equals 𝐀=𝐀 the negative of its transpose) with rows and columns indexed by a set S, its Pfaffian is defined to be

Pf𝐀=MΠ(S)sgn(M){u,v}M𝐀[u,v] (1)

for a function sgn:Π(S){1,1} whose definition is not relevant here [20, Section 7.3.2].

An arithmetic circuit is a way of constructing a polynomial by starting with its input variables, and iteratively building up more complicated expressions by using the standard operations of addition, multiplication, and division. The size of an arithmetic circuit is the total number of non-scalar operations used to construct its final output polynomial in this way. Our algorithms use the well known fact that Pfaffians admit polynomial-size arithmetic circuits that only use addition and multiplication operations [22].

Proposition 8 (Pfaffian Construction).

In poly(n) time we can construct a division-free arithmetic circuit of poly(n) size over 𝔽 whose inputs are indeterminate entries of an n×n skew-symmetric matrix 𝐀, and whose output is the polynomial Pf𝐀.

We make use of the following classic result, proven for example in [19, Theorem 7.2].

Proposition 9 (Identity Testing).

Let P be a nonzero polynomial over a finite field 𝔽 of degree at most d. If each variable of P is assigned an independent, uniform random value from 𝔽, then the corresponding evaluation of P is nonzero with probability at least 1d/|𝔽|.

Subset Convolution.

Let S be a set of size p. Let α and β be functions from the collection of subsets of S to 𝔽.

The subset convolution (αβ) of α and β is the function defined by setting

(αβ)(T)=A,BST=ABα(A)β(B)for all TS.

For each vS, introduce a variable yv. Let Y={yv}vS be this set of variables. Consider polynomials

P=ASα(A)aAya and Q=BSβ(B)bByb

over the quotient ring R=𝔽[Y]/(y2)yY. That is, R is the usual ring of polynomials over the variables in Y with coefficients from 𝔽, except that whenever we multiply the same variable with itself the resulting product vanishes.

We refer to R as the squarefree ring over Y. By definition of polynomial multiplication and the fact that only squarefree monomials survive in R, we get that

PQ=TS(αβ)(T)tTyt

over R. This shows that computing subset convolutions is equivalent to computing products of polynomials over R. The following result then follows from known O(2p) time algorithms for subset convolution [4].

Proposition 10 (Fast Subset Convolution).

We can compute addition and multiplication over the squarefree ring R on p variables in O(2p) time.

3 Triangle Modulator

In this section, we prove the following key lemma.

Lemma 6. [Restated, see original statement.]

Given a K3¯-free modulator of size p and any positive integer k, the k-Coloring problem can be solved in randomized O(2p) time.

Proof.

Replace the input graph with its complement. Then by Observation 7, it suffices to show that given a K3-free modulator S of size p for G and a positive integer k, we can solve k-Clique Cover on G in O(2p) time.

We write S¯=VS. By definition, G[S¯] contains no triangle (i.e., a copy of K3). This means that for every clique C in G, we have |CS¯|{0,1,2}. Given a clique cover 𝒞 of G, we say it has type t=(t0,t1) if for each i{0,1} the cover 𝒞 contains exactly ti cliques C satisfying |CS¯|=i. Note that if a cover has type t, then because every vertex appears in a unique clique in the cover, exactly t2=(|S¯|t1)/2 cliques in the cover intersect S¯ at two nodes. Consequently, the size of a clique cover with type t is exactly

t0+t1+t2=t0+(t1+|S¯|)/2=t0+(t1+np)/2.

We say a type t=(t0,t1) is valid if and only if we have t0+(t1+np)/2k so that a clique cover of type t has size at most k.

Our task is to determine if G contains a clique cover of size at most k. Such a cover has at most O(k2)poly(n) valid types t, and we try out each possible such type and look for a clique cover with exactly that type.

To that end, fix a valid type t=(t0,t1). We now construct an auxiliary graph H, such that perfect matchings in H encode how clique covers of G with type t may restrict to clique covers of G[S¯]. We include the vertex set S¯ in H, and add all edges from G[S¯] to H. We then introduce a set U of t1 new vertices, and add edges from every node in U to every vertex in S¯. Intuitively, when we take a perfect matching M of H, it will correspond to a clique cover 𝒞 of G such that

  • for each edge {u,v} with uU, there is a clique C𝒞 with CS¯={v}, and

  • for each edge {v,w}M with v,wS¯, there is a clique C𝒞 with CS¯={v,w}.

With this correspondence in mind, we move to constructing a polynomial that will enumerate clique covers of G.

Let E(H) denote the edge set of H. For each eE(H), introduce an indeterminate variable xe. Now consider the matrix 𝐀 whose rows and columns are indexed by nodes of H, with entries defined by

𝐀[v,w]={xvwif {v,w}E(H) and vwxvwif {v,w}E(H) and wv0otherwise

where () is some fixed ordering on the nodes of H.

By Equation 1 and the definition of 𝐀 above, we have

Pf𝐀=MΠ(H)sgn(M)eMxe (2)

where here Π(H) denotes the set of perfect matchings in H, and sgn(M){1,1} for each choice of M.

Next, we will introduce additional, larger polynomial expressions that we will substitute in for the xe variables, with the end goal of transforming the matching polynomial Pf𝐀 into a polynomial that enumerates collections of cliques in G.

Go through all subsets TS, and for each check if T is a clique in G. This lets us determine the collection of all cliques in S in O(2p) time overall.

Then for each edge eE(H) and clique CS, we introduce a variable zeC. For each i[t0] and clique CS, also introduce a variable ziC. Let Z be the set of all these zeC and ziC variables.

Additionally, for each each node vS, we introduce a variable yv. Let Y={yv}vS denote this set of k variables.

Now for each eE(H) and subset TS, define the polynomial

Φe[T]=CCTzeCvCyv. (3)

Intuitively this polynomial enumerates those cliques CT that can be extended using vertices in eS¯ to obtain larger cliques in G.

Also for each i[t0], define the polynomial

Φi=CziCvCyv. (4)

Intuitively these polynomials enumerate cliques CS that we do not plan on extending with nodes in S¯.

For each vertex vV, let N(v) denote the set of vertices in S adjacent to v in G. We construct a new matrix 𝐁, by starting with the matrix 𝐀 and

  • for each e={u,v}E(H) with uU and vS¯, substituting xuv with Φe[N(v)], and

  • for each e={v,w}E(H) with v,wS¯, substituting xvw with Φe[N(v)N(w)].

Now define the polynomial

F=(Pf𝐁)i=1t0Φi (5)

over R[Z], where R=𝔽[Y]/(y2)yY is the squarefree ring defined in Section 2.

Claim 11 (Polynomial Characterization).

The polynomial F has a monomial divisible by vSyv if and only if G has a clique cover of type t=(t0,t1).

Proof.

Suppose first that F has a monomial divisible by vSyv. Since we work over the squarefree ring R, this monomial is of the form

f(Z)vSyv (6)

for some polynomial f𝔽[Z]. Moreover, from Equation 5 such a monomial in F must have been generated by taking the product of monomials from Pf𝐁 and each of the Φi such that the appearance of variables from Y in these monomials partition Y.

For each i[t0], let Ci be the set of vertices vS such that the yv variable was used by the monomial from Φi selected to help generate the expression from Equation 6 in the expansion of the product from Equation 5. Then by the partition property, the Ci are pairwise disjoint. From the definition of Φi in Equation 4, we get that each Ci is a clique.

Now, consider the monomial selected from Pf𝐁 to help generate the expression from Equation 6 in the expansion of the product from Equation 5. By Equation 2 and the definition of 𝐁 in terms of 𝐀, this monomial corresponds to a matching MΠ(H). Split M=M1M2 by letting Mb retain the edges in M which have exactly b endpoints in S¯ for each b[2]. Since H has vertex set S¯U and |U|=t1, we get that M1 has exactly t1 edges, and each of its edges has one endpoint in U and one endpoint in S¯. Let v1,,vt1 be the nodes in S¯ appearing as endpoints of edges in M1. For each j[t1], let ej be the edge containing vj in M1.

Since in 𝐁 we take 𝐀 and replace each xej variable with Φej[N(vj)], the product over the edges of M1 from Equation 2 contributes the variables yv precisely for those vertices v appearing in the union of some choice of cliques D1,,Dt1S with the property that the set Dj{vj} is a clique in G for each j. Since we work over R, the cliques Ci and Dj are mutually disjoint. Moreover, since CiS¯ for all i, we actually have that the cliques Ci and Dj{vj} are collectively vertex-disjoint.

Set t2=(|S¯|t1)/2, and let e~1,,e~t2 be the edges of M2. For each [t2], let N~ be the set of common neighbors in S of the endpoints of the edge e~. Since in 𝐁 we take 𝐀 and replace each xe~ variable with Φe~[N~], the product over the edges of M2 from Equation 2 contributes the variables yv precisely for those vertices v appearing in the union of some choice of cliques D~1,,D~t2S with the property that the set D~e is a clique in G for each . Since we work over R, the Ci, Dj, and D~ are mutually disjoint. Moreover, since M=M1M2 is a matching in S, we in fact know that the Ci, Dj{vj}, and D~e~ are all vertex-disjoint cliques in G.

Combining this vertex-disjoint condition with the facts that M is a perfect matching on S¯ and that the monomial in Equation 6 generated by the products of the monomials of all the cliques we have listed so far is divisible by vSyv, we get that the CiDj{vj}, and D~e~ cliques taken together form a clique cover of G of type t=(t0,t1) as claimed.

Conversely, suppose G has a clique cover of type t=(t0,t1). Set t2=(|S¯|t1)/2.

Let C1,,Ct0 be the cliques in this cover intersecting S¯ at zero nodes, D1,,Dt1 be the cliques in this cover intersecting S¯ at one node, and D~1,,D~t2 be the cliques in this cover intersecting S¯ at two nodes. For each i[t0], select the monomial from Φi in Equation 4 corresponding to the clique Ci.

For each j[t1], let vj be the unique vertex from S¯ in Dj. For each [t2], let e~ be the subset of two vertices in S¯ contained in D~. Since D~ is a clique, e~ is an edge. Let N~ be the set of common neighbors in S¯ of the endpoints of e~. The vj and e~ are vertex-disjoint and account for all vertices in S¯, because we are assuming we are starting with a clique cover. So we can take a perfect matching M of H which includes all the e~ edges, and pairs each vj with a different node in U (here we use the fact that U has exactly t1 nodes). Let ej be the edge containing vj in M for each j[t1].

Then we can select the monomial of Pf𝐁 corresponding to choosing the summand for M in Equation 2, choosing the summand for the cliques Dj{vj} in the sums for Φej[N(vj)] given by Equation 3, and choosing the summands for the cliques D~e~ in the sums for Φe~[N~] given by Equation 3 again.

Then from the clique cover assumption, the product of all the monomials we selected from the Φi and Pf𝐁 will be divisible by vSyv. Moreover, the product of the variables from Z appearing in this monomial uniquely recover the cliques Ci, Dj, and D~, as well as the matching M, because the ziC variables record the ordering of the Ci cliques, and the zeC variables annotate the edges e of the matchings corresponding to the DjS¯ and D~S¯ sets. Thus the monomial generated in this way cannot be cancelled out by any other term in the expansion of F in Equation 5, which proves the desired result.

Having established Claim 11, it suffices to show that we can test that F has a monomial divisible by vSyv in O(2p) time. To do this, we will take a random evaluation of the variables in Z, and then use fast subset convolution over the variables in Y.

For all i[t0] and cliques CS, we pick independent, uniform random ξiC𝔽. Independently from those values, for all eE(H) and CS we also pick independent, uniform random ξeC𝔽. For each i[t0], let

φi=CξiCvCyv. (7)

be the result of evaluating the Z variables of Φi on the ξiC values. We can compute each φi in O(2p) time because we have already precomputed the collection of cliques in S.

Similarly, for each eE(H) and TS, let

φe[T]=CCTξeCvCyv (8)

be the result of evaluating the Z variables of Φe[T] on the ξeC values. Since we precomputed all the cliques contained in S, for any fixed eE(H) and TS we can use Equation 8 to compute φe[T] in O(2p) time. In particular, we can compute φe[T] for all eE(H) and TS of the form T=N(v) for some vS¯ or T=N(v)N(w) for some v,wS¯ in O(2p) time, because there are poly(n) choices for e and T in this case.

Having computed all these values, we can substitute the xe for the relevant values φe[T] values needed to turn 𝐀 into 𝐁 (with respect to our random evaluation of the variables in Z). Now use Proposition 8 to obtain a polynomial-size, division-free arithmetic circuit for the Pfaffian, and feed the entries of 𝐁 we have just computed into it. Each addition and multiplication operation for this arithmetic circuit is now over the squarefree ring R, which by Proposition 10 takes O(2p) time. Since there are only poly(n) such operations, we compute this random evaluation of Pf𝐁 over R in O(2p) time overall. We then compute the product of this with all the φi again in O(2p) time by Proposition 10, which by Equation 5 gives us the value of the polynomial F under our random evaluation to its Z variables.

Since F has degree at most poly(n) in its Z variables, applying Proposition 9 to the coefficient of vSyv in F (viewed as a polynomial in Z), we see that by picking the size of the field 𝔽 to be a sufficiently large polynomial in n, with high probability the random evaluation of F we computed has the monomial vSyv if and only if the original polynomial F has a monomial divisible by vSyv. So by Claim 11 checking if this random evaluation of F has the monomial vSyv solves the k-Coloring problem in O(2p) time with high probability. This proves the desired result.

4 Below Guarantee Parameterizations

In this section, we present our algorithm for Dual Coloring.

Theorem 1. [Restated, see original statement.]

Dual Coloring can be solved in randomized O(23k/2) time.

Proof.

We replace the graph G with its complement. Then by Observation 7, it suffices to solve the Dual Clique Cover problem.

We first construct a maximal collection 𝒯 of vertex-disjoint triangles in G. Since we can find a triangle in G if one exists in polynomial time, we can construct 𝒯 by repeatedly finding a triangle T in G, including T in 𝒯, then deleting the vertices of T from G and repeating this process, until we determine that no triangles are left. We find at most n/3 triangles in this way, so this takes polynomial time overall.

Let t=|𝒯|. Suppose tk/2. Then taking the triangles in 𝒯 together with the single-node sets consisting of each vertex v not used by a triangle in 𝒯 yields a clique cover for G of size t+(n3t)=n2tnk. Thus, we can solve Dual Clique Cover by returning the cover described above.

Otherwise, we have t<k/2. In this case, maximality of 𝒯 implies that the set S=T𝒯T is a K3-free modulator for G of size 3t. Then by Observation 7 and Lemma 6 we can solve Dual Coloring in this case in O(23t)O(23k/2) time, as desired.

Next, we establish (randomized) fixed-parameter tractability for a smaller parameter.

Theorem 3 (Parameterization from Stronger Guarantee). [Restated, see original statement.]

Given an integer k1, and a graph G that has maximum clique size ω and whose complement has maximum matching size μ¯, we can solve (ω+μ¯k)-Coloring in randomized O(26k) time.

Proof.

We replace the graph G with its complement. Let μ=μ(G) and α=α(G) be the size of a maximum matching and maximum independent set in the new graph respectively. Since complementing the graph turns cliques into independent sets, by Observation 7 it suffices to show that we can solve (α+μk)-Clique Cover in O(26k) time.

We first construct a maximal collection 𝒯 of vertex-disjoint triangles in G. Since finding a triangle in G, if it exists, takes polynomial time, and 𝒯 can have at most n/3 triangles, we can obtain 𝒯 in polynomial time using a greedy algorithm that repeatedly finds triangles, includes them in 𝒯, deletes the obtained triangles from G, and continues in this fashion until we are left with a triangle-free graph.

Let t=|𝒯|. Suppose that t2k. In this case, define the set S=T𝒯T of all vertices participating in the triangles of 𝒯. Then by maximality of 𝒯, the set S is a K3-free modulator of G of size 3t. In this case, by Observation 7 and Lemma 6 we can solve (α+μk)-Clique Cover in O(23t)O(26k) time as claimed.

Otherwise, t>2k. In this case, take 𝒯~𝒯 consisting of exactly 2k triangles, and define S=T𝒯~T to be a set of 6k vertices making up 2k of the triangles in 𝒯. We show that in this case, a clique cover of size at most (α+μk) always exists in G.

Write S¯=VS. Let Mout be a maximum matching in G[S¯]. We can find Mout in polynomial time. Let μout=|Mout| be the size of this matching. Let I be the set of vertices in S¯ that do not appear as an endpoint of an edge in Mout. By maximality of Mout, the set I forms an independent set in G. Write αout=|I|.

Claim 12.

We have μout+αoutα+μ3k.

Proof.

We will prove the claim by establishing several inequalities concerning structural parameters in G.

First, construct a maximum matching Min in G[SI] in polynomial time. Let μin=|Min| be the size of this matching. Since Mout is in G[S¯I] by definition, we see that MinMout is a matching in G of size (μin+μout).

Since μ is the size of a maximum matching in G, we get that

μin+μoutμ. (9)

Note that since α is the maximum size of independent sets in G, we have

αoutα. (10)

Now, by maximality of Min in G[SI], we know that the set of vertices in SI not participating as an endpoint in Min forms an independent set in G. This set then has size (αout+6k2μin). Since α is the maximum size of independent sets in G, we have

αout+6k2μin<α. (11)

Now, we can write

μout+αout=μout+(1/2)αout+(1/2)αout. (12)

By applying Equations 10, 9, and 11 to the first through third terms on the right-hand side of Equation 12 respectively, we can bound

μout+αout(μμin)+(1/2)α+(1/2)(α+2μin6k)=α+μ3k

which proves the desired result.

By definition, every vertex in S¯ either appears as an endpoint of Mout, or belongs to I. Then using the triangles in 𝒯~ to cover the vertices in S, and taking the edges from Mout and the individual nodes from I to cover the vertices in S¯, we obtain a clique cover for G of size

2k+μout+αoutα+μk

by Claim 12. So we can solve (α+μk)-Clique Cover just by returning this cover.

Curiously, previous work showed that Induced Matching (the problem of finding a 1-regular induced subgraph on k vertices) is also fixed-parameter tractable in k for the same below-guarantee parameter α+μk as in the proof above [15].

Hardness.

We now present our lower bound, demonstrating that although Theorem 3 shows we can get an efficient parameterized algorithm for graph coloring below (ω+μ¯), we do not expect an analogous algorithm to exist for coloring below the quantity μ¯ on its own.

Theorem 4. [Restated, see original statement.]

The (n/2k)-Coloring problem is W[1]-hard in the parameter k on graphs with n vertices whose complement has a perfect matching.

Proof.

By replacing the graph with its complement and applying Observation 7, it suffices to show that (n/2k)-Clique Cover is W[1]-hard on graphs containing a perfect matching.

We prove this result by reducing from k-Colored Clique. In this problem, we are given a k-partite graph G on kn vertices, with vertex set V=V1Vk partitioned into parts Vi consisting of n nodes each, and are tasked with determining if G contains a clique on k vertices. This problem is known to be W[1]-hard [9, Theorem 13.25].

Take an instance G of k-Colored Clique.

For each i[k], we order the vertices in Vi={vi1,,vin}.

We construct a larger graph G~ that contains G as a subgraph, in addition to some auxiliary nodes and edges we describe next. For each i[k+2], we introduce a new node ui in G~. For each i[k] and j[n1], we introduce a new node wij in G~. We add edges between all the ui nodes. For all i[k], we add an edge from ui to vi1. For all i[k] and j[n1] we add edges from wij to vij and vi(j+1).

Conceptually, this construction of G~ from G involves adding a new clique of size (k+2) to the graph on the ui vertices, and for each i[k] introducing a path

Pi=ui,vi1,wi1,vi2,wi2,,wi(n1),vin (13)

beginning at ui, and alternating between nodes in Vi and Wi according to the orders of the vertices in these sets. By design, for any j[n], we can always split the path

Pi=uiAijvijBij (14)

into its first node, a path Aij on an even number of vertices, the node vij, and a suffix Bij on an even number of vertices. Moreover, Aij and Bij consist of 2n2 nodes altogether in this decomposition.

Note that the constructed graph G~ has a perfect matching, by taking the edges {ui,vi1} for all i[k] and {wij,vi(j+1)} for all i[k] and j[n1].

From its definition, G~ has N=2kn+2 nodes. Set the parameter =k(n1)+2.

Claim 13.

G has a clique on k vertices if and only if G~ has a clique cover of size .

Proof.

Suppose that G has a clique of size k. Let (v1j1,,vnjn)V1××Vk be the k-tuple of vertices participating in this clique.

For each i[k], by Equation 14 we can split each path Pi into

uiAijivij1Bij1

its first node, two paths Aiji and Bij1 on even numbers of vertices with 2n2 nodes total, and the node vij1. For each i[k], we can cover the nodes in Aiji and Biji using the endpoints of the edges from a matching of size (n1). This shows that with k(n1) cliques, we can cover all vertices in G~ in a disjoint fashion, except the ui and viji nodes. We include all the ui nodes in one clique and all the viji nodes in another clique to then obtain a clique cover of size =k(n1)+2 of G~ as claimed.

Conversely, suppose G~ has a clique cover of size . Note that the wij vertices, with indices ranging over i[k] and j[n1], form an independent set. Consequently, covering the wij requires using k(n1) distinct cliques. Now, each wij has degree two in G~, and the neighbors of wij are non-adjacent in G~ by definition. Consequently, the cliques used to cover the wij collectively cover at most 2k(n1) vertices in G~.

In the assumed clique cover of size from G~, this implies that a set of k(n1)=2 distinct cliques are used to cover the at least N2k(n1)=2k+2 remaining nodes in G~ not covered by the cliques that contain the wij vertices. Since node uk+2 is adjacent to only other ui nodes, the clique that covers uk+2 must solely consist of ui nodes. Without loss of generality, we may then assume the clique covering uk+2 contains all ui nodes. After removing the nodes covered by this clique, we have one clique left, that must be used to cover the at least (2k+2)(k+2)=k remaining nodes in G~. Moreover, this clique uses no ui nodes or wij nodes. Consequently, the last clique must be a clique of size k in the vij nodes, which pulls back to the a clique of size k in G. This proves the claim.

Observe that N/2=(k+1), so that =N/2(k+1).

By Claim 13, solving k-Colored Clique problem on graphs with n vertices reduces to solving (N/2(k+1))-Clique Cover on graphs with N=2kn+2 nodes and a perfect matching. Hence the reduction is efficient enough to imply that (n/2k)-Clique Cover is W[1]-hard in graphs with perfect matchings, which proves the desired result.

5 Conclusion

In this paper, we presented a faster parameterized algorithm for Dual Coloring, improving the runtime from O(4k) to O(23k/2)O(2.83k). We also introduced a new below-guarantee parameterization for graph coloring, which can be viewed as a harder version of Dual Coloring. We showed that this problem can be solved in 2O(k)poly(n) time as well, and noted that a closely related parameterization is in contrast W[1]-hard.

The most relevant open question to this work is: what is the true parameterized complexity of Dual Coloring? The current best algorithms for k-Coloring take O(2n) time for general k, and without improving this runtime we cannot hope to solve Dual Coloring in faster than O(2k) time. Can we indeed achieve a O(2k) runtime for Dual Coloring?

A natural strategy to obtain faster algorithms for Dual Coloring would be to try and strengthen Lemma 6 further, by obtaining efficient coloring algorithms parameterized by H-free modulators for larger pattern graphs H. For example, obtaining an analogue of Lemma 6 for K4¯-free modulators would immediately imply a faster Dual Coloring algorithm by following the framework outlined in Section 1.1. Unfortunately, this simple attempt at generalizing Lemma 6 does not seem possible. This is because solving k-Coloring in graphs without induced copies of K¯4 is NP-hard in general [16, Theorem 1], so that assuming PNP we cannot hope to solve k-Coloring in graphs with K¯4-free modulators of size p in f(p)poly(n) time, for any function f(). As mentioned in the Section 1, (nk)-Set Cover can be solved in O(23k/2) time using a different method. Can this approach be combined with our triangle packing argument to obtain a faster Dual Coloring algorithm?

Another interesting research direction is to obtain faster algorithms for multiplicative below-guarantee graph coloring. For any parameter δ[1/3,1], by setting k=(1δ)n in Theorem 1 we get that (δn)-Coloring can be solved in O(2(1(δ1/3)n) time. Using very different techniques, previous work showed that for δ[0,1] it is possible to distinguish between the cases where the input graph G admits a proper coloring with (δn1) colors and the case where any proper coloring of G needs at least (δn+1) colors in O(2(1Ω(δ4))n) time [21, Theorem 1.2]. Can the dependence on δ be improved and the need for additive approximation here be removed, to solve (δn)-Coloring in O(2(1Ω(δ))n) time in general?

Finally, we showed that for Dual Coloring and its harder variant, constructing a maximal triangle packing instead of a maximal matching can accelerate algorithms for these problems. Can this method be used more generally to help improve parameterized algorithms or kernelization for other problems where the current best methods rely on matching-based techniques such as crown decomposition?

References

  • [1] Shyan Akmal and Tomohiro Koana. Faster edge coloring by partition sieving. In Proceedings of the 42nd International Symposium on Theoretical Aspects of Computer Science, STACS 2025, volume 327 of LIPIcs, pages 7:1–7:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. doi:10.4230/LIPICS.STACS.2025.7.
  • [2] Vasily Alferov, Ivan Bliznets, and Kirill Brilliantov. Parameterization of (Partial) Maximum Satisfiability above Matching in a Variable-Clause Graph. In Proceedings of the 38th AAAI Conference on Artificial Intelligence, AAAI 2024, pages 7918–7925. AAAI Press, 2024. doi:10.1609/AAAI.V38I8.28628.
  • [3] Kenneth Appel and Wolfgang Haken. Every planar map is four colorable. I. Discharging. Illinois J. Math., 21(3):429–490, 1977. URL: https://projecteuclid.org/euclid.ijm/1256049012.
  • [4] Andreas Björklund, Thore Husfeldt, Petteri Kaski, and Mikko Koivisto. Fourier meets Möbius: fast subset convolution. In Proceedings of the 39th annual ACM symposium on Theory of computing, STOC 2007. ACM, June 2007. doi:10.1145/1250790.1250801.
  • [5] Andreas Björklund, Thore Husfeldt, and Mikko Koivisto. Set Partitioning via Inclusion-Exclusion. SIAM Journal on Computing, 39(2):546–563, January 2009. doi:10.1137/070683933.
  • [6] Béla Bollobás, Paul A. Catlin, and Paul Erdös. Hadwiger’s Conjecture is True for Almost Every Graph. Eur. J. Comb., 1(3):195–199, 1980. doi:10.1016/S0195-6698(80)80001-1.
  • [7] Benny Chor, Mike Fellows, and David W. Juedes. Linear Kernels in Linear Time, or How to Save k Colors in O(n2) Steps. In Proceedings of the 30th International Workshop on Graph-Theoretic Concepts in Computer Science, volume 3353 of WG 2004, pages 257–269. Springer, 2004. doi:10.1007/978-3-540-30559-0_22.
  • [8] Maria Chudnovsky, Neil Robertson, Paul D. Seymour, and Robin Thomas. The strong perfect graph theorem. Ann. Math., 164(1):51–229, 2006. doi:10.4007/annals.2006.164.51.
  • [9] Marek Cygan, Fedor V. Fomin, Łukasz Kowalik, Daniel Lokshtanov, Dániel Marx, Marcin Pilipczuk, Michał Pilipczuk, and Saket Saurabh. Parameterized Algorithms. Springer International Publishing, 2015. doi:10.1007/978-3-319-21275-3.
  • [10] Fedor V. Fomin, Daniel Lokshtanov, Saket Saurabh, and Meirav Zehavi. Kernelization: Theory of Parameterized Preprocessing. Cambridge University Press, December 2018. doi:10.1017/9781107415157.
  • [11] M.R. Garey, D.S. Johnson, and L. Stockmeyer. Some simplified NP-complete graph problems. Theoretical Computer Science, 1(3):237–267, February 1976. doi:10.1016/0304-3975(76)90059-1.
  • [12] Gregory Gutin, Diptapriyo Majumdar, Sebastian Ordyniak, and Magnus Wahlström. Parameterized Pre-Coloring Extension and List Coloring Problems. SIAM Journal on Discrete Mathematics, 35(1):575–596, January 2021. doi:10.1137/20m1323369.
  • [13] Gregory Gutin and Matthias Mnich. A Survey on Graph Problems Parameterized Above and Below Guaranteed Values, 2024. arXiv:2207.12278v2.
  • [14] Tommy R. Jensen and Bjarne Toft. Graph Coloring Problems. Wiley, 2011.
  • [15] Tomohiro Koana. Induced matching below guarantees: Average paves the way for fixed-parameter tractability. In Proceedings of the 40th International Symposium on Theoretical Aspects of Computer Science, STACS 2023, volume 254 of LIPIcs, pages 39:1–39:21. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPICS.STACS.2023.39.
  • [16] Daniel Král, Jan Kratochvíl, Zsolt Tuza, and Gerhard J. Woeginger. Complexity of coloring graphs without forbidden induced subgraphs. In Proceedings of the 27th International Workshop on Graph-Theoretic Concepts in Computer Science, WG 2001, volume 2204 of Lecture Notes in Computer Science, pages 254–262. Springer, 2001. doi:10.1007/3-540-45477-2_23.
  • [17] Wenjun Li, Yang Ding, Yongjie Yang, and Guozhen Rong. A (2+ε)k-vertex kernel for the dual coloring problem. Theoretical Computer Science, 868:6–11, May 2021. doi:10.1016/j.tcs.2021.03.035.
  • [18] László Lovász. Coverings and colorings of hypergraphs. Proceedings of the 4th Southeastern Conference of Combinatorics, Graph Theory, and Computing, pages 3–12, 1973. URL: https://cir.nii.ac.jp/crid/1572261549354589440.
  • [19] Rajeev Motwani and Prabhakar Raghavan. Randomized Algorithms. Cambridge University Press, August 1995. doi:10.1017/cbo9780511814075.
  • [20] Kazuo Murota. Matrices and matroids for systems analysis, volume 20. Springer Science & Business Media, 1999.
  • [21] Jesper Nederlof. Finding Large Set Covers Faster via the Representation Method. In 24th Annual European Symposium on Algorithms, ESA 2016, August 22-24, 2016, Aarhus, Denmark. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2016. doi:10.4230/LIPICS.ESA.2016.69.
  • [22] Günter Rote. Division-Free Algorithms for the Determinant and the Pfaffian: Algebraic and Combinatorial Approaches, pages 119–135. Springer Berlin Heidelberg, 2001. doi:10.1007/3-540-45506-x_9.