- 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 k-colorings—proper k-colorings whose color classes differ in size by at most one—under structural parameterizations. Its main contributions are an XP dynamic-programming algorithm for counting equitable k-colorings on graphs of bounded clique-width, a matching-in-spirit 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) instead of a 2O(k) factor, and a subexponential-time counting algorithm for equitable list 3-colorings of Pt-free graphs (2606.27159).
Background and problem statement
A proper k-coloring φ of a graph k0 is equitable if k1 for all colors k2, where k3. The decision problem Equitable k4-Coloring has a mixed complexity landscape: it is polynomial-time solvable on graphs of bounded treewidth (Bodlaender and Fomin), yet k5-hard already on cographs, hence on graph classes of constant clique-width; Fellows et al. further showed k6-hardness parameterized by treewidth plus the number of colors. This creates an apparent tension: for variable k7 the problem is hard even at constant clique-width, while the paper shows that freezing k8 restores tractability, even for the counting version.
Counting on bounded clique-width
The central positive result is as follows: given an integer k9 and an XP0-vertex graph XP1 together with a XP2-expression constructing XP3, the number of equitable XP4-colorings can be computed in time
XP5
so for every fixed XP6 the problem lies in XP7 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 XP8, the set XP9 of colors appearing on that label class, and for each color k0, the global size k1 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 k2, a proper coloring is equitable exactly when each k3 and precisely k4 colors have class size k5. Union nodes require convolution over child signatures (k6 per node where k7), join nodes check disjointness of label color sets, and relabel nodes admit at most k8 preimages, giving the stated bound up to polynomial factors for arithmetic on integers of k9 bits.
An immediate consequence is that the SETH0-hardness of the problem for combined parameter clique-width plus SETH1 is driven entirely by variability of SETH2: fixing SETH3 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 SETH4 and every SETH5, unless SETH6 fails, Equitable SETH7-Coloring cannot be solved in time SETH8. The reduction from Lampis's SETH lower bound for SETH9-Coloring on clique-width pads the input graph (2k−2)0 with an independent set of size (2k−2)1. Any proper (2k−2)2-coloring of (2k−2)3 extends to one of (2k−2)4 in which every color class has size exactly (2k−2)5 (each color receives (2k−2)6 padding vertices), so proper (2k−2)7-colorability of (2k−2)8 coincides with equitably (2k−2)9-colorability of 2O(k)0; conversely any equitable coloring of 2O(k)1 restricts to a proper coloring of 2O(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)3 upper bound—it rules out improving only the base-of-exponentiation in 2O(k)4 for fixed 2O(k)5—and it concerns the decision problem rather than counting.
Refinement for linear clique-width
For graphs given by a linear 2O(k)6-expression, processing the expression left-to-right yields a sharper running time:
2O(k)7
The improvement comes from tracking only live labels: a label is live at time 2O(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)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 Pt0 colors cannot survive the witnessing join—so states restrict to Pt1 possibilities rather than Pt2, 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 Pt3. For fixed Pt4, 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 Pt5-free graphs
The final result moves beyond clique-width: for every fixed Pt6, the number of equitable list 3-colorings of a Pt7-free graph on Pt8 vertices can be computed in time Pt9. This setting is incomparable to bounded clique-width since k0-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 k1 is the coefficient of k2 in the partition polynomial k3, and equitable colorings correspond to the at most three coefficients with sizes k4 or k5. Since k6 satisfies the neighborhood condition of Groenland et al.'s subexponential algorithm for k7-coloring k8-free graphs, that theorem supplies the polynomial; extracting k9 monomials with φ0-bit coefficients is then polynomial. Trivial cases (φ1, where the graph is edgeless or a union of cliques) are handled directly. The restriction to three colors is inherited from the underlying φ2-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 φ3 term of the upper bound nor applies to counting, leaving open whether the exponent on φ4 or the base φ5 is tight in stronger senses. On the structural side, the subexponential result is confined to φ6; 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 φ7-coloring remains open in general, providing context but no resolution.
Conclusion
The paper resolves the parameterized complexity of Equitable φ8-Coloring along the combined parameter φ9 plus clique-width in a fairly complete sense: k00-hard for variable k01 (by prior work), yet in k02—indeed polynomial for fixed k03—for both decision and counting once k04 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 k05-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.