This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

\newtheoremrep

theoremTheorem \newtheoremreplemmaLemma \newtheoremreppropositionProposition \newtheoremrepclaimClaim \newtheoremrepcorollaryCorollary

Distance Recoloringthanks: This work was partially completed when Duc A. Hoang was a postdoctoral researcher at the Vietnam Institute for Advanced Study in Mathematics (VIASM). Duc A. Hoang would like to thank VIASM for their support and hospitality.

Niranka Banerjee Research Institute of Mathematical Sciences, Kyoto University, Japan111This work was supported by JSPS KAKENHI Grant Number JP20H05967.
[email protected]
Christian Engels National Institute of Informatics, Tokyo, Japan222This work was supported by JSPS KAKENHI Grant Number JP18H05291.
[email protected]
Duc A. Hoang VNU University of Science, Vietnam National University, Hanoi, Vietnam333This research is funded by University of Science, Vietnam National University, Hanoi under project number TN.23.04.
[email protected]
Abstract

Coloring a graph is a well known problem and used in many different contexts. Here we want to assign k1k\geq 1 colors to each vertex of a graph GG such that each edge has two different colors at each endpoint. Such a vertex-coloring, if exists, is called a feasible coloring of GG. Distance Coloring is an extension to the standard Coloring problem. Here we want to enforce that every pair of distinct vertices of distance less than or equal to dd have different colors, for integers d1d\geq 1 and kd+1k\geq d+1.

Reconfiguration problems ask if two given configurations can be transformed into each other with certain rules. For example, the well-known Coloring Reconfiguration asks if there is a way to change one vertex’s color at a time, starting from a feasible given coloring α\alpha of a graph GG to reach another feasible given coloring β\beta of GG, such that all intermediate colorings are also feasible. In this paper, we study the reconfiguration of distance colorings on certain graph classes.

We show that even for planar, bipartite, and 22-degenerate graphs, reconfiguring distance colorings is 𝖯𝖲𝖯𝖠𝖢𝖤\mathsf{PSPACE}-complete for d2d\geq 2 and k=Ω(d2)k=\Omega(d^{2}) via a reduction from the well-known Sliding Tokens problem. Additionally, we show that the problem on split graphs remains 𝖯𝖲𝖯𝖠𝖢𝖤\mathsf{PSPACE}-complete when d=2d=2 and kk is large but can be solved in polynomial time when d3d\geq 3 and kd+1k\geq d+1, and design a quadratic-time algorithm to solve the problem on paths for any d2d\geq 2 and kd+1k\geq d+1.

Keywords: Reconfiguration problem, (d,k)(d,k)-Coloring, Computational complexity, PSPACE-completeness, Polynomial-time algorithm

1 Introduction

For the last few decades, reconfiguration problems have emerged in different areas of computer science, including computational geometry, recreational mathematics, constraint satisfaction, and so on [Heuvel13, Nishimura18, MynhardtN19]. Given a source problem 𝒫\mathcal{P} (e.g., Satisfiability, Vertex-Coloring, Independent Set, etc.), one can define its reconfiguration variants. In such a variant, two feasible solutions (e.g., satisfying truth assignments, proper vertex-colorings, independent sets, etc.) SS and TT of 𝒫\mathcal{P} are given along with a prescribed reconfiguration rule that usually describes a “small” change in a solution without affecting its feasibility. The question is to decide if there is a sequence of feasible solutions that transforms SS into TT, where each intermediate member is obtained from its predecessor by applying the reconfiguration rule exactly once. Such a sequence, if exists, is called a reconfiguration sequence.

1.1 Distance Coloring

The (d,k)(d,k)-coloring (or dd-distance kk-coloring) concept was introduced in 1969 by Kramer and Kramer [KramerK1969, KramerK1969-2]. For a graph G=(V,E)G=(V,E) and integers d1d\geq 1 and kd+1k\geq d+1, a (d,k)(d,k)-coloring of GG is an assignment of kk colors to members of V(G)V(G) such that no two vertices within distance dd share the same color. In particular, the classic proper kk-coloring concept is the case when d=1d=1. The (d,k)(d,k)-Coloring problem, which asks if a given graph GG has a (d,k)(d,k)-coloring, is known to be \NP-complete for any fixed d2d\geq 2 and large kk [Mccormick1983, LinS1995]. In 2007, Sharp [Sharp07] proved the following complexity dichotomy: (d,k)(d,k)-Coloring can be solved in polynomial time for k3d/2k\leq\lfloor 3d/2\rfloor but \NP-hard for k>3d/2k>\lfloor 3d/2\rfloor. We refer readers to the survey [KramerK2008] for more details on related (d,k)(d,k)-Coloring problems.

1.2 Coloring Reconfiguration

kk-Coloring Reconfiguration has been extensively studied in the literature [Nishimura18, MynhardtN19, Mahmoud2024]. In kk-Coloring Reconfiguration, we are given two proper kk-colorings α\alpha and β\beta of a graph GG and want to decide if there exists a way to recolor vertices one by one, starting from α\alpha and ending at β\beta, such that every intermediate coloring is still a proper kk-coloring. It is well-known that kk-Coloring Reconfiguration is \PSPACE-complete for any fixed k4k\geq 4 on bipartite graphs, for any fixed 4k64\leq k\leq 6 on planar graphs, and for k=4k=4 on bipartite planar graphs (and thus 33-degenerate graphs) [BonsmaC09]. A further note from Bonsma and Paulusma [BonsmaP19] shows that kk-Coloring Reconfiguration is \PSPACE-complete even on (k2)(k-2)-connected bipartite graphs for k4k\geq 4. kk-Coloring Reconfiguration (k4k\geq 4) is also known to be \PSPACE-complete on bounded bandwidth graphs [Wrochna18] (and therefore bounded treewidth graphs) and chordal graphs [HatanakaIZ19]. More precisely, it is known that there exists a fixed constant cc such that the problem is \PSPACE-complete for every kck\geq c on bounded bandwidth graphs and chordal graphs. However, to the best of our knowledge, it is unclear how large cc is. Indeed, the problem remains \PSPACE-complete even on planar graphs of bounded bandwidth and low maximum degree [vanderZanden15]. On the other hand, for 1k31\leq k\leq 3, kk-Coloring Reconfiguration can be solved in linear time [CerecedaHJ11, JohnsonKKPP16]. Moreover, for 1k31\leq k\leq 3, given any yes-instance of kk-Coloring Reconfiguration, one can construct in polynomial time a reconfiguration sequence whose length is shortest [JohnsonKKPP16]. Additionally, kk-Coloring Reconfiguration is solvable in polynomial time on planar graphs for k7k\geq 7 and on bipartite planar graphs for k5k\geq 5 [BonsmaC09, Heuvel13]. With respect to graph classes, kk-Coloring Reconfiguration is solvable in polynomial time on 22-degenerate graphs (which contains graphs of treewidth at most two such as trees, cacti, outerplanar graphs, and series-parallel graphs) and several subclasses of chordal graphs, namely split graphs, trivially perfect graphs, \ell-trees (for some integer 1\ell\geq 1), and (k2)(k-2)-connected chordal graphs [HatanakaIZ19, BonsmaP19].

{toappendix}

1.3 List Coloring Reconfiguration

A generalized variant of kk-Coloring Reconfiguration, the List kk-Coloring Reconfiguration problem, has also been well-studied. Here, like in kk-Coloring Reconfiguration, given a graph GG and two proper kk-colorings α,β\alpha,\beta, we want to transform α\alpha into β\beta and vice versa. However, we also require that each vertex has a list of at most kk colors from {1,,k}\{1,\dots,k\} attached, which are the only colors each vertex is allowed to have. In particular, kk-Coloring Reconfiguration is nothing but List kk-Coloring Reconfiguration when every color list is {1,,k}\{1,\dots,k\}. Indeed, along the way of proving the \PSPACE-completeness of kk-Coloring Reconfiguration, Bonsma and Cereceda [BonsmaC09] showed that List kk-Coloring Reconfiguration is \PSPACE-complete for any fixed k4k\geq 4. Cereceda, Van den Heuvel, and Johnson [CerecedaHJ11] showed that kk-Coloring Reconfiguration is solvable in polynomial time for 1k31\leq k\leq 3 and their algorithms can be extended for List kk-Coloring Reconfiguration.111Van den Heuvel [Heuvel13] stated that kk-List-Color-Path is \PSPACE-complete for any k3k\geq 3, which appears to be different from what we mentioned for k=3k=3. However, note that, the two problems are different. In his definition, each list has size at most kk, but indeed one may use more than kk colors in total. On the other hand, in our definition, one cannot use more than kk colors in total. Hatanaka, Ito, and Zhou [HatanakaIZ15] initiated a systematic study of List kk-Coloring Reconfiguration and showed the following complexity dichotomy: The problem is \PSPACE-complete on graphs of pathwidth two but polynomial-time solvable on graphs of pathwidth one (whose components are caterpillars—the trees obtained by attaching leaves to a central path). They also noted that their hardness result can be extended for threshold graphs. Wrochna [Wrochna18] showed that List kk-Coloring Reconfiguration is \PSPACE-complete on bounded bandwidth graphs and the constructed graph in his reduction also has pathwidth two, which independently confirmed the result of Hatanaka, Ito, and Zhou [HatanakaIZ15].

1.4 Our Problem and Results

In this paper, for d2d\geq 2 and kd+1k\geq d+1, we study (d,k)(d,k)-Coloring Reconfiguration problem — a generalized variant of kk-Coloring Reconfiguration where any considered vertex-coloring is a (d,k)(d,k)-coloring. In Section 3, for d2d\geq 2 and k=Ω(d2)k=\Omega(d^{2}), we show the \PSPACE-completeness of the (d,k)(d,k)-Coloring Reconfiguration problem even for graphs that are bipartite, planar, and 22-degenerate. (Interestingly, when d=1d=1, the problem on 22-degenerate graphs can be solved in polynomial time [HatanakaIZ19].) To this end, we first introduce a variant of the well-known Sliding Tokens problem which remains \PSPACE-complete even on planar and 22-degenerate graphs (Section 3.3). We then show that even when the input graph is bipartite, planar, and 22-degenerate, List (d,k)(d,k)-Coloring Reconfiguration is \PSPACE-complete for d2d\geq 2 and k3(d+1)/2+3k\geq 3(d+1)/2+3 if dd is odd or k3(d+2)/2+3k\geq 3(d+2)/2+3 if dd is even, by a reduction from our Sliding Tokens variant (Section 3.4). Finally, we use List (d,k)(d,k)-Coloring Reconfiguration as the basis to prove our main result (Section 3.5). We emphasize that though our reductions follow a similar approach for the classic reduction for kk-Coloring Reconfiguration described in [BonsmaC09], the technical details of our constructions are different and non-trivial. (See Section 3.2 for a detailed explanation.)

On a different note, for the specialized case of split graphs, we show \NP-completeness of the original (2,k)(2,k)-Coloring problem in Section 4. We then extend the same idea to prove that (2,k)(2,k)-Coloring Reconfiguration is \PSPACE-complete for some large kk. Though our \PSPACE-complete reduction is not hard to construct, we claim in Section 4 that showing its correctness is non-trivial.

On the algorithmic side (Section 5), we show simple polynomial-time algorithms for graphs of diameter at most dd (Section 5.1) and paths (Section 5.2). The former result implies that (d,k)(d,k)-Coloring Reconfiguration is in ¶ on split graphs (whose components having diameter at most 33) for any d3d\geq 3.

2 Preliminaries

We refer readers to [Diestel2017] for the concepts and notations not defined here. Unless otherwise mentioned, we always consider simple, undirected, connected graphs. For two vertices u,vu,v of a graph GG, we denote by 𝖽𝗂𝗌𝗍G(u,v)\mathsf{dist}_{G}(u,v) the distance (i.e., the length of the shortest path) between uu and vv in GG. We define Nd(v)N_{d}(v) for a given graph GG to be the set of all vertices of distance at most dd, i.e., Nd(v)={uV𝖽𝗂𝗌𝗍G(u,v)d}N_{d}(v)=\{u\in V\mid\mathsf{dist}_{G}(u,v)\leq d\}. An ss-degenerate graph is an undirected graph in which every induced subgraph has a vertex of degree at most ss.

Coloring

For two positive integers d1d\geq 1 and kd+1k\geq d+1, a (d,k)(d,k)-coloring of a graph GG is a function α:V(G){1,,k}\alpha\colon V(G)\to\{1,\dots,k\} such that for any pair of distinct vertices uu and vv, α(u)α(v)\alpha(u)\neq\alpha(v) if 𝖽𝗂𝗌𝗍G(u,v)d\mathsf{dist}_{G}(u,v)\leq d. In particular, a (1,k)(1,k)-coloring of GG is also known as a proper kk-coloring. If a graph GG has a (d,k)(d,k)-coloring, we say that it is (d,k)(d,k)-colorable. In this paper, we focus on the case d2d\geq 2.

One can generalize the concept of (d,k)(d,k)-coloring to list (d,k)(d,k)-coloring as follows: Assign to each vertex vV(G)v\in V(G) a list of possible colors L(v){1,,k}L(v)\subseteq\{1,\dots,k\}. A (d,k)(d,k)-coloring α\alpha of GG is called a list (d,k)(d,k)-coloring if for every vv, we have α(v)L(v)\alpha(v)\in L(v). In particular, if L(v)={1,,k}L(v)=\{1,\dots,k\} for every vV(G)v\in V(G), then any list (d,k)(d,k)-coloring of GG is also a (d,k)(d,k)-coloring of GG and vice versa.

Reconfiguration

Two (list) (d,k)(d,k)-colorings α\alpha and β\beta of a graph GG are adjacent if there exists exactly one vV(G)v\in V(G) such that α(v)β(v)\alpha(v)\neq\beta(v) and α(w)=β(w)\alpha(w)=\beta(w) for every wV(G)vw\in V(G)-v. If β\beta is obtained from α\alpha (and vice versa) by recoloring only one vv, we say that such a recoloring step is valid. Given two different (list) (d,k)(d,k)-colorings α,β\alpha,\beta of a graph GG, the (List) (d,k)(d,k)-Coloring Reconfiguration problem asks if there is a sequence of (list) (d,k)(d,k)-colorings α0,α1,,α\langle\alpha_{0},\alpha_{1},\dots,\alpha_{\ell}\rangle where α=α0\alpha=\alpha_{0} and β=α\beta=\alpha_{\ell} such that αi\alpha_{i} and αi+1\alpha_{i+1} are adjacent for every 0i10\leq i\leq\ell-1. Such a sequence, if exists, is called a reconfiguration sequence (i.e., a sequence of valid recoloring steps) between α\alpha and β\beta. An instance of List (d,k)(d,k)-Coloring Reconfiguration is usually denoted by the 44-tuple (G,α,β,L)(G,\alpha,\beta,L) and an instance of (d,k)(d,k)-Coloring Reconfiguration by the triple (G,α,β)(G,\alpha,\beta).

3 \PSPACE-Completeness

In this section, we prove that it is \PSPACE-complete to decide for two given (d,k)(d,k)-colorings α,β\alpha,\beta of a graph GG if there is a reconfiguration sequence that transforms α\alpha into β\beta and vice versa, even if GG is bipartite, planar, and 22-degenerate. We begin this section with the following simple remark. It is well-known that for any problem in \NP, its reconfiguration variants are in \PSPACE [ItoDHPSUU11]. Since (d,k)(d,k)-Coloring is in \NP [Mccormick1983, LinS1995], (d,k)(d,k)-Coloring Reconfiguration is in \PSPACE.

{toappendix}

3.1 Graphs and its Powers

The dd-th power of a graph GG, denoted by GdG^{d}, is the graph with V(Gd)=V(G)V(G^{d})=V(G) and E(Gd)={uvu,vV(G) and 𝖽𝗂𝗌𝗍G(u,v)d}E(G^{d})=\{uv\mid u,v\in V(G)\text{ and }\mathsf{dist}_{G}(u,v)\leq d\}. It is well-known that α\alpha is a (d,k)(d,k)-coloring of a graph GG if and only if α\alpha is a (1,k)(1,k)-coloring of GdG^{d}. To show the \PSPACE-hardness of (d,k)(d,k)-Coloring Reconfiguration (on general graphs), one may think of the following “trivial” reduction from (1,k)(1,k)-Coloring Reconfiguration (which is known to be \PSPACE\PSPACE-complete [BonsmaC09] for k4k\geq 4): For any instance (G,α,β)(G,\alpha,\beta) of (1,k)(1,k)-Coloring Reconfiguration, construct the corresponding instance (H,α,β)(H,\alpha,\beta) of (d,k)(d,k)-Coloring Reconfiguration where HH is a dd-th root of GG, that is, HH is a graph satisfying HdGH^{d}\simeq G. We remark that this reduction does not work. The reason is that, unless =\NP\P=\NP, the reduction cannot be done in polynomial time: Deciding if there is any graph HH such that HdGH^{d}\simeq G is \NP\NP-complete for all fixed d2d\geq 2 [LeN2010].

3.2 Outline of Our Reduction

We follow the approach used by Bonsma and Cereceda [BonsmaC09] in their proof for \PSPACE-completeness of kk-Coloring Reconfiguration (k4k\geq 4). We note that Ito et al. [DBLP:journals/tcs/ItoKOZ14] also use this approach to prove the \PSPACE-completeness of a different reconfiguration problem called List L(2,1)L(2,1)-Labelling Reconfiguration. However, their reductions and ours are technically different.

We first define a restricted variant of Sliding Tokens called Restricted Sliding Tokens, which we will prove to be \PSPACE\PSPACE-complete even when the input graph is planar and 22-degenerate in Section 3.3. We remark that by applying our Restricted Sliding Tokens in the original reduction by Bonsma and Cereceda [BonsmaC09], one can indeed show that List kk-Coloring Reconfiguration is \PSPACE\PSPACE-complete even on planar, bipartite, and 22-degenerate graphs for k4k\geq 4.

