arXiv:2609.09837cs.CCSep 2026

Manuscript Offprint

arXiv:2609.09837

On the Parameterized Complexity of Coloring Discovery

Eric Decker, Sebastian Siebertz

Eric Decker and Sebastian Siebertz

University of Bremen, Bremen, Germany

Abstract. Coloring Discovery asks whether a possibly improper initial coloring can be made proper within a prescribed number of allowed changes. We study the parameterized complexity of three modification step models that were studied previously in the literature: recoloring one vertex (color flipping), swapping the colors of arbitrary vertices (color swapping), and swapping colors only across an edge (color sliding). For color flipping, we give exact fixed-parameter algorithms for the parameters vertex cover and distance to complete. For color swapping, we obtain fixed-parameter tractability for the parameter vertex cover plus the number of colors. Our lower bounds show W[1]-hardness for treedepth plus feedback vertex set in the color flipping model and for the number of colors plus bandwidth or distance to disjoint paths in the swapping and sliding models. All three variants remain NP-complete with four colors on graphs of diameter two.

Keywords: Solution discovery · parameterized complexity · graph coloring repair · structural parameters

1 Introduction

Several established algorithmic models study how existing solutions can be adapted rather than computed from scratch. In combinatorial reconfiguration, one is given two feasible solutions and asks whether one can be transformed into the other by a sequence of small modifications, usually requiring every intermediate configuration to remain feasible [9,23]. Local search explores a prescribed neighborhood of a current solution, aiming to find a solution with improved costs [1,12]. Reoptimization starts with a solution to an original instance and studies how this information can be exploited after the instance changes [4,32]. In recoverable robust optimization, an initial solution is chosen so that, after an uncertain scenario is revealed, it can be turned into a feasible solution using only limited recovery actions [27].

Many graph coloring applications have this dynamic character. Consider an examination timetable that has already been published. The vertices represent exams, an edge joins two exams that cannot take place simultaneously, and the colors represent time slots. A late change in enrollments may introduce a new conflict between two exams that currently occupy the same slot, so that the existing timetable is no longer feasible. Computing an arbitrary proper coloring

E. Decker and S. Siebertz

from scratch may reschedule a large part of the timetable, although the new conflict could perhaps be resolved by moving only one or two exams. A similar situation occurs in frequency assignment: adding a transmitter, moving an existing one, or increasing its broadcasting range may create interference in an otherwise functioning network. Retuning many devices is costly, and one would prefer to restore feasibility by a small number of controlled changes. In such situations, the initial assignment is part of the problem and cannot simply be discarded [11,13,17].

For graph coloring, several concrete modification step models have been studied. Color-Fixing asks whether a possibly improper coloring can be made proper by recoloring a bounded number of vertices. Its restriction to a fixed color palette of size rr is called rr-Fix [17,11]. The rr-Swap problem instead permits exchanges of the colors of arbitrary pairs of vertices [11]. In both models, the target coloring is not prescribed.

Two fixed-target models are also closely related. Classical coloring reconfiguration starts and ends with prescribed proper colorings and requires every intermediate coloring to remain proper. Representative results include the boundary between three and four colors [6,10], bounded-length recoloring [7], and reconfiguration under adjacent color swaps, which we refer to as color sliding [15]. Token Swapping and Colored Token Swapping use the same local exchange operation as color sliding, but have a prescribed target arrangement: an individual destination for every token in Token Swapping, and a target color for every vertex in Colored Token Swapping [5,33,34].

These lines of work lead to a natural question: starting from the current, possibly infeasible state, can we reach some feasible state by a bounded number of modification steps? Solution discovery offers a general framework for this question [13]. A solution discovery problem specifies a base problem and a set of permitted modification steps. A problem instance comprises an instance of the base problem, an initial configuration, and a budget. The target configuration is not fixed and the initial and intermediate configurations need not be feasible. The task is to find any feasible configuration that can be reached within the budget. Thus, solution discovery is based on the local modification rules familiar from reconfiguration, but replaces the prescribed target by the objective of repairing the current state. Fellows et al. introduced this framework and studied its coloring, vertex-cover, independent-set, and dominating-set variants [13]. Further work has investigated solution-discovery variants of problems solvable in polynomial time [21], kernelization [22], logical meta-theorems [8], path problems in which feasibility and movement live on different graphs [3], and first-order value objectives [18]. Saito et al. consider further discovery variants of classical vertex-subset problems [31].

In this paper we study COLORING DISCOVERY under the three modification step models described above: color flipping, color swapping, and color sliding. The flip rule coincides with Color-Fixing (and, for a fixed palette of size rr, with rr-Fix), while the swap rule coincides with rr-Swap. We are given a graph GG, a possibly improper qq-coloring φ\varphi, and a budget bb.

