Papers
Topics
Authors
Recent
Search
2000 character limit reached

Counting equitable kk-colorings in graphs of bounded clique-width

Published 25 Jun 2026 in math.CO and cs.DM | (2606.27159v1)

Abstract: For a graph GG, a proper kk-coloring of GG is \emph{equitable} if the sizes of any two color classes differ by at most one. The \textsc{Equitable kk-Coloring} problem asks, for a given graph GG and integer kk, whether GG admits an equitable kk-coloring. Bodlaender and Fomin showed that it is polynomial-time solvable on graphs of bounded treewidth, while it remains $\NP$-hard on cographs, and thus on graphs of constant clique-width. Fellows et al. showed that the problem becomes W[1]\mathsf{W[1]}-hard when parameterized by tree-width (and hence clique-width) plus the number of colors~kk. We first show that, for every fixed kk, counting equitable kk-colorings is polynomial-time solvable on graph classes of bounded clique-width, given a clique-width expression. We then show that, under SETH\mathsf{SETH}, the dependence on clique-width in this algorithm is essentially optimal. As a consequence, our results provide a fairly tight picture of the complexity of \textsc{Equitable kk-Coloring} with respect to the combined parameter kk+clique-width. Second, we refine our clique-width algorithm for the linear setting. We show that there exists an algorithm, given an integer k≥1k\ge 1 and an nn-vertex graph GG together with a linear ww-expression constructing GG, computes the number of equitable kk-colorings of GG in time max⁡1,2<sup>k−2<sup>w⋅</sup></sup>n<sup>k+O(1)\max{1,2<sup>k-2}<sup>w\cdot</sup></sup> n<sup>{k+O(1)}. Third, we consider a different structural restriction, namely the class of PtP_t-free graphs. A graph is called PtP_t-free if it does not contain the path on tt vertices as an induced subgraph. This is a different setting from bounded clique-width; in particular, already P5P_5-free graphs have unbounded clique-width. Nevertheless, we show that for every PtP_t-free graph GG, the number of equitable list $3$-colorings of GG can be computed in subexponential time.

Summary

  • The paper presents an XP dynamic-programming algorithm for equitable k-colorings on graphs of bounded clique-width.
  • The paper is capped with a refined algorithm for bounded linear clique-width and a subexponential counting model for 3-coloring $P_t-free graphs.
  • A SETH conditional lower bound demonstrates the boundary of exponential parameters for clique-width in this specific context.

This paper studies the algorithmic complexity of equitable kk-colorings—proper kk-colorings whose color classes differ in size by at most one—under structural parameterizations. Its main contributions are an XP\mathsf{XP} dynamic-programming algorithm for counting equitable kk-colorings on graphs of bounded clique-width, a matching-in-spirit SETH\mathsf{SETH} lower bound showing that the exponential dependence on clique-width is essentially tight, a refined algorithm for bounded linear clique-width with base (2k−2)(2^k-2) instead of a 2O(k)2^{O(k)} factor, and a subexponential-time counting algorithm for equitable list 3-colorings of PtP_t-free graphs (2606.27159).

Background and problem statement

A proper kk-coloring φ\varphi of a graph kk0 is equitable if kk1 for all colors kk2, where kk3. The decision problem Equitable kk4-Coloring has a mixed complexity landscape: it is polynomial-time solvable on graphs of bounded treewidth (Bodlaender and Fomin), yet kk5-hard already on cographs, hence on graph classes of constant clique-width; Fellows et al. further showed kk6-hardness parameterized by treewidth plus the number of colors. This creates an apparent tension: for variable kk7 the problem is hard even at constant clique-width, while the paper shows that freezing kk8 restores tractability, even for the counting version.

Counting on bounded clique-width

The central positive result is as follows: given an integer kk9 and an XP\mathsf{XP}0-vertex graph XP\mathsf{XP}1 together with a XP\mathsf{XP}2-expression constructing XP\mathsf{XP}3, the number of equitable XP\mathsf{XP}4-colorings can be computed in time

XP\mathsf{XP}5

so for every fixed XP\mathsf{XP}6 the problem lies in XP\mathsf{XP}7 on classes of bounded clique-width, provided a clique-width expression is supplied. The algorithm performs bottom-up dynamic programming over the syntax tree of the expression using a signature: a pair recording, for each label XP\mathsf{XP}8, the set XP\mathsf{XP}9 of colors appearing on that label class, and for each color kk0, the global size kk1 of its color class. The global size vector is essential—ordinary coloring DP needs only local information about label–color interactions, whereas equitability constrains class sizes globally and must be enforced at the root. The root condition follows from uniqueness of Euclidean division: writing kk2, a proper coloring is equitable exactly when each kk3 and precisely kk4 colors have class size kk5. Union nodes require convolution over child signatures (kk6 per node where kk7), join nodes check disjointness of label color sets, and relabel nodes admit at most kk8 preimages, giving the stated bound up to polynomial factors for arithmetic on integers of kk9 bits.

An immediate consequence is that the SETH\mathsf{SETH}0-hardness of the problem for combined parameter clique-width plus SETH\mathsf{SETH}1 is driven entirely by variability of SETH\mathsf{SETH}2: fixing SETH\mathsf{SETH}3 places both decision and counting in polynomial time on bounded-clique-width classes. Note the dependence on being given the expression; computing an optimal clique-width decomposition is not addressed.