Next, we reduce from Restricted Sliding Tokens to List (d,3d/2+c)(d,3d/2+c)-Coloring Reconfiguration (Section 3.4), where cc is some fixed constant. To readers familiar with the reduction of Bonsma and Cereceda [BonsmaC09], we want to specifically mention that we use a modification of their Sliding Tokens variant. If we use the same variant as used in their reduction, we would only prove the hardness of List (d,2d+c)(d,2d+c)-Coloring Reconfiguration. To further decrease the number of colors, namely to show the hardness of List (d,3d/2+c)(d,3d/2+c)-Coloring Reconfiguration, where c=4.5c=4.5 if dd is odd, or c=6c=6 if dd is even (Section 3.4.2), we need to modify the way in which link edges are connected to the token gadgets. Additionally, these link edges will be transformed to specific paths of length more than dd. We will show that our modification from Sliding Tokens to Restricted Sliding Tokens reduces the number of colors used to color vertices in these paths.

Finally, we reduce from List (d,3d/2+c)(d,3d/2+c)-Coloring Reconfiguration to (d,Ω(d2))(d,\Omega(d^{2}))-Coloring Reconfiguration (Section 3.5). We note that in our reduction, our constructed gadgets, which we call frozen graphs, are indeed planar, bipartite, and 11-degenerate (they are essentially trees) for any d2d\geq 2, which is completely different from [BonsmaC09], where similar “frozen gadgets” are constructed only for certain number of colors kk even on planar graphs.

3.3 Sliding Tokens

In this section, we first revisit the variant of Sliding Tokens used by Bonsma and Cereceda [BonsmaC09] and then describe and prove the \PSPACE-completeness of our restricted variant, which we call Restricted Sliding Tokens.

3.3.1 Bonsma and Cereceda’s Sliding Tokens Variant

In a graph GG, a (valid) token configuration is a set of vertices on which tokens are placed such that no two tokens are either on the same vertex or adjacent, i.e., each token configuration forms an independent set of GG. A move (or 𝖳𝖲\mathsf{TS}-move) between two token configurations of GG involves sliding a token from one vertex to one of its (unoccupied) adjacent neighbors. (Note that a move must always results in a valid token configuration.) Given a graph GG and two token configurations TA,TBT_{A},T_{B}, the Sliding Tokens problem, first introduced by Hearn and Demaine [HearnD05], asks if there is a sequence of moves transforming TAT_{A} into TBT_{B}. Such a sequence, if exists, is called a 𝖳𝖲\mathsf{TS}-sequence in GG between TAT_{A} and TBT_{B}. Bonsma and Cereceda [BonsmaC09] claim that Sliding Tokens is \PSPACE-complete even when restricted to the following set of (G,TA,TB)(G,T_{A},T_{B}) instances. For a more detailed explanation, we refer readers to the PhD thesis of Cereceda [Cereceda2007].

  • The graph GG has three types of gadgets: token triangles (a copy of K3K_{3}), token edges (a copy of K2K_{2}), and link edges (a copy of K2K_{2}). Token triangles and token edges are all mutually disjoint. They are joined together by link edges in such a way that every vertex of GG belongs to exactly one token triangle or one token edge. Moreover, every vertex in a token triangle has degree 33, and GG has a planar embedding where every token triangle bounds a face. The graph GG has maximum degree 33 and minimum degree 22.

  • The token configurations TAT_{A} and TBT_{B} are such that every token triangle and every token edge contains exactly one token on one of their vertices.

Token configurations where every token triangle and every token edge contains exactly one token on one of their vertices are called standard token configurations. Thus, both TAT_{A} and TBT_{B} are standard. One can verify that in any 𝖳𝖲\mathsf{TS}-sequence in GG starting from TAT_{A} or TBT_{B}, no token ever leaves its corresponding token triangle/edge.

We define the degree of a gadget as the number of gadgets of other types sharing exactly one common vertex with it. By definition, each token triangle in GG has degree exactly 33, each token edge has degree between 22 and 44, as it can have at most 22 link edges connected by the degree bound of the original graph. Two link edges may share a common vertex. Note that when calculating the degree of a link edge, we only count the number of token triangles/token edges sharing exactly one common vertex with it and ignore any other link edge having the same property. Since all token triangles and token edges are mutually disjoint, a link edge always has degree exactly 22.

3.3.2 Our Modification: Restricted Sliding Tokens Variant

In our Restricted Sliding Tokens variant, we modify each instance in the above set using the following rules.

  1. (R1)

    For a single token edge of degree 44, replace that token edge by two new token edges joined together by a single link edge.

  2. (R2)

    For a single link edge joining vertices of two degree-33 gadgets, replace that link edge by two new link edges joined together by a single token edge.

We perform (R1) and then (R2) sequentially: First we apply (R1) on the original graph repeatedly until no token edge of degree 44 exists in the resulting graph. We then continue by applying (R2) repeatedly until no link edge joining vertices of two degree-33 gadgets remain in the resulting graph. In each case, new tokens are appropriately added to ensure that the resulting token configuration is standard. Additionally, if a vertex in the original graph does (not) have a token on it, then in the newly constructed graph, it does (not) too.

Let’s call the final new corresponding instance (G,TA,TB)(G^{\prime},T_{A}^{\prime},T_{B}^{\prime}). We note that after these modifications, each token triangle has degree exactly 33 and each token edge has degree either 22 or 33. Moreover, each token triangle or token edge of degree 33 has a link edge to at least one token edge of degree 22. As GG is planar, the graph GG^{\prime} is planar too. Additionally, from the modification, GG^{\prime} has maximum degree 33 and minimum degree 22, and both TAT_{A}^{\prime} and TBT_{B}^{\prime} are standard token configurations. One can readily verify that in any 𝖳𝖲\mathsf{TS}-sequence in GG^{\prime} starting from TAT_{A}^{\prime} or TBT_{B}^{\prime}, no token ever leaves its corresponding token triangle/edge. {toappendix}

uuvv Before uuvvuu^{\prime}vv^{\prime} After
Figure 1: Rule (R1) applied to a link edge of degree 44
uuvv Before uuvvuu^{\prime}vv^{\prime} After
Figure 2: Rule (R2) applied to a link edge joining two degree 33 token triangles
uuvv Before uuvvuu^{\prime}vv^{\prime} After
Figure 3: Rule (R2) applied to a link edge joining two degree 33 token edges
uuvv Before uuvvuu^{\prime}vv^{\prime} After
Figure 4: Rule (R2) applied to a link edge joining a degree 33 token edge and a degree 33 token triangle

We are now ready to show that Restricted Sliding Tokens remains \PSPACE-complete. Observe that our described construction can be done in polynomial time: each of the rules (R1) and (R2) “touches” a token edge/link edge at most once. Thus, it remains to show that our construction is a valid reduction from the Sliding Tokens variant used by Bonsma and Cereceda [BonsmaC09] to our variant.

Refer to caption
Figure 5: An example of a Restricted Sliding Tokens’s instance.
{toappendix}{lemmarep}

Let (G,TA,TB)(G,T_{A},T_{B}) and (G1,TA1,TB1)(G^{1},T_{A}^{1},T_{B}^{1}) be respectively the instances of Sliding Tokens before and after applying (R1). Then (G,TA,TB)(G,T_{A},T_{B}) is a yes-instance if and only if (G1,TA1,TB1)(G^{1},T_{A}^{1},T_{B}^{1}) is a yes-instance.

Proof.

Let uvuv be some token edge of degree 44 that is removed when applying (R1), that is, we replace uvuv by the path uuvvuu^{\prime}v^{\prime}v where u,vu^{\prime},v^{\prime} are newly added vertices, uuuu^{\prime} and vvvv^{\prime} are token edges, and uvu^{\prime}v^{\prime} is a link edge. (For example, see Fig. 1.) Observe that TATA1T_{A}\subset T^{1}_{A} and TBTB1T_{B}\subset T^{1}_{B}. Here we use a convention that G1G^{1} is constructed from GG by replacing the edge uvuv by a path of length 33. We note that uTAu\in T_{A} implies that u,vu,v^{\prime} are in TA1T^{1}_{A} while u,vu^{\prime},v are not and similarly vTAv\in T_{A} implies that u,vu^{\prime},v are in TA1T^{1}_{A} while u,vu,v^{\prime} are not.

Let 𝒮\mathcal{S} be a 𝖳𝖲\mathsf{TS}-sequence in GG between TAT_{A} and TBT_{B}. We construct a 𝖳𝖲\mathsf{TS}-sequence 𝒮1\mathcal{S}^{1} in G1G^{1} between TA1T_{A}^{1} and TB1T_{B}^{1} from 𝒮\mathcal{S} as follows. We replace any move uvu\to v in 𝒮\mathcal{S} by the ordered sequence of moves vv,uu\langle v^{\prime}\to v,u\to u^{\prime}\rangle and vuv\to u by vv,uu\langle v\to v^{\prime},u^{\prime}\to u\rangle. By the construction, since the move uvu\to v results in a new independent set of GG, so does each member in vv,uu\langle v^{\prime}\to v,u\to u^{\prime}\rangle of G1G^{1}. More precisely, since uvu\to v can be applied in GG, so does vvv^{\prime}\to v in G1G^{1}. After the move vvv^{\prime}\to v, the move uuu\to u^{\prime} can be performed as no token is placed on a neighbor of uu^{\prime} other than the one on uu. Similar arguments hold for vuv\to u and the sequence vv,uu\langle v\to v^{\prime},u^{\prime}\to u\rangle. Thus, 𝒮1\mathcal{S}^{1} is indeed a 𝖳𝖲\mathsf{TS}-sequence 𝒮1\mathcal{S}^{1} in G1G^{1} between TA1T_{A}^{1} and TB1T_{B}^{1}.

Now, let 𝒮1\mathcal{S}^{1} be a 𝖳𝖲\mathsf{TS}-sequence in G1G^{1} between TA1T^{1}_{A} and TB1T^{1}_{B}. We construct a 𝖳𝖲\mathsf{TS}-sequence 𝒮\mathcal{S} in GG between TAT_{A} and TBT_{B} from 𝒮1\mathcal{S}^{1} as follows. Every time we see a move vvv^{\prime}\to v in 𝒮1\mathcal{S}^{1}, we ignore it. If after a move vvv^{\prime}\to v (which we ignored) we see a move uuu\to u^{\prime} then we replace uuu\to u^{\prime} by the move uvu\to v. Again, by the construction, since the move uuu\to u^{\prime} results in a new independent set of G1G^{1} and so does the move vvv^{\prime}\to v before it, the move uvu\to v also results in a new independent set of GG. More precisely, after the move vvv^{\prime}\to v is applied, no token in G1G^{1} can move to a neighbor of vv in G1G^{1}, which means that by our construction of 𝒮\mathcal{S}, no token in GG other than the one on uu can be placed on a neighbor of vv in GG. Hence, the move uvu\to v results in a new independent set of GG. Similarly, if we see a move uuu^{\prime}\to u in 𝒮1\mathcal{S}^{1}, we ignore it. If after a move uuu^{\prime}\to u (which we ignored) we see a move vvv\to v^{\prime} then we replace vvv\to v^{\prime} by the move vuv\to u. Similarly, one can argue that the move vuv\to u results in a new independent set of GG. Thus, 𝒮\mathcal{S} is a 𝖳𝖲\mathsf{TS}-sequence in GG between TAT_{A} and TBT_{B}. ∎

{lemmarep}

Let (G1,TA1,TB1)(G^{1},T_{A}^{1},T_{B}^{1}) and (G2,TA2,TB2)(G^{2},T_{A}^{2},T_{B}^{2}) be respectively the instances of Sliding Tokens before and after applying (R2). Suppose that G1G^{1} has no token edge of degree 44. Then (G1,TA1,TB1)(G^{1},T_{A}^{1},T_{B}^{1}) is a yes-instance if and only if (G2,TA2,TB2)(G^{2},T_{A}^{2},T_{B}^{2}) is a yes-instance.

Proof.

Observe that applying (R2) does not result any new token edge of degree 44. Let uvuv be some link edge joining two degree 33 gadgets on which (R2) is applied, that is, we replace uvuv by the path uuvvuu^{\prime}v^{\prime}v where u,vu^{\prime},v^{\prime} are newly added vertices, uuuu^{\prime} and vvv^{\prime}v are link edges, and uvu^{\prime}v^{\prime} is a token edge. (For example, see Figs. 2, 3 and 4.) Observe that TA1TA2T_{A}^{1}\subset T_{A}^{2} and TB1TB2T_{B}^{1}\subset T_{B}^{2}. Here we use a convention that G2G^{2} is constructed from G1G^{1} by replacing the edge uvuv by a path of length 33. We note that uTA1u\in T_{A}^{1} implies that u,vu,v^{\prime} are in TA2T_{A}^{2} while u,vu^{\prime},v are not and similarly vTA1v\in T_{A}^{1} implies that u,vu^{\prime},v are in TA2T_{A}^{2} while u,vu,v^{\prime} are not.

Let 𝒮1\mathcal{S}^{1} be a 𝖳𝖲\mathsf{TS}-sequence in G1G^{1} between TA1T_{A}^{1} and TB1T_{B}^{1}. We construct a 𝖳𝖲\mathsf{TS}-sequence 𝒮2\mathcal{S}^{2} in G2G^{2} between TA2T_{A}^{2} and TB2T_{B}^{2} from 𝒮1\mathcal{S}^{1} as follows. We replace any move uwu\to w in 𝒮1\mathcal{S}^{1}, where uu and ww are in the same token triangle/token edge, by the ordered sequence uw,vu\langle u\to w,v^{\prime}\to u^{\prime}\rangle, and any move wuw\to u by uv,wu\langle u^{\prime}\to v^{\prime},w\to u\rangle if there is a token on uu^{\prime}. By the construction, since the move uwu\to w results a new independent set of G1G^{1}, so does the move uwu\to w in G2G^{2}. Moreover, as there is no token on uu or any of its neighbor other than the one on ww after performing uwu\to w in G2G^{2}, the move vuv^{\prime}\to u^{\prime} also results a new independent set of G2G^{2}. Similarly, since the move wuw\to u results in a new independent set of G1G^{1}, so does the move wuw\to u in G2G^{2}. Moreover, as wuw\to u is a valid token-slide, right before performing it, there is no token on vv, and thus the move uvu^{\prime}\to v^{\prime} can be inserted right before wuw\to u in G2G^{2} if a token on uu^{\prime} exists. Analogously, we also replace any move vxv\to x in 𝒮1\mathcal{S}^{1}, were xx and vv are in the same token triangle/token edge, by the ordered sequence vx,uv\langle v\to x,u^{\prime}\to v^{\prime}\rangle and xvx\to v by vu,xv\langle v^{\prime}\to u^{\prime},x\to v\rangle if there is a token on vv^{\prime}. By symmetry, one can also verify that these moves are valid in G2G^{2}, i.e., they always result in new independent sets of G2G^{2}. Thus, 𝒮2\mathcal{S}^{2} is indeed a 𝖳𝖲\mathsf{TS}-sequence 𝒮2\mathcal{S}^{2} in G2G^{2} between TA2T_{A}^{2} and TB2T_{B}^{2}.

Now, let 𝒮2\mathcal{S}^{2} be a 𝖳𝖲\mathsf{TS}-sequence in G2G^{2} between TA2T_{A}^{2} and TB2T_{B}^{2}. We construct a 𝖳𝖲\mathsf{TS}-sequence 𝒮1\mathcal{S}^{1} in G1G^{1} between TA1T_{A}^{1} and TB1T_{B}^{1} from 𝒮2\mathcal{S}^{2} as follows. Every time we see a move uvu^{\prime}\to v^{\prime} or vuv^{\prime}\to u^{\prime}, we ignore it. (Intuitively, we ignore any move between two new vertices not in G1G^{1}.) By the construction, since each move uwu\to w in 𝒮2\mathcal{S}^{2}, where uu and ww are in the same token triangle/token edge of G1G^{1}, results in new independent set of G2G^{2}, it also results in new independent set of G1G^{1}, as every token triangle/token edge in G1G^{1} is also in G2G^{2}. Thus, 𝒮\mathcal{S} is a 𝖳𝖲\mathsf{TS}-sequence in G1G^{1} between TA1T_{A}^{1} and TB1T_{B}^{1}. ∎

Combining our construction and Sections 3.3.2 and 3.3.2, we have the following theorem.

{theoremrep}

Restricted Sliding Tokens is \PSPACE-complete on planar and 22-degenerate graphs.

Proof.

Let (G,TA,TB)(G,T_{A},T_{B}) be an instance of Sliding Tokens and (G,TA,TB)(G^{\prime},T^{\prime}_{A},T^{\prime}_{B}) be the corresponding instance of Restricted Sliding Tokens. The \PSPACE-completeness follows from our construction and Sections 3.3.2 and 3.3.2 above. From our construction, since the input graph GG is planar, so is the constructed graph GG^{\prime}. Additionally, we can also show that GG^{\prime} is 22-degenerate. Let us prove by contradiction. Let XX be an induced subgraph in GG^{\prime} such that the minimum degree of any vertex in XX is at least 33. By construction of GG^{\prime} for any vertex xx of degree 33 in a token edge all its neighbors are of degree at most 22. If xXx\in X, then at least one of its neighbors also belong to XX by definition. Hence, XX has a vertex of degree at most 22 contradicting our assumption. For any vertex xx of degree 33 in a token triangle at least one neighbor (yy which is outside the token triangle) is of degree at most 22 and its neighbors (xx^{\prime} and x′′x^{\prime\prime}) in the token triangle may be of degree 33. yXy\in X leads to a contradiction. If xx^{\prime} and x′′x^{\prime\prime} is in XX then including their corresponding neighbors of degree at most 22 which are outside the token triangle in XX also leads to a contradiction. However, x,xx,x^{\prime} and x′′x^{\prime\prime} without any neighbors outside the token triangle in XX have degree at most 22. This also leads to a contradiction.