We use FPT and NP for fixed-parameter tractability and nondeterministic polynomial time, respectively. W[1] and para-NP denote the standard parameterized complexity classes and the ETH refers to the Exponential Time Hypothesis. The parameters vc(G), dtc(G), tw(G), td(G), fvs(G), bw(G), ddp(G), and diam(G) denote, respectively, the vertex-cover number, distance to complete, treewidth, treedepth, feedback vertex-set number, bandwidth, distance to disjoint paths, and diameter of G. Finally, n=∣V(G)∣n = |V(G)| and m=∣E(G)∣m = |E(G)| denote the number of vertices and edges, qq the number of colors, and bb the budget. Recall that a problem is fixed-parameter tractable with respect to a parameter kk if an encoded instance I\mathcal{I} can be solved in time f(k)∣I∣O(1)f(k)|\mathcal{I}|^{\mathcal{O}(1)} for some computable function ff. Unless FPT = W[1], a W[1]-hard problem is not fixed-parameter tractable.

Before the present work, the following results were known.

– Garnero et al. prove that the flip variant is polynomial-time solvable for q≤2q \leq 2 and, for every fixed q≥3q \geq 3, NP-complete even on planar bipartite graphs. When qq is part of the input, it is W[1]-hard parameterized by the budget. They give fixed-parameter algorithms parameterized by q+bq+b and by q+tw(G)q+tw(G) [17].

– De Biasi and Lauri prove that, for every fixed q≥3q \geq 3, the swap variant is NP-complete even on planar bipartite graphs and W[1]-hard parameterized by the budget. When qq is part of the input, both the flip and swap variants are W[1]-hard parameterized by treewidth alone [11].

– Fellows et al. introduce the slide variant of COLORING DISCOVERY and give polynomial-time algorithms for the swap and slide variants with two colors. They extend the planar-bipartite NP-completeness result to the slide variant through a unified proof for all three variants, give fixed-parameter algorithms on structurally nowhere dense classes parameterized by q+bq+b, and prove that, on general graphs, the slide variant is W[1]-hard parameterized by q+bq+b and by treewidth [13].

Our results. Table 1 summarizes our main new results.

Table 1. Main complexity results proved in this paper.

OperationParameterResult
flipk=vc(G)k = \text{vc}(G)FPT, 2O(klog⁡k)(n+m)2^{\mathcal{O}(k \log k)}(n+m)
flipk=dtc(G)k = \text{dtc}(G)FPT, 2O(k2)n32^{\mathcal{O}(k^2)}n^3
swapvc(G)+q\text{vc}(G) + qFPT
fliptd(G)+fvs(G)\text{td}(G) + \text{fvs}(G)W[1]-hard
swap, slideq+bw(G)q + \text{bw}(G)W[1]-hard
swap, slideq+ddp(G)q + \text{ddp}(G)W[1]-hard
all threeq+diam(G)q + \text{diam}(G)NP-complete already on connected graphs with q=4q=4 and diam(G)=2\text{diam}(G)=2
all threek=vc(G)k = \text{vc}(G)no universal θknO(1)\theta^k n^{\mathcal{O}(1)}-time algorithm for all fixed qq, unless ETH fails

E. Decker and S. Siebertz

For the flip variant, we give exact fixed-parameter algorithms parameterized by vertex cover and by distance to complete. For k=vc(G)k = \mathrm{vc}(G), the running time is 2O(klog⁡k)(n+m)2^{\mathcal{O}(k \log k)}(n+m), and for k=dtc(G)k = \mathrm{dtc}(G), it is 2O(k2)n32^{\mathcal{O}(k^2)}n^3. For the swap variant, we prove fixed-parameter tractability parameterized by vc(G)+q\mathrm{vc}(G) + q. The parameterized complexity of the slide variant for vc(G)+q\mathrm{vc}(G) + q remains open.

For the lower bounds, we prove that the flip variant is W[1]\mathsf{W}[1]-hard parameterized by td(G)+fvs(G)\mathrm{td}(G) + \mathrm{fvs}(G). Both the swap and slide variants are W[1]\mathsf{W}[1]-hard parameterized by q+bw(G)q + \mathrm{bw}(G) and by q+ddp(G)q + \mathrm{ddp}(G). All three variants remain NP-complete on connected graphs of diameter two with four colors. Consequently, they are para-NP-complete parameterized by q+diam(G)q + \mathrm{diam}(G), and also by qq together with either the radius or the domination number. Finally, unless the Exponential Time Hypothesis fails, none of the three variants admits a constant single-exponential base θ\theta such that, for all fixed values of qq, COLORING DISCOVERY can be solved in time O(θvc(G)nO(1))\mathcal{O}\left(\theta^{\mathrm{vc}(G)}n^{\mathcal{O}(1)}\right).

Taken together, our results augment the parameterized-complexity landscape of Coloring Discovery and settle the complexity of the three movement rules for many natural structural graph parameters.

References (33)