A SETH lower bound

The upper bound's exponential dependence on width is complemented by a conditional lower bound: for every fixed SETH\mathsf{SETH}4 and every SETH\mathsf{SETH}5, unless SETH\mathsf{SETH}6 fails, Equitable SETH\mathsf{SETH}7-Coloring cannot be solved in time SETH\mathsf{SETH}8. The reduction from Lampis's SETH lower bound for SETH\mathsf{SETH}9-Coloring on clique-width pads the input graph (2k−2)(2^k-2)0 with an independent set of size (2k−2)(2^k-2)1. Any proper (2k−2)(2^k-2)2-coloring of (2k−2)(2^k-2)3 extends to one of (2k−2)(2^k-2)4 in which every color class has size exactly (2k−2)(2^k-2)5 (each color receives (2k−2)(2^k-2)6 padding vertices), so proper (2k−2)(2^k-2)7-colorability of (2k−2)(2^k-2)8 coincides with equitably (2k−2)(2^k-2)9-colorability of 2O(k)2^{O(k)}0; conversely any equitable coloring of 2O(k)2^{O(k)}1 restricts to a proper coloring of 2O(k)2^{O(k)}2. Adding the independent vertices via a fresh label increases clique-width by at most one, transferring the lower bound. Two caveats apply: the lower bound does not fully match the 2O(k)2^{O(k)}3 upper bound—it rules out improving only the base-of-exponentiation in 2O(k)2^{O(k)}4 for fixed 2O(k)2^{O(k)}5—and it concerns the decision problem rather than counting.

Refinement for linear clique-width

For graphs given by a linear 2O(k)2^{O(k)}6-expression, processing the expression left-to-right yields a sharper running time:

2O(k)2^{O(k)}7

The improvement comes from tracking only live labels: a label is live at time 2O(k)2^{O(k)}8 if its class is nonempty and some future join operation will add edges incident to its descendants, meaning the colors currently used on it still matter for properness. Non-live labels are recorded as 2O(k)2^{O(k)}9 and ignored. The key structural lemma is that any extendible coloring uses a strict nonempty subset of colors on every live label class—a live label whose class uses all PtP_t0 colors cannot survive the witnessing join—so states restrict to PtP_t1 possibilities rather than PtP_t2, and colorings violating this condition can be safely discarded. Correct handling of relabel operations requires several claims about how liveness evolves under add, join, and relabel steps (e.g., liveness is monotone under joins, and a newly live label under relabel forces the source class to be empty or the source label to have been live). Liveness for all timestamps is computable in PtP_t3. For fixed PtP_t4, this gives polynomial time on classes of bounded linear clique-width, with a strictly better base than the general clique-width algorithm.

Subexponential counting on PtP_t5-free graphs

The final result moves beyond clique-width: for every fixed PtP_t6, the number of equitable list 3-colorings of a PtP_t7-free graph on PtP_t8 vertices can be computed in time PtP_t9. This setting is incomparable to bounded clique-width since kk0-free graphs already have unbounded clique-width. The proof reduces to partition-function computation: the coefficient extraction identity shows that the number of list 3-colorings with prescribed color-class sizes kk1 is the coefficient of kk2 in the partition polynomial kk3, and equitable colorings correspond to the at most three coefficients with sizes kk4 or kk5. Since kk6 satisfies the neighborhood condition of Groenland et al.'s subexponential algorithm for kk7-coloring kk8-free graphs, that theorem supplies the polynomial; extracting kk9 monomials with φ\varphi0-bit coefficients is then polynomial. Trivial cases (φ\varphi1, where the graph is edgeless or a union of cliques) are handled directly. The restriction to three colors is inherited from the underlying φ\varphi2-coloring machinery, and the result covers the list variant, which is stronger than the uncolored case.

Limitations and open questions

Several qualifications are explicit in the paper. All clique-width algorithms assume the input includes a (near-)optimal expression; the complexity of finding such decompositions is not treated, nor is whether the linear-clique-width bound extends in full strength when only a general expression is available. The SETH lower bound matches neither the full φ\varphi3 term of the upper bound nor applies to counting, leaving open whether the exponent on φ\varphi4 or the base φ\varphi5 is tight in stronger senses. On the structural side, the subexponential result is confined to φ\varphi6; extending it to larger numbers of colors would require machinery beyond the Groenland et al. framework. Finally, the paper notes that the Chen–Lih–Wu conjecture on equitable φ\varphi7-coloring remains open in general, providing context but no resolution.

Conclusion

The paper resolves the parameterized complexity of Equitable φ\varphi8-Coloring along the combined parameter φ\varphi9 plus clique-width in a fairly complete sense: kk00-hard for variable kk01 (by prior work), yet in kk02—indeed polynomial for fixed kk03—for both decision and counting once kk04 is frozen, with a SETH-based lower bound showing the exponential dependence on clique-width is near-optimal. The linear-clique-width refinement and the subexponential algorithm for kk05-free graphs demonstrate that the equitable constraint, though globally coupling color-class sizes, remains amenable to the same structural techniques that succeed for ordinary coloring.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Tweets

Sign up for free to view the 1 tweet with 0 likes about this paper.