3.4 Reduction to List (d,k)(d,k)-Coloring Reconfiguration

In this section, we describe a reduction from Restricted Sliding Tokens to List (d,k)(d,k)-Coloring Reconfiguration.

3.4.1 Forbidding Paths

We begin by defining an analogous concept of the “(a,b)(a,b)-forbidding path” defined in [BonsmaC09]. Intuitively, in such paths, their endpoints can never at any step be respectively colored aa and bb. This is useful for simulating the behavior of token movements: both endpoints of an edge cannot have tokens simultaneously. We augment the original definition with a set of colors CC.

Definition 1.

Let u,vu,v be two vertices of a graph GG. Let d2d\geq 2 and kd+5k\geq d+5 be fixed integers. Let a,b{1,2,3}a,b\in\{1,2,3\} and CC be a set of colors such that C{1,2,3}=C\cap\{1,2,3\}=\emptyset and |C||C| is either d+1d+1 if dd is odd or d+2d+2 if dd is even. For a uvuv-path PP and a (d,k)(d,k)-coloring α\alpha of PP, we call α\alpha an [x,y][x,y]-coloring if α(u)=x\alpha(u)=x and α(v)=y\alpha(v)=y. A (C,a,b)(C,a,b)-forbidding path from uu to vv is a uvuv-path PP in GG with a color list LL such that both L(u)L(u) and L(v)L(v) are subsets of {1,2,3}\{1,2,3\}, aL(u)a\in L(u), bL(v)b\in L(v), wV(P){u,v}L(w)(C{a,b})\bigcup_{w\in V(P)\setminus\{u,v\}}L(w)\subseteq(C\cup\{a,b\}), and the following two conditions are satisfied:

  1. (1)

    An [x,y][x,y]-coloring exists if and only if xL(u)x\in L(u), yL(v)y\in L(v), and (x,y)(a,b)(x,y)\neq(a,b). Such a pair (x,y)(x,y) is called admissible for PP.

  2. (2)

    If both (x,y)(x,y) and (x,y)(x^{\prime},y) are admissible, then from any [x,y][x,y]-coloring, there exists a reconfiguration sequence that ends with a [x,y][x^{\prime},y]-coloring, without ever recoloring vv, and only recoloring uu in the last step. A similar statement holds for admissible pairs (x,y)(x,y) and (x,y)(x,y^{\prime}).

Intuitively, as in [BonsmaC09], by constructing a (C,a,b)(C,a,b)-forbidding path PP between uu and vv, we want to forbid uu having color aa and vv having color bb simultaneously. Any other combination of colors for uu and vv (selected from the color lists) is possible. Moreover, any recoloring of uu and vv is possible as long as it does not result in the forbidden color combination. Note that a (C,a,b)(C,a,b)-forbidding path from uu to vv is different from a (C,a,b)(C,a,b)-forbidding path from vv to uu.

Refer to caption
Figure 6: An example of a (C,1,1)(C,1,1)-forbidding path PP between two vertices uu and vv having L(u)={1,2}L(u)=\{1,2\} and L(v)={1,3}L(v)=\{1,3\}. Here d=2d=2, k=7k=7 (=d+5=d+5), and C={c1,c2,c3,c4}C=\{c_{1},c_{2},c_{3},c_{4}\}. The numbers inside the vertices of PP indicate a (2,7)(2,7)-coloring α\alpha of PP which is also a [2,3][2,3]-coloring.

In the next lemma, we describe how to construct a (C,a,b)(C,a,b)-forbidding path of length d+3d+3 when dd is odd and d+4d+4 when dd is even, where d2d\geq 2. The reason why we have different lengths of a (C,a,b)(C,a,b)-forbidding path PP for when dd is odd and even is because we require PP to be even length which will be clearer in the next section.

{lemmarep}

Let d2d\geq 2 and kd+5k\geq d+5. Let CC be a set of colors such that C{1,2,3}=C\cap\{1,2,3\}=\emptyset and |C||C| is either d+1d+1 if dd is odd or d+2d+2 if dd is even. For any Lu{1,2,3}L_{u}\subseteq\{1,2,3\}, Lv{1,2,3}L_{v}\subseteq\{1,2,3\}, aLua\in L_{u}, and bLvb\in L_{v}, there exists a (C,a,b)(C,a,b)-forbidding path PP with L(u)=LuL(u)=L_{u}, L(v)=LvL(v)=L_{v} and for any wV(P){u,v}w\in V(P)\setminus\{u,v\}, L(w)(C{a,b})L(w)\subseteq(C\cup\{a,b\}). Moreover, PP has length d+3d+3 if dd is odd and d+4d+4 if dd is even.

Proof.

Suppose that C={c1,,cp}C=\{c_{1},\dots,c_{p}\} where pp is either d+1d+1 if dd is odd or d+2d+2 if dd is even. We define the path P=v0v1vpvp+1vp+2P=v_{0}v_{1}\dots v_{p}v_{p+1}v_{p+2} such that v0=uv_{0}=u and vp+2=vv_{p+2}=v. PP has length p+2p+2, which is equal to (d+1)+2=d+3(d+1)+2=d+3 if dd is odd and (d+2)+2=d+4(d+2)+2=d+4 if dd is even. We define the color list LL for each vertex of PP as follows.

  • L(u)=L(v0)=LuL(u)=L(v_{0})=L_{u}, L(v)=L(vp+2)=LvL(v)=L(v_{p+2})=L_{v}, L(v1)={a,c1}L(v_{1})=\{a,c_{1}\}, and L(vp+1)={cp,b}L(v_{p+1})=\{c_{p},b\}.

  • For 2ip2\leq i\leq p, L(vi)={ci1,ci}L(v_{i})=\{c_{i-1},c_{i}\}.

We claim that the path PP with the color list LL indeed form a (C,a,b)(C,a,b)-forbidding path. It suffices to verify the conditions (1) and (2) in Definition 1.

We first verify (1). Suppose that xL(u)x\in L(u), yL(v)y\in L(v), and (x,y)(a,b)(x,y)\neq(a,b). We describe how to construct a [x,y][x,y]-coloring. If x=ax=a, we color v0v_{0} by aa, vp+1v_{p+1} by bb, vp+2v_{p+2} by yy and viv_{i} by cic_{i} for 1ip1\leq i\leq p. Similarly, if y=by=b, we color vp+2v_{p+2} by bb, v1v_{1} by aa, v0v_{0} by xx, and viv_{i} by ci1c_{i-1} for 2ip+12\leq i\leq p+1. If both xax\neq a and yby\neq b, one possible valid coloring is to color v0v_{0} by xx, v1v_{1} by aa, vp+1v_{p+1} by bb, vp+2v_{p+2} by yy and viv_{i} by cic_{i} for 2ip2\leq i\leq p. One can verify that our constructed colorings are (d,k)(d,k)-colorings of PP.

On the other hand, suppose that a [x,y][x,y]-coloring of PP exists. We claim that xL(u)x\in L(u), yL(v)y\in L(v), and (x,y)(a,b)(x,y)\neq(a,b). The first two conditions are followed from the definition of a [x,y][x,y]-coloring. We show that the last condition holds. Observe that if u=v0u=v_{0} has color x=ax=a then we are forced to color v1v_{1} by c1c_{1}, v2v_{2} by c2c_{2}, and so on until vpv_{p} by cpc_{p}, and vp+1v_{p+1} by bb, which implies that the color of vp+2=vv_{p+2}=v cannot be bb; otherwise, our constructed coloring is not a (d,k)(d,k)-coloring of PP. Similar arguments can be applied for the case v=vp+2v=v_{p+2} has color y=by=b. Thus, (x,y)(a,b)(x,y)\neq(a,b).

We now verify (2). Let (x,y)(x,y) and (x,y)(x,y^{\prime}) be two admissible pairs. From (1), a [x,y][x,y]-coloring α\alpha and a [x,y][x,y^{\prime}]-coloring β\beta of PP exist. We describe how to construct a reconfiguration sequence 𝒮\mathcal{S} which starts from α\alpha, ends at β\beta, and satisfies (2). If v0v_{0} has color x=ax=a, then both α\alpha and β\beta have the same coloring for all vertices of PP except at vertex vv and are therefore adjacent (d,k)(d,k)-colorings. As (x,y)(x,y^{\prime}) is an admissible pair, yby^{\prime}\neq b, hence, we can recolor vv from yy to yy^{\prime}.

If v0v_{0} has color xax\neq a, we show that a reconfiguration sequence from α\alpha to β\beta exists by describing a procedure that recolors both α\alpha and β\beta to the same [x,y][x,y^{\prime}]-coloring γ\gamma of PP. The coloring γ\gamma is constructed from any [x,y][x,y]-coloring of PP where xax\neq a as follows. First, we recolor v1v_{1} by aa (if it was already colored aa then there is nothing to do). Notice that the only other vertex in v1,,vp+1v_{1},\dots,v_{p+1} which can potentially have the color aa is vp+1v_{p+1}, in the case that a=ba=b. But as the distance between v1v_{1} and vp+1v_{p+1} is p>dp>d, this recoloring step is valid.

Next, we recolor v2v_{2} by c1c_{1} as c1c_{1} is not used to color any other vertex in PP currently. We proceed with coloring every viv_{i} by color ci1c_{i-1}, 3ip+13\leq i\leq p+1. Each recoloring step above is valid, as when we color viv_{i} by ci1c_{i-1}, we always ensure that ci1c_{i-1} is not used to color any other vertex in PP at that time. Again, if viv_{i} is already colored ci1c_{i-1} then there is nothing to do. At the end of this process vp+1v_{p+1} is colored with cpc_{p}. Finally, as the nearest vertex to v=vp+2v=v_{p+2} which is colored aa is the vertex v1v_{1} is at distance p+1>dp+1>d from vv, this leaves us free to color vv with yL(v)y^{\prime}\in L(v). This gives the required reconfiguration sequence from α\alpha to β\beta by combining the sequences from α\alpha to γ\gamma and from β\beta to γ\gamma. The case for admissible pairs (x,y)(x,y) and (x,y)(x^{\prime},y) is symmetric. ∎

3.4.2 Construction of Our Reduction

We are now ready to describe our reduction. Let (G,TA,TB)(G,T_{A},T_{B}) be an instance of Restricted Sliding Tokens. We describe how to construct a corresponding instance (G,α,β,L)(G^{\prime},\alpha,\beta,L) of List (d,k)(d,k)-Coloring Reconfiguration. We use the same notations in [BonsmaC09] to label the vertices of GG. The token triangles are labelled 1,,nt1,\dots,n_{t}, and the vertices of the triangle ii are ti1t_{i1}, ti2t_{i2}, and ti3t_{i3}. The token edges are labelled 1,,ne1,\dots,n_{e}, and the vertices of the token edge ii are ei1e_{i1} and ei2e_{i2}. To construct GG^{\prime} and LL, we proceed as follows.

For every token triangle ii, we introduce a vertex tit_{i} in GG^{\prime} with color list L(ti)={1,2,3}L(t_{i})=\{1,2,3\}. For every token edge ii, we introduce a vertex eie_{i} in GG^{\prime} with color list L(ei)={1,2}L(e_{i})=\{1,2\}. From our construction of Restricted Sliding Tokens, in GG^{\prime}, each tit_{i} has degree exactly three and each eie_{i} has degree either two or three. Whenever a link edge of GG joins a vertex tiat_{ia} (1int1\leq i\leq n_{t}) with a vertex ejbe_{jb} (1jne1\leq j\leq n_{e}) or eiae_{ia} (1ine1\leq i\leq n_{e}) with ejbe_{jb} (1jne1\leq j\leq n_{e}), we add a (Cuv,a,b)(C_{uv},a,b)-forbidding path Puv=wuv0wuv1wuvpP_{uv}=w_{uv}^{0}w_{uv}^{1}\dots w_{uv}^{p} of length pp between u=wuv0u=w_{uv}^{0} and v=wuvpv=w_{uv}^{p} in GG^{\prime}, where p=d+3p=d+3 if dd is odd and p=d+4p=d+4 if dd is even. Here u=tiu=t_{i} and v=ejv=e_{j} if we consider {tia,ejb}\{t_{ia},e_{jb}\}, and u=eiu=e_{i} and v=ejv=e_{j} if we consider {eia,ejb}\{e_{ia},e_{jb}\}. CuvC_{uv} is the set of exactly p2p-2 colors which we will define later along with the color list LL for each vertex in PuvP_{uv}. We remark that, unlike in [BonsmaC09], our construction of Restricted Sliding Tokens guarantees that there is no link edge joining a tiat_{ia} (1int1\leq i\leq n_{t}) with a tjbt_{jb} (1jnt1\leq j\leq n_{t}).

Let q=(p2)/2q=(p-2)/2. By definition, pd+34p\geq d+3\geq 4 and pp is always even, which means q1q\geq 1 and qq\in\mathbb{N}. For each path Puv=wuv0wuvpP_{uv}=w_{uv}^{0}\dots w_{uv}^{p}, we partition its vertex set into two parts: the closer part denoted by 𝖼𝗅(Puv)={wuv0,,wuvq+1}\mathsf{cl}(P_{uv})=\{w_{uv}^{0},\dots,w_{uv}^{q+1}\} and the further part denoted by 𝖿𝖺𝗋(Puv)={wuvq+1,,wuvp}\mathsf{far}(P_{uv})=\{w_{uv}^{q+1},\dots,w_{uv}^{p}\}. Note that for a path PuvP_{uv}, the two parts 𝖼𝗅(Puv)\mathsf{cl}(P_{uv}) and 𝖿𝖺𝗋(Puv)\mathsf{far}(P_{uv}) intersect at exactly one vertex, namely wuvq+1w_{uv}^{q+1}. Additionally, 𝖼𝗅(Puv)=𝖿𝖺𝗋(Pvu)\mathsf{cl}(P_{uv})=\mathsf{far}(P_{vu}) and 𝖿𝖺𝗋(Puv)=𝖼𝗅(Pvu)\mathsf{far}(P_{uv})=\mathsf{cl}(P_{vu}). We say that a part 𝖼𝗅(Puv)\mathsf{cl}(P_{uv}) which contains u=wuv0u=w_{uv}^{0} is incident to uu and similarly 𝖿𝖺𝗋(Puv)\mathsf{far}(P_{uv}) which contains v=wuvpv=w_{uv}^{p} is incident to vv. From our construction of Restricted Sliding Tokens, each tit_{i} has exactly three parts incident to it and each eje_{j} has either two or three parts incident to it. (Recall that u,v{ti,ej}u,v\in\{t_{i},e_{j}\}.)

To construct the set CuvC_{uv} and the list LL for each vertex of PuvP_{uv}, we will use three disjoint sets A,B,CA,B,C of colors. Each set A,BA,B or CC is an ordered set of colors of size qq and has no common member with {1,2,3}\{1,2,3\}. For 𝗉𝖺𝗋𝗍{𝖼𝗅,𝖿𝖺𝗋}\mathsf{part}\in\{\mathsf{cl},\mathsf{far}\}, let f:𝗉𝖺𝗋𝗍(Puv){A,B,C}f\colon\mathsf{part}(P_{uv})\to\{A,B,C\} be a function which assigns exactly one set of colors in {A,B,C}\{A,B,C\} to each part of these paths PuvP_{uv} such that:

  1. (P1)

    No two parts of the same path share the same assigned set, i.e., f(𝖼𝗅(Puv))f(𝖿𝖺𝗋(Puv))f(\mathsf{cl}(P_{uv}))\neq f(\mathsf{far}(P_{uv})); and

  2. (P2)

    No two parts incident to the same vertex in GG^{\prime} share the same assigned set, i.e., for any pair v,vv,v^{\prime} of uu’s neighbors, f(𝖼𝗅(Puv))f(𝖼𝗅(Puv))f(\mathsf{cl}(P_{uv}))\neq f(\mathsf{cl}(P_{uv^{\prime}})).

In the rest of the proof we refer to the conditions above as conditions (P1) and (P2) respectively. We will show later in Section 3.4.2 that such a function can be constructed in polynomial time. After we use the function ff to assign the colors {A,B,C}\{A,B,C\} to parts of a forbidding path PuvP_{uv}, we are ready to define CuvC_{uv}. Suppose that the ordered set X=(x1,,xq){A,B,C}X=(x_{1},\dots,x_{q})\in\{A,B,C\} is used to color 𝖼𝗅(Puv)\mathsf{cl}(P_{uv}) and the ordered set Y=(y1,,yq){A,B,C}XY=(y_{1},\dots,y_{q})\in\{A,B,C\}\setminus X is used to color 𝖿𝖺𝗋(Puv)\mathsf{far}(P_{uv}), that is, X=f(𝖼𝗅(Puv))X=f(\mathsf{cl}(P_{uv})) and Y=f(𝖿𝖺𝗋(Puv))Y=f(\mathsf{far}(P_{uv})). We define Cuv=XYC_{uv}=X\cup Y. Next, we define the color list LL for a path Puv=wuv0wuvpP_{uv}=w_{uv}^{0}\dots w_{uv}^{p} (where u=wuv0u=w_{uv}^{0} and v=wuvpv=w_{uv}^{p}) using colors CuvC_{uv}, as follows.

  • If u=tiu=t_{i} for some i{1,,nt}i\in\{1,\dots,n_{t}\}, define L(u)={1,2,3}L(u)=\{1,2,3\}; otherwise (i.e., u=eju=e_{j} for some j{1,,ne}j\in\{1,\dots,n_{e}\}), define L(u)={1,2}L(u)=\{1,2\}. Similar definitions hold for L(v)L(v).

  • L(wuv1)={a,x1}L(w_{uv}^{1})=\{a,x_{1}\} and L(wuvp1)={y1,b}L(w_{uv}^{p-1})=\{y_{1},b\}.

  • For 2iq2\leq i\leq q, L(wuvi)={xi1,xi}L(w_{uv}^{i})=\{x_{i-1},x_{i}\} and L(wuvpi)={yi,yi1}L(w_{uv}^{p-i})=\{y_{i},y_{i-1}\}; and L(wuvq+1)={xq,yq}L(w_{uv}^{q+1})=\{x_{q},y_{q}\}.

Refer to caption
Figure 7: Construction of graph GG^{\prime} with a color list LL for each vertex of GG^{\prime} from the Restricted Sliding Tokens’s instance in Fig. 5 and the color sets {A,B,C}\{A,B,C\}. The construction of (Ct1e1,1,1)(C_{t_{1}e_{1}},1,1)-forbidding path is described in details. Other forbidding paths are constructed similarly. The arrows at the end of red lines point to (a,b)(a,b) in a (Cuv,a,b)(C_{uv},a,b)-forbidding path, where u,v{ti,ej}u,v\in\{t_{i},e_{j}\}.

Recall that given an instance (G,TA,TB)(G,T_{A},T_{B}) of Restricted Sliding Tokens, we need to construct an instance (G,α,β,L)(G^{\prime},\alpha,\beta,L) of List (d,k)(d,k)-Coloring Reconfiguration. Up to the present, given GG, one can verify that we have constructed GG^{\prime} and a color list LL for each vertex of GG^{\prime} in polynomial time. We now describe how to construct a List (d,k)(d,k)-Coloring Reconfiguration α\alpha of GG^{\prime} based on TAT_{A} where kk is 3(d+1)/2+33(d+1)/2+3 if dd is odd and 3(d+2)/2+33(d+2)/2+3 if dd is even. For each xV(G)x\in V(G^{\prime}),

  • If x=tix=t_{i} (1int1\leq i\leq n_{t}), we define α(x)=a\alpha(x)=a if tiaTAt_{ia}\in T_{A} where a{1,2,3}a\in\{1,2,3\}. Similarly, if x=ejx=e_{j} (1jne1\leq j\leq n_{e}), we define α(x)=a\alpha(x)=a if ejaTAe_{ja}\in T_{A} where a{1,2}a\in\{1,2\}.

  • If xV(Puv{u,v})x\in V(P_{uv}\setminus\{u,v\}) for some (Cuv,a,b)(C_{uv},a,b)-forbidding path PuvP_{uv} of GG, we use Section 3.4.1 to construct any [a,b][a^{\prime},b^{\prime}]-coloring αuv\alpha_{uv} of PuvP_{uv} where (a,b)(a,b)(a^{\prime},b^{\prime})\neq(a,b) is an admissible pair of colors, and define α(x)=αuv(x)\alpha(x)=\alpha_{uv}(x).

We can also safely assume that all pairs (α(u),α(v))(\alpha(u),\alpha(v)), where u,v{ti,ej}V(G)u,v\in\{t_{i},e_{j}\}\subseteq V(G^{\prime}) corresponding to token triangles and token edges of GG, are admissible pairs. This follows as a direct consequence of α\alpha being constructed from TAT_{A}. The construction of β\beta based on TBT_{B} can be done similarly. The following lemma confirms that α\alpha and β\beta are indeed list (d,k)(d,k)-colorings of GG^{\prime}.

{lemmarep}

α\alpha is a list (d,k)(d,k)-coloring of GG^{\prime}. Consequently, so is β\beta.

Proof.

In the graph GG^{\prime}, the vertices which have in their color lists a color from {1,2,3}\{1,2,3\} are the vertices tit_{i} and eje_{j} corresponding to token triangles and token edges of GG and also the vertices adjacent to all such tit_{i} and eje_{j} (call this set YY) in GG^{\prime}. For each pair of vertices u,v{ti,ej}u,v\in\{t_{i},e_{j}\} there is a forbidding path PuvP_{uv} of length at least pd+3p\geq d+3 between them in GG^{\prime}. For vertices in YY, as all (α(u),α(v))(\alpha(u),\alpha(v)) are admissible pairs, due to properties of forbidding path as defined in Section 3.4.1, all vertices ti,ejt_{i},e_{j} and vertices adjacent to them are never colored with the same color simultaneously. Moreover, the distance between a pair of vertices from the set YY also has distance d+1\geq d+1 between them. So any pair of vertices which may be colored the same in α\alpha from the set {1,2,3}\{1,2,3\} have at least distance d+1d+1 from each other.

Next, let us consider a vertex zz in GG^{\prime} which has in its color list a color from the set {A,B,C}\{A,B,C\}. Let this vertex be colored xiXx_{i}\in X in α\alpha, where 1iq,X{A,B,C}1\leq i\leq q,X\in\{A,B,C\}. This vertex is in some forbidding path PuvP_{uv}. Without loss of generality let z=wuviz=w_{uv}^{i}, where 1ip1\leq i\leq p and belong to 𝖼𝗅(Puv)\mathsf{cl}(P_{uv}). The same proof also holds if zz is in 𝖿𝖺𝗋(Puv)\mathsf{far}(P_{uv}) as in that case zz is in the set 𝖼𝗅(Pvu)\mathsf{cl}(P_{vu}) and we proceed by interchanging uu and vv. To prove our claim we will show that any other vertex in GG^{\prime} which also has xix_{i} as a color in α\alpha is at distance greater than dd from zz. Hence, no vertex at distance at most dd from zz can be colored xix_{i}.

Firstly, wuvi+1w_{uv}^{i+1} also has color xix_{i} in its list and can also be possibly colored xix_{i} in α\alpha. However, as (α(u),α(v))(\alpha(u),\alpha(v)) is an admissible pair, hence, due to properties of forbidding path PuvP_{uv} as defined in Section 3.4.1, zz and wuvi+1w_{uv}^{i+1} are never colored xix_{i} simultaneously. Let uu^{\prime} be any neighbor of uu and vv^{\prime} be any neighbor of vv in GG where both pairs are connected by a forbidding path in GG^{\prime}. As our function ff satisfies conditions (P1) and (P2), the closest set of vertices which are assigned colors from the set XX are either 𝖿𝖺𝗋(Puu)\mathsf{far}(P_{uu^{\prime}}) or 𝖼𝗅(Pvv)\mathsf{cl}(P_{vv^{\prime}}). Let a vertex z𝖿𝖺𝗋(Puu)z^{\prime}\in\mathsf{far}(P_{uu^{\prime}}) be colored xix_{i} in α\alpha. By construction of lists LL, zz^{\prime} is the vertex wuui+1w_{u^{\prime}u}^{i+1} in the path PuuP_{u^{\prime}u}. So, zz^{\prime} is at distance p(i+1)p-(i+1) from uu and p(i+1)+ip-(i+1)+i from zz. As p1d+2p-1\geq d+2, we have that zz and zz^{\prime} are at least distance d+2d+2 apart.

Similarly, let a vertex z′′𝖼𝗅(Pvv)z^{\prime\prime}\in\mathsf{cl}(P_{vv^{\prime}}) be colored with xix_{i} in α\alpha. By construction of lists LL, the closest such z′′z^{\prime\prime} from zz is the vertex wvviw_{vv^{\prime}}^{i} in the path PvvP_{vv^{\prime}}. So, uu^{\prime} is at distance ii from vv and pip-i from zz. Again, as pd+3p\geq d+3, we have that zz and z′′z^{\prime\prime} are at least distance d+2d+2 apart. A similar proof also works if wuvi+1w_{uv}^{i+1} has color xix_{i} instead of z=wuvi+1z=w_{uv}^{i+1}. ∎

Next, let us show how to efficiently construct such a function ff. {lemmarep} Let A,B,CA,B,C be three disjoint sets where each set AA, BB or CC is an ordered set of colors of size (d+1)/2(d+1)/2 if dd is odd or (d+2)/2(d+2)/2 if dd is even. Then we can in polynomial time construct f:𝗉𝖺𝗋𝗍(Puv){A,B,C}f\colon\mathsf{part}(P_{uv})\rightarrow\{A,B,C\} that fulfill (P1) and (P2).

Proof.

For each degree 33 vertex tit_{i} or eje_{j} in GG^{\prime}, we first arbitrarily assign its three incident parts to three disjoint members of {A,B,C}\{A,B,C\}, so that each part is assigned a unique color and thus, condition (P2) holds. As no two degree 33 vertices in GG^{\prime} are adjacent because we are using the Restricted Sliding Tokens, this partial assignment also does not violate the condition (P1).

Next, we assign colors to parts incident on degree 22 vertices in GG^{\prime} one by one. Let eie_{i} be such a degree 22 vertex whose incident parts will be colored at the current step. Let xax_{a} and xbx_{b} be the two neighbors of eie_{i}, where xa,xb{ti,ej}x_{a},x_{b}\in\{t_{i},e_{j}\} in GG^{\prime}. If both 𝖿𝖺𝗋(Peixa)\mathsf{far}(P_{e_{i}x_{a}}) and 𝖿𝖺𝗋(Peixb)\mathsf{far}(P_{e_{i}x_{b}}) are not assigned colors currently, then assign 𝖼𝗅(Peixa)\mathsf{cl}(P_{e_{i}x_{a}}) and 𝖼𝗅(Peixb)\mathsf{cl}(P_{e_{i}x_{b}}) arbitrarily distinct members from {A,B,C}\{A,B,C\}. If

  1. (i)

    either one of 𝖿𝖺𝗋(Peixa)\mathsf{far}(P_{e_{i}x_{a}}) or 𝖿𝖺𝗋(Peixb)\mathsf{far}(P_{e_{i}x_{b}}) is assigned colors currently, or

  2. (ii)

    if both 𝖿𝖺𝗋(Peixa)\mathsf{far}(P_{e_{i}x_{a}}) and 𝖿𝖺𝗋(Peixb)\mathsf{far}(P_{e_{i}x_{b}}) are assigned the same colors currently,

Suppose, the color is X{A,B,C}X\in\{A,B,C\}. Then assign 𝖼𝗅(Peixa)\mathsf{cl}(P_{e_{i}x_{a}}) and 𝖼𝗅(Peixb)\mathsf{cl}(P_{e_{i}x_{b}}) the two remaining members from {A,B,C}X\{A,B,C\}\setminus X. If both 𝖿𝖺𝗋(Peixa)\mathsf{far}(P_{e_{i}x_{a}}) and 𝖿𝖺𝗋(Peixb)\mathsf{far}(P_{e_{i}x_{b}}) are assigned colors currently but with disjoint colors X,Y{A,B,C}X,Y\in\{A,B,C\} respectively, then assign 𝖼𝗅(Peixa)\mathsf{cl}(P_{e_{i}x_{a}}) with colors from set YY and 𝖼𝗅(Peixb)\mathsf{cl}(P_{e_{i}x_{b}}) with colors of set XX. For each of these cases, note that both conditions (P1) and (P2) hold. Thus, the function ff can be constructed in polynomial time. ∎

We are now ready to show the correctness of our reduction.

{lemmarep}

(G,TA,TB)(G,T_{A},T_{B}) is a yes-instance if and only if (G,α,β,L)(G^{\prime},\alpha,\beta,L) is a yes-instance.

Proof.

We claim that there is a 𝖳𝖲\mathsf{TS}-sequence 𝒮\mathcal{S} between TAT_{A} and TBT_{B} in GG if and only if there is a sequence of valid recoloring steps \mathcal{R} between α\alpha and β\beta in GG^{\prime}.

  • (\Rightarrow)

    Let 𝒮\mathcal{S} be a 𝖳𝖲\mathsf{TS}-sequence in GG between TAT_{A} and TBT_{B}. We describe how to construct the desired reconfiguration sequence \mathcal{R} from 𝒮\mathcal{S}. More precisely, for each move xyx\to y in 𝒮\mathcal{S}, we construct a corresponding sequence of recoloring steps in \mathcal{R} as follows. From our construction of Restricted Sliding Tokens, it follows that both xx and yy must be in the same token triangle or token edge. We consider the case x=tiax=t_{ia} and y=tiby=t_{ib} where a,b{1,2,3}a,b\in\{1,2,3\}, i.e., they are in the same token triangle i{1,,nt}i\in\{1,\dots,n_{t}\}. The other case can be handled similarly. In this case, corresponding to this move, we wish to recolor tit_{i} (which currently has color aa) by bb. To this end, for any (Ctiv,a,b)(C_{t_{i}v},a^{\prime},b^{\prime})-forbidding path PtivP_{t_{i}v} incident to tit_{i} in GG^{\prime}, we proceed almost the same as described in Section 3.4.1 to reconfigure any current [a,b1][a,b_{1}]-coloring that PtivP_{t_{i}v} has, where (a,b1)(a,b)(a,b_{1})\neq(a^{\prime},b^{\prime}) is an admissible pair, to a [b,b1][b,b_{1}]-coloring, except the final step of recoloring tit_{i} by color bb. There are at most three such paths. After recoloring all such paths, we simply recolor tit_{i} by color bb at the end.

    We remark that since xyx\to y is a valid 𝖳𝖲\mathsf{TS}-move, before this step, in GG, no vertex adjacent to y=tiby=t_{ib}, except x=tiax=t_{ia}, has a token. Our construction then implies that, as (b,b1)(b,b_{1}) is an admissible pair, the mentioned reconfiguration sequence exists. A vertex z=wuviz=w_{uv}^{i} in any one path PtivjP_{t_{i}v_{j}} for a fixed jj can be recolored from xi1x_{i-1} to xix_{i} (by construction of list LL, each such zz only has two choices). As both (a,b1)(a,b_{1}) and (b,b1)(b,b_{1}) are admissible pairs, we know from properties of forbidding paths (Section 3.4.1) that there are no other vertices colored xix_{i} currently in the path PtivjP_{t_{i}v_{j}}. Moreover, conditions (P1) and (P2) guarantee that the reconfiguration process can be done independently for each vertex in each PtivjP_{t_{i}v_{j}} for j{1,2,3}j\in\{1,2,3\}, where vjsv_{j}^{\prime}s are the neighbors of tit_{i}. Thus, we have shown that for any move xyx\to y in 𝒮\mathcal{S}, we can construct a corresponding sequence of valid recoloring steps. Combining these sequences give us our desired sequence \mathcal{R}.

  • (\Leftarrow)

    Suppose that \mathcal{R} is a sequence of valid recoloring steps between α\alpha and β\beta. We construct our desired 𝖳𝖲\mathsf{TS}-sequence between TAT_{A} and TBT_{B} from \mathcal{R} as follows. For each recoloring step in \mathcal{R}, we construct a corresponding 𝖳𝖲\mathsf{TS}-move in 𝒮\mathcal{S}, which may sometimes be a redundant step that reconfigures a token-set to itself. Suppose that vV(G)v\in V(G^{\prime}) is currently recolored.

    • If vv is in a forbidding path PxyP_{xy} and v{x,y}v\notin\{x,y\}, we add a redundant step to 𝒮\mathcal{S}.

    • If vv is either tit_{i} (1int1\leq i\leq n_{t}) or eje_{j} (1jne1\leq j\leq n_{e}), suppose that vv is recolored from color aa to color bb, where a,b{1,2,3}a,b\in\{1,2,3\}. We consider the case v=tiv=t_{i}. The other case can be done similarly. From our construction, as recoloring vv from aa to bb is a valid recoloring step, in GG, a token is placed on tiaV(G)t_{ia}\in V(G) and no token is placed on any other adjacent vertex of tibt_{ib}. Thus, we can slide the token on tiat_{ia} to tibt_{ib} and add this step to 𝒮\mathcal{S}.

Finally, our theorem follows.

{theoremrep}

List (d,k)(d,k)-Coloring Reconfiguration is \PSPACE-complete even on planar, bipartite and 22-degenerate graphs, for any fixed d2d\geq 2 and k3(d+1)/2+3k\geq 3(d+1)/2+3 if dd is odd or k3(d+2)/2+3k\geq 3(d+2)/2+3 if dd is even.

Proof.

The \PSPACE-completeness and the values of dd and kk follows from our construction and proofs above. From our construction, since the input graph GG of a Restricted Sliding Tokens is planar, so is the constructed graph GG^{\prime}. As any forbidding path has even length and GG^{\prime} no longer contains any “token triangle”, it follows that any cycle in GG^{\prime} has even length, and therefore it is also bipartite. Additionally, we can also show that GG^{\prime} is 22-degenerate. Let us prove by contradiction. Let XX be an induced subgraph in GG^{\prime} such that the minimum degree of any vertex in XX is at least 33. However, by construction of GG^{\prime} we know that for any vertex xx of degree 33, all its neighbors have degree 22. If xXx\in X, then at least one of its neighbors also belong to XX by definition. Hence, XX has a vertex with degree at most 22 contradicting our assumption. ∎

3.5 Reduction to (d,k)(d,k)-Coloring Reconfiguration

In this section, we present a polynomial-time reduction from List (d,k)(d,k)-Coloring Reconfiguration to (d,k)(d,k)-Coloring Reconfiguration, which proves the \PSPACE-completeness of the latter problem for any fixed integer d2d\geq 2. More precisely, given an instance (G,α,β,L)(G,\alpha,\beta,L) of List (d,k)(d,k)-Coloring Reconfiguration, we describe how to construct an instance (G,α,β)(G^{\prime},\alpha^{\prime},\beta^{\prime}) of (d,k)(d,k^{\prime})-Coloring Reconfiguration and prove that (G,α,β,L)(G,\alpha,\beta,L) is a yes-instance if and only if (G,α,β)(G^{\prime},\alpha^{\prime},\beta^{\prime}) is a yes-instance. Note that any (d,k)(d,k)-coloring of a graph GG is indeed a list (d,k)(d,k)-coloring of GG where L(v)={1,,k}L(v)=\{1,\dots,k\} for every vV(G)v\in V(G). With that in mind, to simulate the behavior of a list (d,k)(d,k)-coloring, we aim to “restrict” the colors which vv is allowed to use (i.e., those in L(v)L(v)) using so-called frozen graphs. More precisely, a graph FF along with a (d,k)(d,k)-coloring α\alpha is called a frozen graph if no vertex in FF can be recolored, i.e., there is no reconfiguration sequence between α\alpha and any other (d,k)(d,k)-coloring β\beta of FF. Ideally, for each vv in GG, we will construct a corresponding (precolored) frozen graph FvF_{v} and use it to “restrict” the colors vv can use: placing vertices of FvF_{v} at distance d+1d+1 from vv if their colors are in L(v)L(v) and at distance at most dd otherwise.

3.5.1 Frozen Graphs

We begin by describing how a (precolored) frozen graph FvF_{v} and its (d,k)(d,k^{\prime})-coloring αv\alpha_{v} can be constructed for a vertex vV(G)v\in V(G), where k=n(d/21)+2+kk^{\prime}=n(\lceil d/2\rceil-1)+2+k and n=|V(G)|n=|V(G)|. We emphasize that vv does not belong to its corresponding frozen graph FvF_{v}. First, for each vV(G)v\in V(G), we create a central vertex cvc_{v}. We then construct a path TvT_{v} which includes cvc_{v} as an endpoint and has length d/21\lceil d/2\rceil-1. Suppose that Tv=cvcv,1cv,d/21T_{v}=c_{v}c_{v,1}\dots c_{v,\lceil d/2\rceil-1}. Let cv=cv,d/21c^{\prime}_{v}=c_{v,\lceil d/2\rceil-1} be the endpoint of TvT_{v} other than cvc_{v}. Let C0{1,,k}C_{0}\notin\{1,\dots,k\} be a fixed color. We color the vertices of TvT_{v} starting from cvc_{v} by using the color C0C_{0} for cvc_{v} and d/21\lceil d/2\rceil-1 other distinct new colors Cv,1,Cv,2,,Cv,d/21C_{v,1},C_{v,2},\dots,C_{v,\lceil d/2\rceil-1} for the remaining vertices cv,1,,cv,d/21c_{v,1},\dots,c_{v,\lceil d/2\rceil-1}, respectively. In particular, cvc^{\prime}_{v} has color Cv,d/21C_{v,\lceil d/2\rceil-1}. We also remark that none of Cv,1,Cv,2,,Cv,d/21C_{v,1},C_{v,2},\dots,C_{v,\lceil d/2\rceil-1} is in {1,,k}\{1,\dots,k\}. At this point, so far, for each vV(G)v\in V(G), we have used d/21\lceil d/2\rceil-1 distinct colors for vertices other than cvc_{v} in each TvT_{v} and one fixed color C0C_{0} for every cvc_{v}. Thus, in total, n(d/21)+1n(\lceil d/2\rceil-1)+1 distinct colors have been used.

Second, for each vV(G)v\in V(G) and each vertex uvu\neq v, we construct a new path TuvT^{v}_{u} which includes cvc_{v} as an endpoint and has length d/21\lfloor d/2\rfloor-1. Suppose that Tuv=cvcu,1vcu,d/21vT^{v}_{u}=c_{v}c^{v}_{u,1}\dots c^{v}_{u,\lfloor d/2\rfloor-1}. We denote by cuv=cu,d/21v{c^{\prime}}^{v}_{u}=c^{v}_{u,\lfloor d/2\rfloor-1} the endpoint of TuvT^{v}_{u} other than cvc_{v}.

  • When dd is even, we have d/21=d/21\lceil d/2\rceil-1=\lfloor d/2\rfloor-1, i.e., the number of vertices in TucuT_{u}-c_{u} is equal to the number of vertices in TuvcvT^{v}_{u}-c_{v}. In this case, we color the vertices of TuvT^{v}_{u} starting from cvc_{v} by using the color C0C_{0} for cvc_{v} and the d/21=d/21\lceil d/2\rceil-1=\lfloor d/2\rfloor-1 other distinct colors Cu,1,Cu,2,,Cu,d/21C_{u,1},C_{u,2},\dots,C_{u,\lfloor d/2\rfloor-1} respectively for the remaining vertices cu,1v,,cu,d/21vc^{v}_{u,1},\dots,c^{v}_{u,\lfloor d/2\rfloor-1}. In particular, the endpoint cuv{c^{\prime}}^{v}_{u} has color Cu,d/21C_{u,\lfloor d/2\rfloor-1}. (We note that all these colors are used to color vertices in TuT_{u} for uV(G)u\in V(G).)

  • When dd is odd, we have d/21=(d/21)+1\lceil d/2\rceil-1=(\lfloor d/2\rfloor-1)+1, i.e., the number of vertices in TucuT_{u}-c_{u} is equal to the number of vertices in TuvcvT^{v}_{u}-c_{v} plus one. In this case, we color the vertices of TuvT^{v}_{u} starting from cvc_{v} by using the color C0C_{0} for cvc_{v} and the d/21\lfloor d/2\rfloor-1 other distinct colors Cu,2,Cu,3,,Cu,d/21C_{u,2},C_{u,3},\dots,C_{u,\lceil d/2\rceil-1} respectively for the remaining vertices cu,1v,,cu,d/21vc^{v}_{u,1},\dots,c^{v}_{u,\lfloor d/2\rfloor-1}, leaving one color Cu,1C_{u,1} that has not yet been used. To handle this situation, we add a new vertex cuv{c^{\star}}^{v}_{u} adjacent to cvc_{v} and color it by the color Cu,1C_{u,1}.

To finish our construction of FvF_{v} and αv\alpha_{v} for each vV(G)v\in V(G), we pick some vertex uu in GG other than vv. Additionally, we add k+1k+1 extra new vertices labelled cv,wv,1,,wv,kc^{\star}_{v},w_{v,1},\dots,w_{v,k}. We then join cvc^{\star}_{v} to any wv,iw_{v,i} where iL(v){1,,k}i\in L(v)\subseteq\{1,\dots,k\} and join the endpoint cuv{c^{\prime}}^{v}_{u} of TuvT^{v}_{u} to cvc^{\star}_{v} and to any wv,iw_{v,i} where iL(v)i\notin L(v). Let C1C_{1} be a fixed color that is different from any colors that have been used. We finally color cvc^{\star}_{v} by C1C_{1}, and each wv,iw_{v,i} by the color i{1,,k}i\in\{1,\dots,k\}. At this point, k+1k+1 extra distinct colors are used. In total, we use k=(n(d/21)+1)+(k+1)=n(d/21)+2+kk^{\prime}=(n(\lceil d/2\rceil-1)+1)+(k+1)=n(\lceil d/2\rceil-1)+2+k colors.

{lemmarep}

Our construction correctly produces a frozen graph FvF_{v} with its (d,k)(d,k^{\prime})-coloring αv\alpha_{v}.

Proof.

Note that each FvF_{v} is a graph having diameter at most 𝖽𝗂𝗌𝗍Fv(cv,cv)+𝖽𝗂𝗌𝗍Fv(cv,cuv)+𝖽𝗂𝗌𝗍Fv(cuv,wv,i)(d/21)+(d/21)+2=d\mathsf{dist}_{F_{v}}(c^{\prime}_{v},c_{v})+\mathsf{dist}_{F_{v}}(c_{v},{c^{\prime}}^{v}_{u})+\mathsf{dist}_{F_{v}}({c^{\prime}}^{v}_{u},w_{v,i})\leq(\lceil d/2\rceil-1)+(\lfloor d/2\rfloor-1)+2=d, for some iL(v)i\in L(v). (Recall that if iL(v)i\in L(v), we have 𝖽𝗂𝗌𝗍Fv(cuv,wv,i)=𝖽𝗂𝗌𝗍Fv(cuv,cv)+𝖽𝗂𝗌𝗍Fv(cv,wv,i)=1+1=2\mathsf{dist}_{F_{v}}({c^{\prime}}^{v}_{u},w_{v,i})=\mathsf{dist}_{F_{v}}({c^{\prime}}^{v}_{u},c^{\star}_{v})+\mathsf{dist}_{F_{v}}(c^{\star}_{v},w_{v,i})=1+1=2. Otherwise, 𝖽𝗂𝗌𝗍Fv(cuv,wv,i)=1\mathsf{dist}_{F_{v}}({c^{\prime}}^{v}_{u},w_{v,i})=1.) Moreover, from the construction, no two vertices of FvF_{v} share the same color, and all kk^{\prime} colors are used. (On the other hand, a vertex of FvF_{v} and a vertex of FuF_{u} for some uvu\neq v in V(G)V(G) may share the same color. We will discuss this later when constructing an instance of (d,k)(d,k)-Coloring Reconfiguration.) Thus, for any wV(Fv)w\in V(F_{v}), there is no color that can be used to recolor ww, as all other colors are used for vertices in FvF_{v} of distance at most dd from ww. ∎

One can verify that our construction indeed can be done in polynomial time. We illustrate our gadget in Fig. 8.

cvc_{v}cu1v{c^{\prime}}^{v}_{u_{1}}Tu1vT^{v}_{u_{1}}cu2v{c^{\prime}}^{v}_{u_{2}}Tu2vT^{v}_{u_{2}}cu3v{c^{\prime}}^{v}_{u_{3}}Tu3vT^{v}_{u_{3}}cu4v{c^{\prime}}^{v}_{u_{4}}Tu4vT^{v}_{u_{4}}vvTv+vT_{v}+vuucu5v{c^{\prime}}^{v}_{u_{5}}cvc_{v}^{*}Tu5vT^{v}_{u_{5}}wv,1w_{v,1}wv,2w_{v,2}wv,3w_{v,3}wv,4w_{v,4}wv,5w_{v,5}d21\lfloor\frac{d}{2}\rfloor-1 Edgesd2\lceil\frac{d}{2}\rceil EdgesColors C0,C1C_{0},C_{1}
Figure 8: An example of a vertex vv joining to its corresponding frozen graph FvF_{v}. Here dd is even, k=5k=5, GG is some list (d,k)(d,k)-colorable graph having six vertices labelled v,u1,u2,,u5v,u_{1},u_{2},\dots,u_{5} (note that u=uiu=u_{i} for some i{1,,5}i\in\{1,\dots,5\}), and L(v)={2,3}{1,,5}L(v)=\{2,3\}\subseteq\{1,\dots,5\}.

3.5.2 Construction of An Instance (G,α,β)(G^{\prime},\alpha^{\prime},\beta^{\prime}) of (d,k)(d,k^{\prime})-Coloring Reconfiguration

Given an instance (G,α,β,L)(G,\alpha,\beta,L) of List (d,k)(d,k)-Coloring Reconfiguration, we now describe how to construct GG^{\prime} and its two (d,k)(d,k^{\prime})-colorings α,β\alpha^{\prime},\beta^{\prime}, where k=n(d/21)+2+kk^{\prime}=n(\lceil d/2\rceil-1)+2+k. To construct GG^{\prime}, we start from the original graph GG, and we construct FvF_{v} for each vV(G)v\in V(G) as described before. Then, we simply join vv to cvc^{\prime}_{v} — the endpoint of TvT_{v} other than cvc_{v}. To construct α\alpha^{\prime} from α\alpha, we simply assign α(v)=α(v)\alpha^{\prime}(v)=\alpha(v) for any vV(G)v\in V(G) and α(w)=αv(w)\alpha^{\prime}(w)=\alpha_{v}(w) for any wV(Fv)w\in V(F_{v}). The construction of β\beta^{\prime} is similar. One can verify that for any vV(G)v\in V(G), no vertex in FvF_{v} can be recolored in GG^{\prime}. Again, to see this, note that the diameter of FvF_{v} is at most dd and vertices of FvF_{v} are colored by all kk^{\prime} colors. Thus, for any wV(Fv)w\in V(F_{v}), there is no color that can be used to recolor ww, as all other colors are used for vertices in FvF_{v} of distance at most dd from ww. One can also verify that our construction can be done in polynomial time.

In the following lemma, we show that our construction correctly produces an instance of (d,k)(d,k^{\prime})-Coloring Reconfiguration.

{lemmarep}

α\alpha^{\prime} is a (d,k)(d,k^{\prime})-coloring of GG^{\prime}. Consequently, so is β\beta^{\prime}.

Proof.

To show that α\alpha^{\prime} is a (d,k)(d,k^{\prime})-coloring of GG^{\prime}, we claim that (\star) any pair of vertices x,yx,y having α(x)=α(y)\alpha^{\prime}(x)=\alpha^{\prime}(y) must be of distance more than dd in GG^{\prime}. If x,yx,y are either both in GG or both in FvF_{v} for some vV(G)v\in V(G), (\star) clearly holds. The following two cases remain: Either

  1. (i)

    xV(G)x\in V(G) and yV(Fv)y\in V(F_{v}) or

  2. (ii)

    xV(Fv)x\in V(F_{v}) and yV(Fu)y\in V(F_{u}) for some distinct u,vV(G)u,v\in V(G).

In case (i), suppose that α(x)=i{1,,k}\alpha^{\prime}(x)=i\in\{1,\dots,k\}. From our construction, the only vertex in FvF_{v} having color ii is wv,iw_{v,i}. Thus, y=wv,iy=w_{v,i}. Now, if v=xv=x, we have iL(v)=L(x)i\in L(v)=L(x) and moreover

𝖽𝗂𝗌𝗍G(x,y)\displaystyle\mathsf{dist}_{G^{\prime}}(x,y) =𝖽𝗂𝗌𝗍G(v,wv,i)\displaystyle=\mathsf{dist}_{G^{\prime}}(v,w_{v,i})
=𝖽𝗂𝗌𝗍G(v,cv)+𝖽𝗂𝗌𝗍G(cv,cuv)+𝖽𝗂𝗌𝗍G(cuv,wv,i)\displaystyle=\mathsf{dist}_{G^{\prime}}(v,c_{v})+\mathsf{dist}_{G}(c_{v},{c^{\prime}}^{v}_{u})+\mathsf{dist}_{G^{\prime}}({c^{\prime}}^{v}_{u},w_{v,i}) (Construction of FvF_{v})
=𝖽𝗂𝗌𝗍G(v,cv)+𝖽𝗂𝗌𝗍G(cv,cuv)+\displaystyle=\mathsf{dist}_{G^{\prime}}(v,c_{v})+\mathsf{dist}_{G}(c_{v},{c^{\prime}}^{v}_{u})+
+𝖽𝗂𝗌𝗍G(cuv,cv)+𝖽𝗂𝗌𝗍G(cv,wv,i)\displaystyle\qquad+\mathsf{dist}_{G^{\prime}}({c^{\prime}}^{v}_{u},c^{\star}_{v})+\mathsf{dist}_{G^{\prime}}(c^{\star}_{v},w_{v,i}) (iL(v)i\in L(v))
=d/2+(d/21)+1+1\displaystyle=\lceil d/2\rceil+(\lfloor d/2\rfloor-1)+1+1
=d+1>d.\displaystyle=d+1>d.

On the other hand, if vxv\neq x, meaning xV(G)x\in V(G) but x=vx=v^{\prime} with vvv\neq v^{\prime}, we have

𝖽𝗂𝗌𝗍G(x,y)\displaystyle\mathsf{dist}_{G^{\prime}}(x,y) =𝖽𝗂𝗌𝗍G(x,wv,i)\displaystyle=\mathsf{dist}_{G^{\prime}}(x,w_{v,i})
=𝖽𝗂𝗌𝗍G(x,v)+𝖽𝗂𝗌𝗍G(v,wv,i)\displaystyle=\mathsf{dist}_{G^{\prime}}(x,v)+\mathsf{dist}_{G^{\prime}}(v,w_{v,i})
1+d>d.\displaystyle\geq 1+d>d. (Construction of GG^{\prime})

In case (ii), as α(x)=α(y)\alpha^{\prime}(x)=\alpha^{\prime}(y), from our construction of GG^{\prime} and FvF_{v}, we can assume without loss of generality that yV(Tu)y\in V(T_{u}) and either xV(Tuv)x\in V(T^{v}_{u}) or dd is odd and x=cuvx={c^{\star}}^{v}_{u}. In the latter case, we must have α(x)=α(cuv)=Cu,1=α(y)\alpha^{\prime}(x)=\alpha^{\prime}({c^{\star}}^{v}_{u})=C_{u,1}=\alpha^{\prime}(y). Since α(y)=Cu,1\alpha^{\prime}(y)=C_{u,1}, our construction of FuF_{u} implies that yy is adjacent to cuc_{u} in TuT_{u}, which means 𝖽𝗂𝗌𝗍G(u,y)=𝖽𝗂𝗌𝗍G(u,cu)𝖽𝗂𝗌𝗍G(cu,y)=d/21\mathsf{dist}_{G^{\prime}}(u,y)=\mathsf{dist}_{G^{\prime}}(u,c_{u})-\mathsf{dist}_{G^{\prime}}(c_{u},y)=\lceil d/2\rceil-1. In this case, we have

𝖽𝗂𝗌𝗍G(x,y)\displaystyle\mathsf{dist}_{G^{\prime}}(x,y) =𝖽𝗂𝗌𝗍G(x,v)+𝖽𝗂𝗌𝗍G(v,u)+𝖽𝗂𝗌𝗍G(u,y)\displaystyle=\mathsf{dist}_{G^{\prime}}(x,v)+\mathsf{dist}_{G^{\prime}}(v,u)+\mathsf{dist}_{G^{\prime}}(u,y)
=𝖽𝗂𝗌𝗍G(cuv,v)+𝖽𝗂𝗌𝗍G(v,u)+𝖽𝗂𝗌𝗍G(u,y)\displaystyle=\mathsf{dist}_{G^{\prime}}({c^{\star}}^{v}_{u},v)+\mathsf{dist}_{G^{\prime}}(v,u)+\mathsf{dist}_{G^{\prime}}(u,y)
=𝖽𝗂𝗌𝗍G(cuv,cv)+𝖽𝗂𝗌𝗍G(cv,v)+𝖽𝗂𝗌𝗍G(v,u)+𝖽𝗂𝗌𝗍G(u,y)\displaystyle=\mathsf{dist}_{G^{\prime}}({c^{\star}}^{v}_{u},c_{v})+\mathsf{dist}_{G^{\prime}}(c_{v},v)+\mathsf{dist}_{G^{\prime}}(v,u)+\mathsf{dist}_{G^{\prime}}(u,y)
1+d/2+1+(d/21)>d.\displaystyle\geq 1+\lceil d/2\rceil+1+(\lceil d/2\rceil-1)>d.

Let now xV(Tuv)x\in V(T_{u}^{v}) and yV(Tu)y\in V(T_{u}). If dd is even, suppose that α(x)=Cu,i\alpha^{\prime}(x)=C_{u,i} for 1id/211\leq i\leq d/2-1. From our construction of TuvT^{v}_{u}, it follows that 𝖽𝗂𝗌𝗍G(v,x)=𝖽𝗂𝗌𝗍G(v,cv)+𝖽𝗂𝗌𝗍G(cv,x)=d/2+i\mathsf{dist}_{G^{\prime}}(v,x)=\mathsf{dist}_{G^{\prime}}(v,c_{v})+\mathsf{dist}_{G^{\prime}}(c_{v},x)=d/2+i. Additionally, as α(y)=α(x)=Cu,i\alpha^{\prime}(y)=\alpha^{\prime}(x)=C_{u,i}, it follows from our construction of TuT_{u} that 𝖽𝗂𝗌𝗍G(u,y)=𝖽𝗂𝗌𝗍G(u,cu)𝖽𝗂𝗌𝗍G(y,cu)=d/2i\mathsf{dist}_{G^{\prime}}(u,y)=\mathsf{dist}_{G^{\prime}}(u,c_{u})-\mathsf{dist}_{G^{\prime}}(y,c_{u})=d/2-i. Thus, we have

𝖽𝗂𝗌𝗍G(x,y)\displaystyle\mathsf{dist}_{G^{\prime}}(x,y) =𝖽𝗂𝗌𝗍G(x,v)+𝖽𝗂𝗌𝗍G(v,u)+𝖽𝗂𝗌𝗍G(u,y)\displaystyle=\mathsf{dist}_{G^{\prime}}(x,v)+\mathsf{dist}_{G^{\prime}}(v,u)+\mathsf{dist}_{G^{\prime}}(u,y)
(d/2+i)+1+(d/2i)=d+1>d.\displaystyle\geq(d/2+i)+1+(d/2-i)=d+1>d.

Finally, if dd is odd, suppose that α(x)=Cu,i\alpha^{\prime}(x)=C_{u,i} for 2id/212\leq i\leq\lceil d/2\rceil-1. From our construction of TuvT^{v}_{u}, it follows that 𝖽𝗂𝗌𝗍G(v,x)=𝖽𝗂𝗌𝗍G(v,cv)+𝖽𝗂𝗌𝗍G(cv,x)=d/2+(i1)\mathsf{dist}_{G^{\prime}}(v,x)=\mathsf{dist}_{G^{\prime}}(v,c_{v})+\mathsf{dist}_{G^{\prime}}(c_{v},x)=\lceil d/2\rceil+(i-1). (Remember that 𝖽𝗂𝗌𝗍G(cv,v)\mathsf{dist}_{G^{\prime}}(c_{v},v) is always d/2\lceil d/2\rceil for any vV(G)v\in V(G).) Additionally, as α(y)=α(x)=Cu,i\alpha^{\prime}(y)=\alpha^{\prime}(x)=C_{u,i}, it follows from our construction of TuT_{u} that 𝖽𝗂𝗌𝗍G(u,y)=𝖽𝗂𝗌𝗍G(u,cu)𝖽𝗂𝗌𝗍G(y,cu)=d/2i\mathsf{dist}_{G^{\prime}}(u,y)=\mathsf{dist}_{G^{\prime}}(u,c_{u})-\mathsf{dist}_{G^{\prime}}(y,c_{u})=\lceil d/2\rceil-i. Thus, we have

𝖽𝗂𝗌𝗍G(x,y)\displaystyle\mathsf{dist}_{G^{\prime}}(x,y) =𝖽𝗂𝗌𝗍G(x,v)+𝖽𝗂𝗌𝗍G(v,u)+𝖽𝗂𝗌𝗍G(u,y)\displaystyle=\mathsf{dist}_{G^{\prime}}(x,v)+\mathsf{dist}_{G^{\prime}}(v,u)+\mathsf{dist}_{G^{\prime}}(u,y)
(d/2+(i1))+1+(d/2i)=d+1>d.\displaystyle\geq(\lceil d/2\rceil+(i-1))+1+(\lceil d/2\rceil-i)=d+1>d.

3.5.3 The Correctness of Our Reduction

We are now ready to prove the correctness of our reduction.

{lemmarep}

(G,α,β,L)(G,\alpha,\beta,L) is a yes-instance if and only if (G,α,β)(G^{\prime},\alpha^{\prime},\beta^{\prime}) is a yes-instance.

Proof.

In GG^{\prime}, for any vV(G)v\in V(G), as the distance between vv and any vertex wv,iV(Fv)w_{v,i}\in V(F_{v}) where i{1,,k}L(v)i\in\{1,\dots,k\}\setminus L(v) is exactly dd, and no vertex in FvF_{v} (including wv,iw_{v,i}) can be recolored, it follows that vv is never recolored by any color i{1,,k}L(v)i\in\{1,\dots,k\}\setminus L(v). In other words, any valid recoloring step in GG^{\prime} is also a valid recoloring step in GG and vice versa. It follows that any reconfiguration sequence in GG^{\prime} is also a reconfiguration sequence in GG and vice versa. ∎

3.5.4 Reducing The Number of Required Colors

In our reduction, we have proved that k=n(d/21)+2+k=O(nd+2+k)k^{\prime}=n(\lceil d/2\rceil-1)+2+k=O(nd+2+k) colors are required, where nn is the number of vertices of graph GG of an arbitrary List (d,k)(d,k)-Coloring Reconfiguration’s instance (G,α,β,L)(G,\alpha,\beta,L). However, for our reduction this number of colors kk^{\prime} can indeed be reduced asymptotically to O(d2)O(d^{2}) colors.

{lemmarep}

The number of colors in our described reduction can be reduced to O(d2)O(d^{2}).

Proof.

From Section 3.4, we know that instead of arbitrary List (d,k)(d,k)-Coloring Reconfiguration’s instances, we can use the instances of List (d,k)(d,k)-Coloring Reconfiguration that we constructed via our reduction from Restricted Sliding Tokens i.e., the graph GG^{\prime} of Section 3.4.

For two vertices uu and vv of distance at most dd in GG, in our reduction, we required that the colors used for TuT_{u} must be all distinct from those used for TvT_{v}, that is, {Cu,1,,Cu,d/21}{Cv,1,,Cv,d/21}=\{C_{u,1},\dots,C_{u,\lceil d/2\rceil-1}\}\cap\{C_{v,1},\dots,C_{v,\lceil d/2\rceil-1}\}=\emptyset. In an arbitrary List (d,k)(d,k)-Coloring Reconfiguration’s instance (G,α,β,L)(G,\alpha,\beta,L) instance we have no handle on which vertices are within distance dd from each other, hence, we end up with the number of colors used being dependent on the number of vertices of GG. However, we now utilize the structure of GG^{\prime} to reduce the number of colors to O(d2)O(d^{2}). Recall the disjoint sets of colors A,BA,B and CC we used in construction of our reduction in GG^{\prime} and Conditions (P1) and (P2) therein. There are either (d+1)/2(d+1)/2 or (d+2)/2(d+2)/2 colors in AA depending on dd is odd or even. For each such color of AA associate d/21\lceil d/2\rceil-1 new colors and call this multi-set AA^{\prime}. Similarly, we do so for sets BB and CC as well and construct multi-sets of new colors, BB^{\prime} and CC^{\prime}. Hence, we use a total of (3(d+1)/2)2(3(d+1)/2)^{2} or (3(d+2)/2)2(3(d+2)/2)^{2} new colors, where each |A|,|B||A^{\prime}|,|B^{\prime}| and |C||C^{\prime}| is either ((d+1)/2)2((d+1)/2)^{2} or ((d+2)/2)2((d+2)/2)^{2} for dd odd or even. Also for the set of colors {1,2,3}\{1,2,3\} associate another d/21\lceil d/2\rceil-1 new colors and call this set of colors DD^{\prime}.

Indeed if a vertex uGu\in G^{\prime} is of the form tit_{i} or eje_{j}, i.e., vertex corresponding to token triangles or edges then TtiT_{t_{i}} or TejT_{e_{j}} is colored with the set DD^{\prime}. If uGu\in G^{\prime} has in its list colors of set AA, then color TuT_{u} with AA^{\prime}. Similarly, for vertices uGu\in G^{\prime} with lists having colors from BB or CC, color their respective TuT_{u} path with colors from the set BB^{\prime} or CC^{\prime} respectively. Given this construction, observe that for two vertices uu and vv in GG^{\prime}, when they are at most distance dd from each other, then their respective TuT_{u} and TvT_{v} paths have different sets of colors. The same proof as Sections 3.5.2 and 3.5.3 follow to show that this construction is a (d,O(d2))(d,O(d^{2}))-coloring of GG^{\prime}. ∎

Combining our construction and Sections 3.5.2, 3.5.3 and 3.5.4, we finally have,

{theoremrep}

(d,k)(d,k)-Coloring Reconfiguration is \PSPACE-complete for any d2d\geq 2 and kk is Ω(d2)\Omega(d^{2}), even on graphs that are planar, bipartite and 22-degenerate.

Proof.

The \PSPACE-completeness follows from our construction and proofs above. From Section 3.4.2, one can restrict that the input graph GG of any List (d,k)(d,k)-Coloring Reconfiguration’s instance is planar, bipartite, and 22-degenerate. As our constructed frozen graphs (FvF_{v}, vV(G)v\in V(G)) are trees, they are also planar, bipartite and 11-degenerate. Thus, our constructed graph GG^{\prime} is also planar, bipartite, and 22-degenerate. Section 3.5.4 implies that k=Ω(d2)k=\Omega(d^{2}). ∎

4 Split Graphs

A split graph GG is a graph where the vertices can be partitioned into a clique and independent set. In this section, we focus on the case d=2d=2 and prove that (2,k)(2,k)-Coloring Reconfiguration is \PSPACE\PSPACE-complete. The case d3d\geq 3, when (d,k)(d,k)-Coloring Reconfiguration can be solved efficiently, will be considered in Section 5.1. We first show that the original (2,k)(2,k)-Coloring is \NP-complete, and then show that the (2,k)(2,k)-Coloring Reconfiguration problem is \PSPACE-complete via an extended reduction. {lemmarep} (2,k)(2,k)-Coloring on split graphs is \NP-complete. {appendixproof} One can verify that (2,k)(2,k)-Coloring is in \NP: kk-Coloring is in \NP and (2,k)(2,k)-Coloring on a graph GG can be converted to kk-Coloring on its square graph G2G^{2}. To show that it is \NP-complete, we describe a reduction from the well-known \ell-Coloring problem on general graphs for 3\ell\geq 3, which asks whether a given graph GG has a proper \ell-coloring. Let (G,)(G,\ell) be an instance of \ell-Coloring where G=(V,E)G=(V,E) is an arbitrary graph. We construct an instance (G,k)(G^{\prime},k) of (2,k)(2,k)-Coloring where GG^{\prime} is a split graph as follows. To construct GG^{\prime}, we first add all vertices of GG to GG^{\prime}. For each edge e=xyE(G)e=xy\in E(G) where x,yV(G)x,y\in V(G), we add a new vertex vev_{e} in V(G)V(G^{\prime}). Corresponding to each edge e=xyE(G)e=xy\in E(G), we add the edges xvexv_{e} and yveyv_{e} to E(G)E(G^{\prime}). Between all vertices eE(G){ve}\bigcup_{e\in E(G)}\{v_{e}\} we form a clique in GG^{\prime}. Finally, we set k=m+k=m+\ell where m=|E(G)|m=\lvert E(G)\rvert. Our construction can be done in polynomial time.

From the construction, GG^{\prime} is a split graph with K=eE(G){ve}K=\bigcup_{e\in E(G)}\{v_{e}\} forming a clique and S=V(G)S=V(G) forming an independent set. We now prove that GG has a proper \ell-coloring if and only if GG^{\prime} has a (2,k)(2,k)-coloring where k=m+k=m+\ell.

  • (\Rightarrow)

    Suppose that GG has a proper \ell-coloring α\alpha. We construct a (2,k)(2,k)-coloring α\alpha^{\prime} of GG^{\prime} by setting α(u)=α(u)\alpha^{\prime}(u)=\alpha(u) for every uV(G)=Su\in V(G)=S and use mm new colors to color all mm vertices in KK. From the construction, if 𝖽𝗂𝗌𝗍G(u,v)=1\mathsf{dist}_{G}(u,v)=1 for u,vV(G)=Su,v\in V(G)=S then 𝖽𝗂𝗌𝗍G(u,v)=2\mathsf{dist}_{G^{\prime}}(u,v)=2. Thus, α\alpha^{\prime} is a (2,k)(2,k)-coloring of GG^{\prime}.

  • (\Leftarrow)

    Suppose that GG^{\prime} has a (2,k)(2,k)-coloring α\alpha^{\prime}. We construct a coloring α\alpha of vertices of GG by setting α(u)=α(u)\alpha(u)=\alpha^{\prime}(u) for every uS=V(G)u\in S=V(G). Observe that any pair of vertices in KK have different colors. Therefore, α\alpha^{\prime} uses k|K|=km=k-\lvert K\rvert=k-m=\ell colors to color vertices in SS. Additionally, if uvE(G)uv\in E(G), we have 𝖽𝗂𝗌𝗍G(u,v)=2\mathsf{dist}_{G^{\prime}}(u,v)=2 and therefore α(u)α(v)\alpha^{\prime}(u)\neq\alpha^{\prime}(v), which implies α(u)α(v)\alpha(u)\neq\alpha(v). Thus, α\alpha is a proper \ell-coloring of GG.

{toappendix}

We now will show a proof that the (2,k)(2,k)-Coloring Reconfiguration problem on split graphs is \PSPACE\PSPACE-complete. Our proof is based on the construction in Section 4.

{theoremrep}

(2,k)(2,k)-Coloring Reconfiguration on split graphs is \PSPACE-complete. {appendixproof} We extend the reduction used in the proof of Section 4. More precisely, we present a polynomial-time reduction from the \ell-Coloring Reconfiguration problem, which is known to be \PSPACE-complete for 4\ell\geq 4 [BonsmaC09]. Let (G,α,β)(G,\alpha,\beta) be an instance of \ell-Coloring Reconfiguration where α\alpha and β\beta are two proper \ell-colorings of a graph GG having nn vertices and mm edges.

We describe how to construct an instance (G,α,β)(G^{\prime},\alpha^{\prime},\beta^{\prime}) of (2,k)(2,k)-Coloring Reconfiguration where k=+mk=\ell+m and α\alpha^{\prime} and β\beta^{\prime} are (2,k)(2,k)-colorings of GG^{\prime}. We construct the same graph GG^{\prime} as in Section 4.

Next, we define α\alpha^{\prime} and β\beta^{\prime}. Suppose, C=CSCKC=C_{S}\cup C_{K} is the set of kk colors where CS={1,,}C_{S}=\{1,\dots,\ell\}, CK={+1,,+m}C_{K}=\{\ell+1,\dots,\ell+m\} and the colors in CSC_{S} are used in both α\alpha and β\beta to color vertices of GG. We set α(v)=α(v)\alpha^{\prime}(v)=\alpha(v) and β(v)=β(v)\beta^{\prime}(v)=\beta(v) for every vSv\in S (which is equivalent to V(G)V(G)). For each wKw\in K, we color ww in both α\alpha^{\prime} and β\beta^{\prime} by the same color (i.e., α(w)=β(w)\alpha^{\prime}(w)=\beta^{\prime}(w)) that is selected from some unused colors in CKC_{K}. By Section 4, both α\alpha^{\prime} and β\beta^{\prime} are (2,k)(2,k)-colorings of GG^{\prime}. Our construction can be done in polynomial time.

It remains to show that there is a reconfiguration sequence between α\alpha and β\beta in GG if and only if there is a reconfiguration sequence between α\alpha^{\prime} and β\beta^{\prime} in GG^{\prime}.

  • (\Rightarrow)

    Let \mathcal{R} be a reconfiguration sequence between α\alpha and β\beta in GG. Section 4 implies that the sequence \mathcal{R} can be converted into a reconfiguration sequence \mathcal{R}^{\prime} between α\alpha^{\prime} and β\beta^{\prime} in GG^{\prime} by keeping the colors of all vertices in KK unchanged and applying the same recoloring steps in \mathcal{R} for all vertices in SS which is exactly the set V(G)V(G).

  • (\Leftarrow)

    Let \mathcal{R}^{\prime} be a reconfiguration sequence between α\alpha^{\prime} and β\beta^{\prime} in GG^{\prime}. We describe how to construct a reconfiguration sequence \mathcal{R} between α\alpha and β\beta in GG using \mathcal{R}^{\prime}. For each recoloring step in \mathcal{R}^{\prime}, we aim to construct a corresponding recoloring step (which may probably even be a redundant step in the sense that it recolors a vertex by the same color it currently has) in \mathcal{R}.

    Let si(v,p,q)s^{\prime}_{i}(v,p,q) be the ii-th recoloring step (i1i\geq 1) in \mathcal{R}^{\prime} which recolors vV(G)v\in V(G^{\prime}) by replacing the current color pp with the new color qpq\neq p, where p,qCp,q\in C. Let αi\alpha_{i} be the (2,k)(2,k)-coloring of GG^{\prime} obtained after we apply si(v,p,q)s^{\prime}_{i}(v,p,q). Note that αi\alpha_{i} can be seen as a function from V(G)V(G^{\prime}) to CC, which means αi(K)\alpha_{i}(K) (resp. αi(S)\alpha_{i}(S)) is the set of colors used in αi\alpha_{i} to color vertices of KK (resp. SS). Additionally, we define 𝒜i=αi(K)CS\mathcal{A}_{i}=\alpha_{i}(K)\cap C_{S} and i=αi(S)CK\mathcal{B}_{i}=\alpha_{i}(S)\cap C_{K}. We start by proving the following claim.

    Claim 1.

    For every i1i\geq 1, we have |𝒜i||i||\mathcal{A}_{i}|\geq|\mathcal{B}_{i}|.

    Proof 4.1.

    As |i||\mathcal{B}_{i}| colors are used to color some vertices in SS, it follows that there must be at least |i||\mathcal{B}_{i}| vertices in KK whose colors are not in CKC_{K}. (Note that no two vertices in KK share the same color and a vertex in GG^{\prime} is colored either by a color from CSC_{S} or one from CKC_{K}.) Thus, these |i||\mathcal{B}_{i}| vertices must be colored by colors from CSC_{S} in αi\alpha_{i}, and therefore they are members of 𝒜i\mathcal{A}_{i}. So, we have |𝒜i||i||\mathcal{A}_{i}|\geq|\mathcal{B}_{i}|.

    We remark that there could be colors used in both KK and SS in α\alpha^{\prime} which are unused in αi\alpha_{i} for some i1i\geq 1. These colors, if they exist, are neither in 𝒜i\mathcal{A}_{i} nor i\mathcal{B}_{i}.

    Next, for each ii, we will inductively describe how to define an injective function fi:i𝒜if_{i}\colon\mathcal{B}_{i}\to\mathcal{A}_{i} and how to define the corresponding recoloring step in \mathcal{R} using fif_{i}. At the same time, we will show that our constructed sequence \mathcal{R} remains a reconfiguration sequence.

    We consider the first step s1(v,p,q)s^{\prime}_{1}(v,p,q). As we start from the (2,k)(2,k)-coloring α\alpha^{\prime} where vertices in SS are colored by exactly \ell colors, it follows that vSv\in S and p,qCSp,q\in C_{S}. In this case, by definition, 𝒜1=1=\mathcal{A}_{1}=\mathcal{B}_{1}=\emptyset (i.e., intuitively, no color has “switched side” yet), and f1f_{1} is an empty function. Additionally, we add the same recoloring step to \mathcal{R}.

    We now show that our corresponding constructed sequence \mathcal{R} is a reconfiguration sequence. Before vv is recolored in GG^{\prime}, no vertex of distance at most two from vv in GG^{\prime} is colored by qq. From the construction, at this point, it follows that no neighbor of vv in GG has color qq. As a result, recoloring vv by qq in GG results in a proper \ell-coloring of GG. Thus, we can add this step to \mathcal{R} as we described. This completes our analysis for i=1i=1.

    Now, suppose that fjf_{j}’s are defined for every ji1j\leq i-1 and till the (i1)(i-1)-th step, \mathcal{R} remains a reconfiguration sequence. We describe how to define fif_{i} and add a new recoloring step to \mathcal{R}. We remark that though the sizes of 𝒜i\mathcal{A}_{i} and 𝒜i1\mathcal{A}_{i-1} may be different, the claim allows us to define fif_{i} properly for every i1i\geq 1. Recall that si(v,p,q)s^{\prime}_{i}(v,p,q) is the ii-th recoloring step in \mathcal{R}^{\prime}.

    Let us first see that we only need to look at the case that vSv\in S. Otherwise, if vKv\in K, by definition, as no vertex in SS changes its color in the ii-th step, αi(S)=αi1(S)\alpha_{i}(S)=\alpha_{i-1}(S), and therefore i=i1\mathcal{B}_{i}=\mathcal{B}_{i-1}. Naturally we define fi=fi1f_{i}=f_{i-1}. In this case, we add a redundant step to \mathcal{R} and thus \mathcal{R} remains a reconfiguration sequence.

    We consider vSv\in S. By definition, as no vertex in KK changes its color in the ii-th step, αi(K)=αi1(K)\alpha_{i}(K)=\alpha_{i-1}(K), and therefore 𝒜i=𝒜i1\mathcal{A}_{i}=\mathcal{A}_{i-1}. We consider the following cases

    • Case 1: pCKp\in C_{K} and qCKq\in C_{K}. By definition, pi1αi1(S)p\in\mathcal{B}_{i-1}\subseteq\alpha_{i-1}(S) and qiαi(S)q\in\mathcal{B}_{i}\subseteq\alpha_{i}(S).

      • *

        If pαi(S)p\in\alpha_{i}(S) and qαi1(S)q\in\alpha_{i-1}(S), by definition, i=i1\mathcal{B}_{i}=\mathcal{B}_{i-1}, and again we define fi=fi1f_{i}=f_{i-1}. In this case, fi(q)=fi1(q)f_{i}(q)=f_{i-1}(q) has already been defined at some step i1\leq i-1, and we add the step of recoloring vv in GG by fi(q)f_{i}(q) to \mathcal{R}. As si(v,p,q)s^{\prime}_{i}(v,p,q) is a valid recoloring step, it follows that every vertex uu in SS having color fi(q)=fi1(q)f_{i}(q)=f_{i-1}(q) is of distance 33 from vv. By construction, uu and vv are not adjacent in GG, so they can both have the same color fi(q)f_{i}(q). Thus, recoloring vv by fi(q)f_{i}(q) in GG results in a proper \ell-coloring of GG, which implies \mathcal{R} remains a reconfiguration sequence.

      • *

        If pαi(S)p\in\alpha_{i}(S) and qαi1(S)q\notin\alpha_{i-1}(S), by definition, i=i1+q\mathcal{B}_{i}=\mathcal{B}_{i-1}+q, and we define fif_{i} by keeping the same value of fi1f_{i-1} for every color in iq\mathcal{B}_{i}-q and define fi(q)=xf_{i}(q)=x for some x𝒜ifi1(i1)x\in\mathcal{A}_{i}-f_{i-1}(\mathcal{B}_{i-1}). Such a color xx exists because by the claim and our assumption, |𝒜i|=|𝒜i1||i|=|i1|+1|\mathcal{A}_{i}|=|\mathcal{A}_{i-1}|\geq|\mathcal{B}_{i}|=|\mathcal{B}_{i-1}|+1. In this case, by our inductive hypothesis and the assumption qαi1(S)q\notin\alpha_{i-1}(S), no vertex in GG has color fi(q)f_{i}(q) in αi1\alpha_{i-1}; otherwise, qi1q\in\mathcal{B}_{i-1}. Thus, recoloring vv by fi(q)f_{i}(q) in GG results a proper \ell-coloring of GG, and we can add this step to \mathcal{R}.

      • *

        If pαi(S)p\notin\alpha_{i}(S) and qαi1(S)q\in\alpha_{i-1}(S), by definition, i=i1p\mathcal{B}_{i}=\mathcal{B}_{i-1}-p, and we define fif_{i} by keeping the same value of fi1f_{i-1} for every color in i=i1p\mathcal{B}_{i}=\mathcal{B}_{i-1}-p. Similar to the previous cases, recoloring vv by fi(q)f_{i}(q) in GG results a proper \ell-coloring of GG, and we can add this step to \mathcal{R}.

      • *

        If pαi(S)p\notin\alpha_{i}(S) and qαi1(S)q\notin\alpha_{i-1}(S), by definition, i=i1p+q\mathcal{B}_{i}=\mathcal{B}_{i-1}-p+q, and we define fif_{i} by combining the two previous cases. More precisely, we define fif_{i} by keeping the same value of fi1f_{i-1} for every color in ii1=i1{p,q}\mathcal{B}_{i}\cap\mathcal{B}_{i-1}=\mathcal{B}_{i-1}-\{p,q\}. Additionally, we remove the value for pp and add a new value for qq as described before. Similar to the previous cases, recoloring vv by fi(q)f_{i}(q) in GG results a proper \ell-coloring of GG, and we can add this step to \mathcal{R}.

    • Case 2: pCKp\in C_{K} and qCSq\in C_{S}. Note that in this case as qCSq\in C_{S}, by definition, for all ii, qBiq\not\in B_{i} and hence in particular it is neither in i1\mathcal{B}_{i-1} nor i\mathcal{B}_{i}. The construction of fif_{i} can be done similarly as in the previous case by analyzing the membership of pp (i.e., whether it is in αi(S)\alpha_{i}(S), which respectively corresponds to whether i=i1\mathcal{B}_{i}=\mathcal{B}_{i-1} or i=i1p\mathcal{B}_{i}=\mathcal{B}_{i-1}-p).

      Indeed, in this case, we do not need fif_{i} for reconfiguration. We add the step of recoloring vv by qq in GG to \mathcal{R}. We now claim that this is a valid recoloring step. Since, si(v,p,q)s^{\prime}_{i}(v,p,q) is a valid recoloring step in GG^{\prime} and vSv\in S, we have qαi1(K)q\notin\alpha_{i-1}(K), which means q𝒜i1=αi1(K)CS=𝒜iq\notin\mathcal{A}_{i-1}=\alpha_{i-1}(K)\cap C_{S}=\mathcal{A}_{i}. It follows that there is no color yy in either i1\mathcal{B}_{i-1} or i\mathcal{B}_{i} such that either fi1(y)=qf_{i-1}(y)=q or fi(y)=qf_{i}(y)=q, respectively. Thus, to show that recoloring vv by qq in GG results a proper \ell-coloring in GG, it suffices to verify that every vertex in SS having color qq is of distance 33 from vv in GG^{\prime}, which is derived directly from the assumption that si(v,p,q)s^{\prime}_{i}(v,p,q) is valid.

    • Case 3: pCSp\in C_{S} and qCKq\in C_{K}. By definition, qiαi(S)q\in\mathcal{B}_{i}\subseteq\alpha_{i}(S).

      If qαi1(S)q\in\alpha_{i-1}(S), by definition, i=i1\mathcal{B}_{i}=\mathcal{B}_{i-1}, and again we define fi=fi1f_{i}=f_{i-1}. As in Case 1, fi(q)f_{i}(q) is defined at some step ji1j\leq i-1 before, and recoloring vv by fi(q)f_{i}(q) in GG results in a proper \ell-coloring of GG. We add this step to \mathcal{R}.

      If qαi1(S)q\notin\alpha_{i-1}(S), by definition, i=i1+q\mathcal{B}_{i}=\mathcal{B}_{i-1}+q, and again we define fif_{i} by taking the same value of fi1f_{i-1} for every color in iq\mathcal{B}_{i}-q and fi(q)=xf_{i}(q)=x for some x𝒜ifi1(i1)x\in\mathcal{A}_{i}-f_{i-1}(\mathcal{B}_{i-1}) which exists via Claim 1. As in Case 1, recoloring vv by fi(q)f_{i}(q) in GG results in a proper \ell-coloring of GG. We add this step to \mathcal{R}.

    • Case 4: pCSp\in C_{S} and qCSq\in C_{S}. From the assumption, as both pp and qq are in CSC_{S}, by definition, i=i1\mathcal{B}_{i}=\mathcal{B}_{i-1}, and naturally we define fi=fi1f_{i}=f_{i-1}. As in Case 2, we do not need fif_{i} for reconfiguration, and we add the step of recoloring vv by qq in GG to \mathcal{R}.

5 Algorithms

5.1 Graphs of Diameter At Most dd

{theoremrep}

Let GG be any (d,k)(d,k)-colorable graph whose diameter is at most dd. Then, (d,k)(d,k)-Coloring Reconfiguration is solvable in O(1)O(1) time. Moreover, given a yes-instance (G,α,β)(G,\alpha,\beta), one can construct in linear time a reconfiguration sequence between α\alpha and β\beta. {toappendix}

Proof 5.1.

Let GG be a (d,k)(d,k)-colorable graph on nn vertices whose diameter is at most dd. Since GG has diameter at most dd, for any (d,k)(d,k)-coloring α\alpha, we have α(u)α(v)\alpha(u)\neq\alpha(v) for every u,vV(G)u,v\in V(G). Thus, nkn\leq k.

Now, if n=kn=k, any instance (G,α,β)(G,\alpha,\beta) of (d,k)(d,k)-Coloring Reconfiguration on GG is a no-instance as no vertex can be recolored. Otherwise, any instance (G,α,β)(G,\alpha,\beta) of (d,k)(d,k)-Coloring Reconfiguration on GG is a yes-instance. Observe that one can recolor any vertex with some extra color that does not appear in the current (d,k)(d,k)-coloring (such a color always exists because n<kn<k). This observation allows us to construct any target (d,k)(d,k)-coloring β\beta from some source (d,k)(d,k)-coloring α\alpha using Algorithm 1. Since n<kn<k, each step correctly produces a new (d,k)(d,k)-coloring of GG. It is also clear from the description that the construction runs in O(n)O(n) time as we get closer to the coloring β\beta one color at a time.

1:Pick a vertex vv where β(v)\beta(v) is an extra color that is not used in the current coloring. \Ifsuch vv cannot be found \LCommentβ\beta is indeed obtained by permuting the colors used by the current coloring on the set V(G)V(G)
2:Arbitrarily pick any vertex ww and recolor it by any extra color. \LCommentSuch an extra color always exists as n<kn<k. In the next iteration, there exists a vertex vv whose β(v)\beta(v)—the previous color of ww becomes an extra color \EndIf
3:Recolor vv by the color β(v)\beta(v). \Untilβ\beta is obtained
\Repeat
Algorithm 1 dd-diameter algorithm: n<kn<k

Recall that the diameter of a component of any split graph is at most 33. The following corollary is straightforward.

{corollaryrep}

(d,k)(d,k)-Coloring Reconfiguration can be solved in polynomial time on split graphs for any fixed integers d3d\geq 3 and kd+1k\geq d+1.

5.2 Paths

{toappendix}

In this section, we assume that a path PP on nn vertices is partitioned into n/(d+1)\lceil n/(d+1)\rceil disjoint blocks of d+1d+1 consecutive vertices (except possibly the last block, which can have less than d+1d+1 vertices). We denote by vi,jv_{i,j} the jj-th vertex in the ii-th block of PP if it exists, for 1in/(d+1)1\leq i\leq\lceil n/(d+1)\rceil and 1jd+11\leq j\leq d+1. In particular, v1,1v_{1,1} is always an endpoint of PP. Notice that vi,1v_{i,1} and vi,d+1v_{i,d+1} have distance dd.

{lemmarep}

Let α\alpha be any (d,d+1)(d,d+1)-coloring of an nn-vertex path PP. Then, α(vi,j)=α(vi,j)\alpha(v_{i,j})=\alpha(v_{i^{\prime},j}), where 1i<in/(d+1)1\leq i<i^{\prime}\leq\lceil n/(d+1)\rceil.

Proof 5.2.

It suffices to show that α(vi,j)=α(vi+1,j)\alpha(v_{i,j})=\alpha(v_{i+1,j}) for every 1in/(d+1)11\leq i\leq\lceil n/(d+1)\rceil-1 and 1jd+11\leq j\leq d+1 such that vi+1,jv_{i+1,j} exists. (If i<n/(d+1)1i<\lceil n/(d+1)\rceil-1, vi+1,jv_{i+1,j} always exists. If i=n/(d+1)1i=\lceil n/(d+1)\rceil-1, vi+1,jv_{i+1,j} may or may not exist.) Let QQ be the path between vi,jv_{i,j} and vi+1,jv_{i+1,j}. Let uu be the neighbor of vi,jv_{i,j} in QQ. Similarly, let vv be that of vi+1,jv_{i+1,j}. By definition, the uvuv-path in PP has length exactly d1d-1, and therefore its vertices are colored by exactly dd colors. Since at most d+1d+1 colors are available and α\alpha is a (d,d+1)(d,d+1)-coloring, α(vi+1,j)\alpha(v_{i+1,j}) cannot have any of the colors that were assigned to the uvuv-path. Hence, we have α(vi,j)=α(vi+1,j)\alpha(v_{i,j})=\alpha(v_{i+1,j}).

From Section 5.2, it follows that if exactly d+1d+1 colors are available, one cannot recolor any vertex on a path PP. We have the following corollary. {corollaryrep} Let PP be a path on nn vertices. Then any instance (P,α,β)(P,\alpha,\beta) with αβ\alpha\neq\beta of (d,d+1)(d,d+1)-Coloring Reconfiguration is a no-instance.

Proof 5.3.

Let α\alpha be a (d,d+1)(d,d+1)-coloring of PP. It suffices to show that no vertex in PP can be recolored. Suppose to the contrary that there exists v=vi,jv=v_{i,j} such that one can obtain a (d,d+1)(d,d+1)-coloring α\alpha^{\prime} of PP from α\alpha by recoloring vv, where 1in/(d+1)1\leq i\leq\lceil n/(d+1)\rceil and 1jd+11\leq j\leq d+1. Since PP has diameter more than dd, the first block of PP always has exactly d+1d+1 vertices. None of them can be recolored, so vv1,jv\neq v_{1,j}. On the other hand, by Section 5.2 we have, α(v1,j)=α(vi,j)=α(v)α(v)=α(vi,j)=α(v1,j)\alpha^{\prime}(v_{1,j})=\alpha^{\prime}(v_{i,j})=\alpha^{\prime}(v)\neq\alpha(v)=\alpha(v_{i,j})=\alpha(v_{1,j}). This implies that if we recolor vi,jv_{i,j} we are also forced to recolor v1,jv_{1,j}. Thus, we have v=v1,jv=v_{1,j}, a contradiction.

Next, using the two subsequent lemmas we show that one extra color is enough to recolor the graph. First, Section 5.2 says that we can transform any (d,k)(d,k)-coloring, where kd+2k\geq d+2 to some (d,d+1)(d,d+1)-coloring. Then, Section 5.2 shows that if both source and target colorings are (d,d+1)(d,d+1)-colorings and we have kd+2k\geq d+2 colors, we can recolor the graph, thereby completing the picture.

{lemmarep}

Let PP be a path on nn vertices. Let α\alpha be a (d,k)(d,k)-coloring of PP for kd+2k\geq d+2. Then, there exists a (d,d+1)(d,d+1)-coloring β\beta of PP such that (P,α,β)(P,\alpha,\beta) is a yes-instance of (d,k)(d,k)-Coloring Reconfiguration. Moreover, one can construct in O(n2)O(n^{2}) time a reconfiguration sequence between α\alpha and β\beta.

Proof 5.4.

Algorithm 2 describes how to construct a sequence 𝒮\mathcal{S} between α\alpha and some (d,d+1)(d,d+1)-coloring β\beta of PP. Informally, the algorithm starts by using the colors of the second block to recolor vertices of the first block. Then, in each iteration of the algorithm (which corresponds to the outer for loop of 1), the algorithm uses the colors of the iith block to recolor vertices of the blocks i1i-1 to 11 in that order. So, each iteration of the algorithm takes at most O(n)O(n) time and, hence, Algorithm 2 runs in O(n2)O(n^{2}) time. Each vertex is recolored at most O(n/(d+1))O(\lceil n/(d+1)\rceil) times.

Next, we show the correctness of our algorithm. We prove using induction on the length (i.e., the number of recoloring steps) 1\ell\geq 1 of 𝒮\mathcal{S} that 𝒮\mathcal{S} is indeed a reconfiguration sequence from α\alpha to β\beta. Let t{1,,d+1}t\in\{1,\dots,d+1\} be the number of vertices in the last block of PP, which may be less than d+1d+1. Once 𝒮\mathcal{S} is a reconfiguration sequence, it follows directly from the algorithm that the resulting coloring β\beta is a (d,d+1)(d,d+1)-coloring of PP: In β\beta, every block of PP will have its first tt vertices colored by the colors used in α\alpha for all tt vertices in the last block and its last d+1td+1-t vertices colored by the colors used in α\alpha for the last d+1td+1-t vertices in the second-to-last block. If the last block has t=d+1t=d+1 vertices then d+1t=0d+1-t=0 and thus all colors used in β\beta are used by α\alpha for vertices in the last block of PP.

(P,α)(P,\alpha)where α\alphais a (d,k)(d,k)-coloring of a path PPfor some kd+2k\geq d+2A reconfiguration sequence 𝒮\mathcal{S}between α\alphaand some (d,d+1)(d,d+1)-coloring β\betaof PP
1:𝒮α\mathcal{S}\leftarrow\langle\alpha\rangle \Forii from 22 to n/(d+1)\lceil n/(d+1)\rceil \Forjj from 11 to d+1d+1 \Ifvi,jv_{i,j} exists \Forpp from i1i-1 to 11
2:α(vp,j)α(vi,j)\alpha(v_{p,j})\leftarrow\alpha(v_{i,j}) \triangleright This can also be seen as recoloring vp,jv_{p,j} by the color α(vp+1,j)\alpha(v_{p+1,j})
3:𝒮𝒮α\mathcal{S}\leftarrow\mathcal{S}\cup\langle\alpha\rangle \EndFor\EndIf\EndFor\EndFor\Return𝒮\mathcal{S}
\Require
\Ensure
Algorithm 2 Construction of a reconfiguration sequence that transforms any (d,k)(d,k)-coloring where kd+2k\geq d+2 into a (d,d+1)(d,d+1)-coloring in a path

For the base case =1\ell=1, the sequence 𝒮=α,α1\mathcal{S}=\langle\alpha,\alpha_{1}\rangle where α1\alpha_{1} is obtained from α\alpha by recoloring v1,1v_{1,1} with the color α(v2,1)\alpha(v_{2,1}) is indeed a reconfiguration sequence: Since α\alpha is a (d,k)(d,k)-coloring (kd+2k\geq d+2) of PP, no vertex in the path between v1,1v_{1,1} and v2,1v_{2,1} is colored by α(v2,1)\alpha(v_{2,1}). Since, the distance between v1,1v_{1,1} and v2,1v_{2,1} is exactly d+1d+1, they can share the same color α(v2,1)\alpha(v_{2,1}).

Next, assume that the sequence 𝒮=α,α1,,α\mathcal{S}^{\prime}=\langle\alpha,\alpha_{1},\dots,\alpha_{\ell}\rangle obtained from Algorithm 2 is indeed a reconfiguration sequence in PP. We claim that the sequence 𝒮=α,α1,,α,α+1\mathcal{S}=\langle\alpha,\alpha_{1},\dots,\alpha_{\ell},\alpha_{\ell+1}\rangle is also a reconfiguration sequence in PP. Suppose to the contrary that it is not. From the construction, there exist two indices ii and jj such that α+1\alpha_{\ell+1} is obtained from α\alpha_{\ell} by recoloring vi,jv_{i,j} with the color α(vi+1,j)\alpha_{\ell}(v_{i+1,j}). Since 𝒮\mathcal{S}^{\prime} is a reconfiguration sequence but 𝒮\mathcal{S} is not, the above recoloring step is not valid, i.e., there is a vertex wV(P)w\in V(P) such that α(w)=α(vi+1,j)\alpha_{\ell}(w)=\alpha_{\ell}(v_{i+1,j}), wvi,jw\neq v_{i,j}, and the distance between ww and vi,jv_{i,j} is at most dd. By the distance constraint and the assumption that α\alpha_{\ell} is a (d,k)(d,k)-coloring, ww is on the path between v1,1v_{1,1} and vi+1,jv_{i+1,j}. (Recall that the distance between vi,jv_{i,j} and vi+1,jv_{i+1,j} is exactly d+1d+1.) Since α(w)=α(vi+1,j)\alpha_{\ell}(w)=\alpha_{\ell}(v_{i+1,j}), ww is not in the (i+1)(i+1)-th block. Thus, ww is in either the ii-th block or the (i1)(i-1)-th one. We complete our proof by showing that in each case, a contradiction happens.

  • We consider the case that ww is in the ii-th block, say w=vi,jw=v_{i,j^{\prime}} for some j{1,,d+1}{j}j^{\prime}\in\{1,\dots,d+1\}\setminus\{j\}. If j>jj^{\prime}>j then w=vi,jw=v_{i,j^{\prime}} is on the path between vi,jv_{i,j} and vi+1,jv_{i+1,j}. Recall that the path between vi,jv_{i,j} and vi+1,jv_{i+1,j} has length exactly d+1d+1. So if ww is on that path and note that wvi,jw\neq v_{i,j}, the distance between ww and vi+1,jv_{i+1,j} is at most dd. Since α\alpha_{\ell} is a (d,k)(d,k)-coloring, we must have α(w)α(vi+1,j)\alpha_{\ell}(w)\neq\alpha_{\ell}(v_{i+1,j}), a contradiction. On the other hand, if j<jj^{\prime}<j then by the inductive hypothesis, α(w)=α(vi,j)=α(vi+1,j)=α(vi+1,j)\alpha_{\ell}(w)=\alpha_{\ell}(v_{i,j^{\prime}})=\alpha_{\ell}(v_{i+1,j^{\prime}})=\alpha_{\ell}(v_{i+1,j}) (follows from construction of Algorithm 2) which contradicts the assumption that α\alpha_{\ell} is a (d,k)(d,k)-coloring of PP.

  • We now consider the case that ww is in the (i1)(i-1)-th block, say w=vi1,jw=v_{i-1,j^{\prime}} for some j{1,,d+1}j^{\prime}\in\{1,\dots,d+1\}. Since the distance between w=vi1,jw=v_{i-1,j^{\prime}} and vi,jv_{i,j} is at most dd, we have j>jj^{\prime}>j. By the inductive hypothesis, we have α(w)=α(vi1,j)=α(vi,j)\alpha_{\ell}(w)=\alpha_{\ell}(v_{i-1,j^{\prime}})=\alpha_{\ell}(v_{i,j^{\prime}}) (follows from construction of Algorithm 2). On the other hand, since j>jj^{\prime}>j, the vertex vi,jv_{i,j^{\prime}} is on the path between vi,jv_{i,j} and vi+1,jv_{i+1,j}, and thus α(w)=α(vi,j)α(vi+1,j)\alpha_{\ell}(w)=\alpha_{\ell}(v_{i,j^{\prime}})\neq\alpha_{\ell}(v_{i+1,j}), a contradiction.

{lemmarep}

Let PP be a path on nn vertices. Then any instance (P,α,β)(P,\alpha,\beta) of (d,k)(d,k)-Coloring Reconfiguration where kd+2k\geq d+2 and both α\alpha and β\beta are (d,d+1)(d,d+1)-colorings of PP is a yes-instance. In particular, there exists a linear-time algorithm that constructs a reconfiguration sequence between α\alpha and β\beta.

Proof 5.5.

A slight modification of Algorithm 1 allows us to construct a reconfiguration sequence between α\alpha and β\beta in O(n)O(n) time. Recall that at least d+2d+2 colors can be used. We apply Algorithm 1 on the first block of d+1d+1 consecutive vertices v1,1,,v1,j,,v1,d+1v_{1,1},\dots,v_{1,j},\dots,v_{1,d+1} in PP with only one small change: when a vertex v1,jv_{1,j} is considered for recoloring (in 2 and 3 of Algorithm 1), instead of just recoloring v1,jv_{1,j}, we also recolor the jj-th vertex (if it exists) in every other block, one vertex at a time. This can be done correctly as when we are recoloring v1,jv_{1,j} using an extra color, that extra color is not present in the current coloring. So we can recolor the jj-th vertices of all other blocks as well with that extra color. From Sections 5.1 and 5.2, it follows that this modified algorithm always correctly produces a (d,k)(d,k)-coloring of PP at each step, and the algorithm runs in O(n)O(n) time.

Combining Sections 5.2, 5.2 and 5.2 we have the following theorem.

{theoremrep}

(d,k)(d,k)-Coloring Reconfiguration on nn-vertex paths can be solved in O(1)O(1) time. Moreover, in a yes-instance, one can construct a corresponding reconfiguration sequence in O(n2)O(n^{2}) time.

Proof 5.6.

Let (P,α,β)(P,\alpha,\beta) be an instance of (d,k)(d,k)-Coloring Reconfiguration on paths. If k=d+1k=d+1, return “no” (Section 5.2). Otherwise, (kd+2k\geq d+2), return “yes”.

It remains to describe how to construct a reconfiguration sequence between α\alpha and β\beta in a yes-instance. If α\alpha (resp. β\beta) is not a (d,d+1)(d,d+1)-coloring of PP, use Section 5.2 to reconfigure it into some (d,d+1)(d,d+1)-coloring α\alpha^{\prime} (resp. β\beta^{\prime}). Otherwise, just simply assign αα\alpha^{\prime}\leftarrow\alpha (resp. ββ\beta^{\prime}\leftarrow\beta). Use Section 5.2 to construct a reconfiguration sequence between α\alpha^{\prime} and β\beta^{\prime}. Combining these sequences gives us a reconfiguration sequence between α\alpha and β\beta.

6 Concluding Remarks

In this paper, for d2d\geq 2 and kd+1k\geq d+1, we provided an initial picture on the computational complexity of (d,k)(d,k)-Coloring Reconfiguration and related problems with respect to different graph classes. Most importantly, we have proved that on graphs that are planar, bipartite, and 22-degenerate, the problem remains \PSPACE-complete for any d2d\geq 2. From the viewpoint of the degeneracy of a graph, it is natural to consider the problem on 11-degenerate graphs (which are forests). Indeed, the complexity of (d,k)(d,k)-Coloring Reconfiguration (d2d\geq 2) remains unknown even on trees, and we have only been able to partially answer this question by designing a quadratic-time algorithm for paths (a subclass of trees).

References

  • [BC09] Paul S. Bonsma and Luis Cereceda “Finding Paths Between Graph Colourings: PSPACE-Completeness and Superpolynomial Distances” In Theoretical Computer Science 410.50, 2009, pp. 5215–5226 DOI: 10.1016/j.tcs.2009.08.023
  • [BP19] Paul S. Bonsma and Daniël Paulusma “Using Contracted Solution Graphs for Solving Reconfiguration Problems” In Acta Informatica 56, 2019, pp. 619–648 DOI: 10.1007/s00236-019-00336-8
  • [Cer07] Luis Cereceda “Mixing Graph Colourings”, 2007 URL: http://etheses.lse.ac.uk/131/
  • [CvJ11] Luis Cereceda, Jan van den Heuvel and Matthew Johnson “Finding Paths Between 33-Colorings” In Journal of Graph Theory 67.1, 2011, pp. 69–82 DOI: 10.1002/jgt.20514
  • [Die17] Reinhard Diestel “Graph Theory” 173, Graduate Texts in Mathematics Springer, 2017 DOI: 10.1007/978-3-662-53622-3
  • [HIZ15] Tatsuhiko Hatanaka, Takehiro Ito and Xiao Zhou “The List Coloring Reconfiguration Problem for Bounded Pathwidth Graphs” In IEICE Transactions on Fundamentals of Electronics, Communications and Computer Sciences E98.A.6, 2015, pp. 1168–1178 DOI: 10.1587/transfun.E98.A.1168
  • [HIZ19] Tatsuhiko Hatanaka, Takehiro Ito and Xiao Zhou “The Coloring Reconfiguration Problem on Specific Graph Classes” In IEICE Transactions on Information and Systems E102.D.3, 2019, pp. 423–429 DOI: 10.1587/transinf.2018FCP0005
  • [HD05] Robert A. Hearn and Erik D. Demaine “PSPACE-Completeness of Sliding-Block Puzzles and Other Problems through the Nondeterministic Constraint Logic Model of Computation” In Theoretical Computer Science 343.1-2, 2005, pp. 72–96 DOI: 10.1016/j.tcs.2005.05.008
  • [Ito+11] Takehiro Ito, Erik D. Demaine, Nicholas J.. Harvey, Christos H. Papadimitriou, Martha Sideri, Ryuhei Uehara and Yushi Uno “On the Complexity of Reconfiguration Problems” In Theoretical Computer Science 412.12-14, 2011, pp. 1054–1065 DOI: 10.1016/j.tcs.2010.12.005
  • [Ito+14] Takehiro Ito, Kazuto Kawamura, Hirotaka Ono and Xiao Zhou “Reconfiguration of list L(2,1)-labelings in a graph” In Theor. Comput. Sci. 544, 2014, pp. 84–97 DOI: 10.1016/J.TCS.2014.04.011
  • [Joh+16] Matthew Johnson, Dieter Kratsch, Stefan Kratsch, Viresh Patel and Daniël Paulusma “Finding Shortest Paths Between Graph Colourings” In Algorithmica 75.2, 2016, pp. 295–321 DOI: 10.1007/s00453-015-0009-7
  • [KK69] Florica Kramer and Horst Kramer “Ein Färbungsproblem der Knotenpunkte eines Graphen bezüglich der Distanz p” In Rev. Roumaine Math. Pures Appl 14.2, 1969, pp. 1031–1038
  • [KK69a] Florica Kramer and Horst Kramer “Un probleme de coloration des sommets d’un graphe” In CR Acad. Sci. Paris A 268.7, 1969, pp. 46–48
  • [KK08] Florica Kramer and Horst Kramer “A Survey on the Distance-Colouring of Graphs” In Discrete mathematics 308.2-3 Elsevier, 2008, pp. 422–426 DOI: 10.1016/j.disc.2006.11.059
  • [LN10] Van Bang Le and Ngoc Tuy Nguyen “Hardness Results and Efficient Algorithms for Graph Powers” In Proceedings of WG 2009, 2010, pp. 238–249 DOI: 10.1007/978-3-642-11409-0˙21
  • [LS95] Yaw-Ling Lin and Steven S Skiena “Algorithms for Square Roots of Graphs” In SIAM Journal on Discrete Mathematics 8.1 SIAM, 1995, pp. 99–118 DOI: 10.1137/S089548019120016X
  • [Mah24] Reem Mahmoud “Graph Coloring Reconfiguration”, 2024 URL: https://scholarscompass.vcu.edu/etd/7564/
  • [McC83] S. McCormick “Optimal Approximation of Sparse Hessians and Its Equivalence to a Graph Coloring Problem” In Mathematical Programming 26.2 Springer, 1983, pp. 153–171 DOI: 10.1007/BF02592052
  • [MN19] C.M. Mynhardt and S. Nasserasr “Reconfiguration of Colourings and Dominating Sets in Graphs” In 50 years of Combinatorics, Graph Theory, and Computing CRC Press, 2019, pp. 171–191 DOI: 10.1201/9780429280092-10
  • [Nis18] Naomi Nishimura “Introduction to Reconfiguration” In Algorithms 11.4, 2018, pp. 52 DOI: 10.3390/a11040052
  • [Sha07] Alexa Sharp “Distance Coloring” In Proceedings of ESA 2007 4698, LNCS Springer, 2007, pp. 510–521 DOI: 10.1007/978-3-540-75520-3˙46
  • [van13] Jan van den Heuvel “The Complexity of Change” In Surveys in Combinatorics 409, London Mathematical Society Lecture Note Series Cambridge University Press, 2013, pp. 127–160 DOI: 10.1017/cbo9781139506748.005
  • [van15] Tom C. van der Zanden “Parameterized Complexity of Graph Constraint Logic” In Proceedings of IPEC 2015 43, LIPIcs Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2015, pp. 282–293 DOI: 10.4230/LIPIcs.IPEC.2015.282
  • [Wro18] Marcin Wrochna “Reconfiguration in Bounded Bandwidth and Treedepth” In Journal of Computer and System Sciences 93, 2018, pp. 1–10 DOI: 10.1016/j.jcss.2017.11.003