Next Article in Journal
Generalized Paxos Made Byzantine (and Less Complex)
Next Article in Special Issue
Special Issue on Reconfiguration Problems
Previous Article in Journal
An Auto-Adjustable Semi-Supervised Self-Training Algorithm
Previous Article in Special Issue
Introduction to Reconfiguration
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Complexity of Hamiltonian Cycle Reconfiguration

Department of Information Systems Creation, Faculty of Engineering, Kanagawa University, Rokkakubashi 3-27-1 Kanagawa-ku, Yokohama-shi, Kanagawa 221-8686, Japan
Algorithms 2018, 11(9), 140; https://doi.org/10.3390/a11090140
Submission received: 25 February 2018 / Revised: 17 August 2018 / Accepted: 14 September 2018 / Published: 17 September 2018
(This article belongs to the Special Issue Reconfiguration Problems)

Abstract

:
The Hamiltonian cycle reconfiguration problem asks, given two Hamiltonian cycles C 0 and C t of a graph G, whether there is a sequence of Hamiltonian cycles C 0 , C 1 , , C t such that C i can be obtained from C i 1 by a switch for each i with 1 i t , where a switch is the replacement of a pair of edges u v and w z on a Hamiltonian cycle with the edges u w and v z of G, given that u w and v z did not appear on the cycle. We show that the Hamiltonian cycle reconfiguration problem is PSPACE-complete, settling an open question posed by Ito et al. (2011) and van den Heuvel (2013). More precisely, we show that the Hamiltonian cycle reconfiguration problem is PSPACE-complete for chordal bipartite graphs, strongly chordal split graphs, and bipartite graphs with maximum degree 6. Bipartite permutation graphs form a proper subclass of chordal bipartite graphs, and unit interval graphs form a proper subclass of strongly chordal graphs. On the positive side, we show that, for any two Hamiltonian cycles of a bipartite permutation graph and a unit interval graph, there is a sequence of switches transforming one cycle to the other, and such a sequence can be obtained in linear time.

1. Introduction

A reconfiguration problem asks, given two feasible solutions of a combinatorial problem together with some transformation rules between the solutions, whether there is a step-by-step transformation from one solution to the other such that all intermediate states are also feasible. The reconfiguration problems have attracted much attention recently because of their applications as well as theoretical interest. See, for example, a survey [1] and references of [2,3].
In this paper, we study a reconfiguration problem for Hamiltonian cycles. A Hamiltonian cycle of a graph is a cycle that contains all the vertices of the graph. Given two Hamiltonian cycles C 0 and C t of a graph G, the Hamiltonian cycle reconfiguration problem asks whether there is a sequence of Hamiltonian cycles C 0 , C 1 , , C t such that C i and C i + 1 differ in two edges for each i with 0 i < t . Such a sequence of Hamiltonian cycles is called a reconfiguration sequence. The Hamiltonian cycle reconfiguration problem also can be defined in terms of the transformation rule, which is called switch (Switches are also used for sampling and counting perfect matchings [4,5] and transforming graphs with the same degree sequence ([6,7], p.46)). Let C be a Hamiltonian cycle of a graph G. A switch is the replacement of a pair of edges u v and w z on C with the edges u w and v z of G, given that u w and v z did not appear on C. The Hamiltonian cycle reconfiguration problem asks whether there is a sequence of switches transforming one cycle to the other such that all intermediate cycles are also Hamiltonian.
The complexity of the reconfiguration problem for Hamiltonian cycles has been implicitly posed as an open question by Ito et al. [8] (Precisely, they asked the complexity of the reconfiguration of the travelling salesman problem, which is a generalization of the Hamiltonian cycle problem) and revisited by van den Heuvel [1]. The Hamiltonian cycle problem, which asks whether a given graph has a Hamiltonian cycle, is one of the well-known NP-complete problems [9], but the complexity of its reconfiguration version still seems to be open.

1.1. Our Contribution

In this paper, we show that the Hamiltonian cycle reconfiguration problem is PSPACE-complete, even for chordal bipartite graphs, strongly chordal split graphs, and bipartite graphs with maximum degree 6. Our reduction for PSPACE-hardness follows from the reduction by Müller [10] for proving the NP-hardness of the Hamiltonian cycle problem for chordal bipartite graphs. However, while Müller shows a polynomial-time reduction from the satisfiability problem, we show a reduction from the nondeterministic constraint logic problem [11], which is used to show the PSPACE-hardness of some reconfiguration problems [11,12].
Unit interval graphs form a proper subclass of strongly chordal graphs, and bipartite permutation graphs form a proper subclass of chordal bipartite graphs (See [13] for example). A Hamiltonian cycle of a unit interval graph and a bipartite permutation graph can be obtained in linear time [14,15,16,17]. On the positive side, we show that, for any two Hamiltonian cycles of a unit interval graph and a bipartite permutation graph, there is a sequence of switches transforming one cycle to the other. Moreover, we show that such a sequence can be obtained in linear time. In order to show these results, we introduce the canonical Hamiltonian cycle (canonical cycle for short) of a unit interval graph and a bipartite permutation graph, using vertex ordering characterizations of these graphs [14,17]. We then show that each Hamiltonian cycle of a unit interval graph (resp. a bipartite permutation graph) can be transformed into the canonical cycle with at most n 2 switches (resp. at most n 3 switches), where n is the number of vertices of the graph. It follows that, for any two Hamiltonian cycles of a unit interval graph (resp. a bipartite permutation graph), there is a sequence of at most 2 n 4 switches (resp. at most 2 n 6 switches) from one cycle to the other.

1.2. Notation

In this paper, we will deal only with finite graphs having no loops and multiple edges. Unless stated otherwise, graphs are assumed to be undirected, but we also deal with directed graphs. We write u v for the undirected edge joining a vertex u and a vertex v, and we write ( u , v ) for the directed edge from u to v. For a graph G = ( V , E ) , we sometimes write V ( G ) for the vertex set V of G and write E ( G ) for the edge set E of G.
An independent set of a graph G = ( V , E ) is a subset S V such that u v E for any two vertices u , v S . A graph G is a bipartite graph if its vertex set V can be partitioned into two independent set U and W. The independent sets U and W are called color classes of G, and the pair ( U , W ) is called bipartition of G. We sometimes use the notation G = ( U , W , E ) for the bipartite graph with bipartition ( U , W ) .
An orientation of an undirected graph G = ( V , E ) is a graph obtained from G by orienting each edge in E, that is, replacing each edge u v E with either ( u , v ) or ( v , u ) . An oriented graph is an orientation of some graph. Notice that an oriented graph contains no pair of edges ( u , v ) and ( v , u ) for some vertices u , v . We will denote an orientation of a graph only by its edge set, since the vertex set is clear from the context.

2. PSPACE-Completeness

We can observe that the Hamiltonian cycle reconfiguration problem is in PSPACE ([8], Theorem 1). In this section, we show the reduction from the nondeterministic constraint logic problem, which is known to be PSPACE-complete [11], to the Hamiltonian cycle reconfiguration problem.

2.1. Nondeterministic Constraint Logic

Let G be a 3-regular graph with edge weights among { 1 , 2 } . A vertex of G is an AND vertex if exactly one incident edge has weight 2, and a vertex of G is an OR vertex if all the incident edges have weight 2. A graph G is a constraint graph if it consists of only AND vertices and OR vertices. An orientation F of G is legal if for every vertex v of G, the sum of weights of in-coming edges of v is at least 2. A legal move from a legal orientation is the reversal of a single edge that results in another legal orientation. Figure 1 illustrates all the possible orientations of edges incident to an AND vertex. We can also verify that all the possible legal move of an incident edge of the AND vertex are those depicted by the arrows in Figure 1. Given a constraint graph G and two legal orientation F 0 and F t of G, the nondeterministic constraint logic problem asks whether there is a sequence of legal orientations F 0 , F 1 , , F t such that F i is obtained from F i 1 by a legal move for each i with 1 i t . Such a sequence of legal orientations is called a reconfiguration sequence. The nondeterministic constraint logic problem is known to be PSPACE-complete even if the constraint graph is planar [11]. See [18] for more information on constraint logic.
For convenience of the reduction, we define a problem slightly different from the nondeterministic constraint logic problem. Let G be a bipartite graph with bipartition ( A , B ) such that every vertex of A has degree 3 and every vertex of B has degree 2 or 3. The graph G has edge weights among { 1 , 2 } such that for every vertex of A, exactly one incident edge has weight 2. An orientation F of G is legal if
  • for every vertex v A , the sum of weights of in-coming edges of v is at least 2, and
  • every vertex of B has one or two in-coming edges, but at most one vertex of B has two in-coming edges.
A legal move from a legal orientation is the reversal of a single edge that results in another legal orientation. Notice that, in the legal moves, the vertices of A behave in the same way as the AND vertices of the nondeterministic constraint logic problem, that is, as shown in Figure 1. Given such a bipartite graph G and two legal orientation F 0 and F t of G, the problem Π asks whether there is a sequence of legal orientations F 0 , F 1 , , F t such that F i is obtained from F i 1 by a legal move for each i with 1 i t . We further add a constraint to the instance of the problem Π so that every vertex of B has exactly one in-coming edge in F 0 and F t .
Lemma 1.
The problem Π is PSPACE-complete.
Proof. 
We can observe that the problem Π is in PSPACE ([8], Theorem 1). We thus show a polynomial-time reduction from the nondeterministic constraint logic problem. Let ( G , F 0 , F t ) be an instance of the problem, that is, G is a constraint graph, consisting of AND vertices and OR vertices, and F 0 and F t are two legal orientations of G. We construct an instance ( G , F 0 , F t ) of the problem Π such that ( G , F 0 , F t ) is a yes-instance if and only if ( G , F 0 , F t ) is a yes-instance.
Let G be the bipartite graph obtained from G by replacing each edge u v with two edges u w and w v so that u w and w v have the same weight as u v , where w is a newly added vertex. The bipartite graph G with bipartition ( A , B ) is obtained from G by replacing each OR vertex with a subgraph shown in Figure 2, where A consists of the AND vertices of G and the white points in the subgraphs (see Figure 2) while B consists of the newly added vertices of G and the gray points in the subgraphs. We can check that all the vertices of A are incident to one weight-2 edge and two weight-1 edges.
Let F be a legal orientation of G. We define a legal orientation F of G associated withF. Let F be the orientation of G obtained from F by replacing each edge ( u , v ) F with two edges ( u , w ) and ( w , v ) , where w is the newly added vertex. Let F be an orientation of G obtained from F by replacing each OR vertex with the subgraph in Figure 2 such that if L is directed inward (resp. outward) in F then the edges L 0 and L 1 and the weight-1 edges between them are directed inward (resp. outward) in F (and similarly for the edges R and D). The legal orientation F is obtained from F by reversing the direction of the edges incident to the OR vertices so that exactly one edge of { L 1 , R 1 , D 1 } is directed inward for each OR vertex. Notice that at least one edge of { L 1 , R 1 , D 1 } can be directed inward, since at least one edge of { L , R , D } is directed inward in F. We can see that F has no vertex of B having two in-coming edges. The legal orientations F 0 and F t are the orientations associated with F 0 and F t , respectively. This completes the construction of the instance ( G , F 0 , F t ) of the problem Π .
Assume that there is a reconfiguration sequence F 0 , F 1 , , F t from F 0 to F t . Let F i be a legal orientation of G associated with F i . If F i + 1 is obtained from F i by a legal move of an edge joining two AND vertices, we have a reconfiguration sequence from F i to F i + 1 . Suppose that F i + 1 is obtained by a legal move of an edge incident to an OR vertex. Let L, R, and D be the edges incident to the OR vertex. We assume without loss of generality that F i + 1 is obtained by a legal move of the edge L. When L is directed inward in F i , the edge L is directed outward in F i + 1 , and thus the edges R or D are directed inward in F i . Hence, in F i the edge R 1 or D 1 can be directed inward (see Figure 2). Therefore, the edges L 0 and L 1 together with the weight-1 edges between them can be directed outward to obtain F i + 1 . When L is directed outward in F i and inward in F i + 1 , in F i the edges L 0 and L 1 together with the weight-1 edges between them can be directed inward to obtain F i + 1 . Since there is a reconfiguration sequence from F i to F i + 1 for any i with 0 i < t , the instance ( G , F 0 , F t ) is a yes-instance if ( G , F 0 , F t ) is a yes-instance. Notice that, in the subgraph shown in Figure 2, if two edges of { L 0 , R 0 , D 0 } are directed outward, then the remaining edge must be directed inward. Thus, a reconfiguration sequence from F 0 to F t can be obtained from a reconfiguration sequence from F 0 to F t . It follows that the instance ( G , F 0 , F t ) is a yes-instance if ( G , F 0 , F t ) is a yes-instance.
Since the graph G and the legal orientations F 0 and F t can be obtained in polynomial time, we have the claim. □
We can further see from the proof of Lemma 1 that the problem Π is PSPACE-complete for planar graphs, since the nondeterministic constraint logic problem is PSPACE-complete even if the constraint graph is planar [11]. We can also see the following observation, which we will use in the proof of Lemma 2.
Proposition 1.
Let ( G , F 0 , F t ) be an instance of the problem Π with a reconfiguration sequence F 0 , F 1 , , F t from F 0 to F t . If i is even, then F i has no vertex of B having two in-coming edges, while F i has one vertex of B having two in-coming edges if otherwise. If a vertex b i B has two in-coming edges ( a i , b i ) and ( a i , b i ) in F i , then we can assume without loss of generality that F i is obtained from F i 1 by reversing the direction of the edge a i b i , while F i + 1 is obtained from F i by reversing the direction of the edge a i b i .
Proof. 
Let F i be a legal orientation such that every vertex of B has exactly one in-coming edge. Suppose that F i + 1 is obtained from F i by reversing the direction of an edge a i b i , where a i and b i are the vertices of A and B, respectively. Since all the vertices of B has one in-coming edge in F i , we have ( b i , a i ) F i and ( a i , b i ) F i + 1 . Now, b i has two in-coming edges in F i + 1 . Let ( a i , b i ) F i be the in-coming edge of b i in F i . If we reverse the direction of an edge other than a i b i or a i b i , then the orientation is no longer legal. Thus, we can reverse the direction of either a i b i or a i b i to obtain F i + 2 , in which every vertex of B has exactly one in-coming edge. However, if we reverse the direction of a i b i , then we have the same orientation as F i . Thus, we can assume without loss of generality that ( a i , b i ) F i + 1 and ( b i , a i ) F i + 2 . Now, we have the claim. □

2.2. Reduction

Let ( G , F 0 , F t ) be an instance of the problem Π . In this section, we construct a reduction graph H together with two Hamiltonian cycles C 0 and C t such that there is a reconfiguration sequence from F 0 to F t if and only if there is a reconfiguration sequence from C 0 to C t . That is, ( G , F 0 , F t ) is a yes-instance if and only if ( H , C 0 , C t ) is a yes-instance of the Hamiltonian cycle reconfiguration problem.
We use three types of gadgets corresponding to the vertices in A, the vertices in B, and the edges of G. A gadget for a vertex in A and a gadget for an edge of G is shown in Figure 3a,b respectively. Double lines in the figures denote edges with ears, where an ear of an edge u w is a path of length 3 joining u and w. Recall that, in the legal moves, the vertices in A behave in the same way as the AND vertices. We thus refer to the gadgets for the vertices in A as AND gadgets. Let b be a vertex in B of degree k, and recall that k is 2 or 3. A gadget for b is a cycle ( u 0 , w 0 , u 1 , w 1 , , u k 1 , w k 1 ) of length 2 k such that the edge w i u i + 1 has a ear for each i with 0 i < k (indices are modulo k).
We construct the reduction graph H from G as follows: (1) Let a be a vertex in A, and let e l , e r , e d be the edges of G incident to a such that e l and e r have weight 1 and e d has weight 2. We identify the vertices l u and l w of the gadget for a with the vertices x u and x w of the gadget for e l , respectively. Similarly, we identify the vertices r u and r w of the gadget for a with the vertices x u and x w of the gadget for e r , respectively. Moreover, we identify the vertices d u and d w of the gadget for a with the vertices x u and x w of the gadget for e d , respectively. (2) Let b be a vertex in B of degree k, and let e 0 , e 1 , , e k 1 be the edges of G incident to b. We identify, for each i with 0 i < k , the vertices u i and w i of the gadget for b with the vertices y u and y w of the gadget for e i , respectively. (3) We finally concatenate the gadgets for the vertices in A cyclically using edges with ears joining the vertices c u and c w of the gadgets.
Before describing the construction of the Hamiltonian cycles C 0 and C t , we consider the possible configurations of a Hamiltonian cycle of the reduction graph H passing through the gadgets. We will show that all the possible configurations in an AND gadget and an edge gadget are shown in Figure 4a,b, respectively. We can also verify that all the possible transformations of Hamiltonian cycles by a single switch occurred in a gadget are those depicted by the arrows in the figures. Let C be a Hamiltonian cycle. We first consider the configurations of C in an AND gadget. The Hamiltonian cycle C passes through all the edges on the ears, since interior vertices of an ear has degree 2. Thus, C passes through any of the edges c u d w , c u c w , c u r w , or c u l w . We also have that C does not pass through the edges l u l w , r u r w , or d u d w , since when we construct the reduction graph H the vertices l u , l w , r u , r w , d u and d w are identified with the vertices of the edge gadgets incident to the edges with ears. Suppose that C passes through c u d w . Since C cannot pass through d u d w , it passes through d u c w . Since C cannot pass through c u l w , it passes through l u l w . Since C cannot pass through l u r w , it passes through r u r w , and we have the configuration S 0 in Figure 4a. Suppose that C passes through c u c w . Since C cannot pass through c u d w , it passes through d u d w . Since C cannot pass through c u l w , it passes through l u l w . Since C cannot pass through l u r w , it passes through r u r w , and we have the configuration S 1 in Figure 4a. Suppose that C passes through c u r w . Since C cannot pass through c u d w , it passes through d u d w . Since C cannot pass through c u l w , it passes through l u l w . Since C cannot pass through r u r w , it passes through r u c w , and we have the configuration S 3 in Figure 4a. Suppose that C passes through c u l w . Since C cannot pass through c u d w , it passes through d u d w . Since C cannot pass through l u l w , it passes through either l u r w or l u c w . If C passes through l u r w , then it passes through r u c w since it cannot pass through r u r w , and we have the configuration S 4 in Figure 4a. If C passes through l u c w , then it passes through r u r w since it cannot pass through l u r w , and we have the configuration S 2 in Figure 4a. Therefore, all the possible configurations in an AND gadget are shown in Figure 4a. We next consider the configurations of the Hamiltonian cycle C in an edge gadget. Since C passes through all the edges on the ears, it passes through either x y or x y . If C passes through x y then it passes through x y , while if C passes through x y , then it passes through x y . We also have that C does not pass through the edges x u x w or y u y w , since when we construct the reduction graph H the vertices x u , x w , y u , and y w are identified with the vertices of the AND gadgets incident to the edges with ears. Therefore, all the possible configurations in an edge gadget are shown in Figure 4b.
Let v be a vertex of A. We next make a correspondence between the possible configurations of a Hamiltonian cycle in the gadget for v and the possible orientations of the edges incident to v such that the configuration S i in Figure 4a corresponds to the orientation f i in Figure 1 for each i { 0 , 1 , , 4 } . We also make a correspondence between switches occurred in the gadget for v and legal moves of the edges incident to v such that switching the configuration from S i to S j in the gadget for v corresponds to the legal move from f i to f j of the edges of v, where i , j { 0 , 1 , , 4 } .
We define a legal orientation F of G associated with a Hamiltonian cycle C of H so that for each vertex v A , the edges incident to v are oriented according to the configuration of C in the gadget for v. That is, the edges of v are oriented as f i in F if the configuration of C in the gadget for v looks like S i (see Figure 1 and Figure 4a). Notice that a Hamiltonian cycle C of H has exactly one legal orientation of G associated with C, but a legal orientation F may have some Hamiltonian cycles that are associated with F, due to the two possible configurations in an edge gadget shown in Figure 4b.
Now, we construct the Hamiltonian cycle C 0 from F 0 as follows, and C t is constructed similarly from F t . (1) For each vertex v A , we take the configuration in the gadget for v according to the orientations of the edges incident to v. That is, we take the configuration S i in Figure 4a for the gadget for v if the edges of v are oriented as f i in Figure 1. (2) We choose the configuration in each edge gadget arbitrarily among those in Figure 4b. (3) The remaining parts are uniquely determined, since any Hamiltonian cycle pass through all the edges on the ears. Figure 5b illustrates the Hamiltonian cycle constructed in this way from the legal orientation in Figure 5a. Recall that every vertex of B has exactly one in-coming edge in F 0 and F t . This guarantees that C 0 and C t are Hamiltonian. This completes the construction of the instance ( H , C 0 , C t ) of the Hamiltonian cycle reconfiguration problem. We remark two facts, which we use in the proof of the following lemma. First, we can see that C 0 and C t are associated with F 0 and F t , respectively. Second, if every vertex of B has exactly one in-coming edge in a legal orientation F, then for any two Hamiltonian cycles that are associated with F t , there is a reconfiguration sequence from one to the other, in which the switches occur only in edge gadgets.
Lemma 2.
The instance ( G , F 0 , F t ) of the problem Π is a yes-instance if and only if ( H , C 0 , C t ) of the Hamiltonian cycle reconfiguration problem is a yes-instance.
Proof. 
We first prove the if direction. Assume that there is a reconfiguration sequence C 0 , C 1 , , C t from C 0 to C t . Let F i be the legal orientation of G associated with C i (Recall that a Hamiltonian cycle C of H has exactly one legal orientation associated with C). Notice that F i = F i + 1 if and only if C i + 1 is obtained from C i by a switch occurred in an edge gadget. When F i = F i + 1 for some i with 0 i < t , we remove F i + 1 from the sequence F 0 , F 1 , , F t to obtain the reconfiguration sequence from F 0 to F t .
We next prove the only-if direction. Assume that there is a reconfiguration sequence F 0 , F 1 , , F t from F 0 to F t . Recall that, for any two Hamiltonian cycles that are associated with F t , there is a reconfiguration sequence from one to the other, since every vertex of B has exactly one in-coming edge in F t . Thus, it suffices to show that for each Hamiltonian cycle C i with 0 i < t , there is a Hamiltonian cycle C i + 1 together with a reconfiguration sequence from C i to C i + 1 , where C i and C i + 1 are Hamiltonian cycles associated with F i and F i + 1 , respectively. Suppose that F i + 1 is obtained from F i by reversing the direction of an edge a i b i , where a i and b i are the vertices of A and B, respectively.
We first consider the case when ( b i , a i ) F i and ( a i , b i ) F i + 1 . We have from Proposition 1 that F i has no vertex of B having two in-coming edges. Let C be a graph obtained from C i by switching the configuration in the gadget for a i according to the legal move. If C is a Hamiltonian cycle, the claim holds. However, there is some possibility that C is disconnected. (In Figure 5b, for example, when we replace the configuration in the gadget for a 2 from S 3 to S 4 , we have two cycles, while, in Figure 5a, this replacement corresponds to the reversal of the edge ( b 2 , a 2 ) that results in another legal orientation). In this case, we use two steps as follows: Let C be a graph obtained from C i by switching the configuration in the edge gadget for a i b i as shown in Figure 4b. Let C be a graph obtained from C by switching the configuration in the gadget for a i according to the legal move. We show that C and C are Hamiltonian cycles. Suppose that C is obtained from C i by switching edges v 1 v 2 and v 3 v 4 with edges v 1 v 3 and v 2 v 4 . Suppose also that C is obtained from C by switching edges v 5 v 6 and v 7 v 8 with edges v 5 v 7 and v 6 v 8 . Since C is disconnected while C i is Hamiltonian, the vertices v 1 , v 2 , v 3 , and v 4 appear on C i as C i = ( v 1 , v 2 , , v 4 , v 3 , ) . Since ( b i , a i ) F i and the switch occurs in the edge gadget, we can assume without loss of generality that the vertices v 5 , v 6 , v 7 , and v 8 appear on C i as
C i = ( v 1 , v 2 , , v 5 , v 6 , , v 4 , v 3 , , v 7 , v 8 , ) .
Thus, C and C are the following Hamiltonian cycles.
C = ( v 1 , v 2 , , v 5 , v 7 , , v 3 , v 4 , , v 6 , v 8 , ) , C = ( v 1 , v 3 , , v 7 , v 5 , , v 2 , v 4 , , v 6 , v 8 , ) .
We can see that C is also associated with F i since the switch occurs in an edge gadget. Hence, C is associated with F i + 1 , and the claim holds.
We then consider the case when ( a i , b i ) F i and ( b i , a i ) F i + 1 . Let C be a graph obtained from C i by switching the configuration in the gadget for a i according to the legal move. We show that C is the Hamiltonian cycle. We have from Proposition 1 that there is the vertex a i A with a i a i such that ( a i , b i ) F i while ( b i , a i ) F i 1 . Let C be the Hamiltonian cycle associated with F i 1 from which C i is obtained by a single switch. We can see that this switch occurs in the gadget for a i . Suppose that C is obtained from C i by switching edges v 1 v 2 and v 3 v 4 with edges v 1 v 3 and v 2 v 4 . Suppose also that C i is obtained from C by switching edges v 5 v 6 and v 7 v 8 with edges v 5 v 7 and v 6 v 8 . Since ( a i , b i ) is the only in-coming edge of b i in F i 1 , the vertices v 1 , v 2 , v 3 , and v 4 appear on C as C = ( v 1 , v 2 , , v 4 , v 3 , ) . Since ( b i , a i ) F i 1 , we can assume without loss of generality that the vertices v 5 and v 6 appear on C as C = ( v 1 , v 2 , , v 5 , v 6 , , v 4 , v 3 , ) . Since C i is also a Hamiltonian cycle, the vertices v 7 and v 8 appear on C as
C = ( v 1 , v 2 , , v 5 , v 6 , , v 4 , v 3 , , v 7 , v 8 , ) .
Thus, C i and C are the following Hamiltonian cycles.
C i = ( v 1 , v 2 , , v 5 , v 7 , , v 3 , v 4 , , v 6 , v 8 , ) , C = ( v 1 , v 3 , , v 7 , v 5 , , v 2 , v 4 , , v 6 , v 8 , ) .
Since C is associated with F i + 1 , the claim holds. □
Obviously, the reduction graph H is bipartite. We can easily check that H has maximum degree 6 (The vertices c v and c w of each AND gadget have degree 6). Since the instance ( H , C 0 , C t ) can be constructed from ( G , F 0 , F t ) in polynomial time, we have the following.
Theorem 1.
The Hamiltonian cycle reconfiguration problem is PSPACE-complete for bipartite graphs with maximum degree 6.
A bipartite graph is chordal bipartite if each cycle in the graph of length greater than 4 has a chord, that is, an edge joining two vertices that are not consecutive on the cycle. Let D be the vertices of the reduction graph H incident with two edges having ears. We construct a graph H from H by adding edges u v for all vertices u D and all vertices v of H that is in the color class different from u and is not an interior vertex of any ear. It is obvious that H is bipartite. Suppose that H has a chordless cycle Z of length greater than 4. Clearly, Z has no interior vertices of any ear. We also have that Z has no vertices in D, for otherwise Z would have a chord. Thus, Z is a cycle in a single AND gadget or a single edge gadget, but these gadgets contains no chordless cycle of length greater than 4. Therefore, H is a chordal bipartite graph.
Since every added edges in H is incident to a vertex in D, any Hamiltonian cycle does not pass through the added edges. Thus, there is a reconfiguration sequence from C 0 to C t in H if and only if there is a reconfiguration sequence from C 0 to C t in H . Now, we have the following.
Theorem 2.
The Hamiltonian cycle reconfiguration problem is PSPACE-complete for chordal bipartite graphs.

2.3. Strongly Chordal Split Graphs

A graph is chordal if each cycle in the graph of length greater than 3 has a chord. A clique of G = ( V , E ) is a subset S V such that u v E for any two vertices u , v S . A graph is a split graph if its vertex set can be partitioned into a clique and an independent set. A chordal graph is strongly chordal [19] if each cycle of even length at least 6 has an odd chord, that is, an edge joining two vertices having odd distance on the cycle. Strongly chordal graphs are closely related to chordal bipartite graphs. Let G = ( U , W , E ) be a bipartite graph. We define a split graph S ( G ) = ( U W , E E U ) , where E U = { u u : u , u U } . It is known that a bipartite graph G is a chordal bipartite graph if and only if S ( G ) is strongly chordal. See ([20,21], Lemma 12.4).
Let G = ( U , W , E ) be a bipartite graph with | U | = | W | . Obviously, any Hamiltonian cycle of S ( G ) does not pass through the edges in E U . Thus, there is a reconfiguration sequence from a Hamiltonian cycle C 0 of G to another Hamiltonian cycle C t of G if and only if there is a reconfiguration sequence from C 0 to C t in S ( G ) . Now, we have the following from Theorem 2.
Theorem 3.
The Hamiltonian cycle reconfiguration problem is PSPACE-complete for strongly chordal split graphs.

3. Canonical Hamiltonian Cycles

Unit interval graphs form a proper subclass of strongly chordal graphs, and bipartite permutation graphs form a proper subclass of chordal bipartite graphs (See [13], for example). In this section, we introduce the canonical Hamiltonian cycle (canonical cycle for short) of a unit interval graph and the canonical cycle of a bipartite permutation graph. We then show that each Hamiltonian cycle of a unit interval graph and a bipartite permutation graph can be transformed into the canonical cycle by a sequence of switches.

3.1. Unit Interval Graphs

A graph is an interval graph if each vertex can be assigned an interval on the real line so that two vertices are adjacent if and only if their assigned intervals intersect. An interval graph is a unit interval graph if each vertex can be assigned an interval of unit length. There are some linear-time algorithms to find a Hamiltonian cycle of a unit interval graph [14,15,16]. We follow the algorithm of Chen et al. [14], which uses the following vertex ordering characterization.
Theorem 4
([14,22]). A consecutive ordering of a graph G is a sequence of vertices v 0 , v 1 , , v n 1 of G such that for any three vertices v i , v j , v k with i < j < k , if v i v k E ( G ) then v i v j , v j v k E ( G ) . A graph is a unit interval graph if and only if it has a consecutive ordering. Moreover, a consecutive ordering of a unit interval graph can be obtained in linear time.
Notice that, in the consecutive ordering of a graph G, the vertices in N [ v ] are consecutive for every vertex v V ( G ) , where N [ v ] = { v } { u : u v E ( G ) } .
It is known that a unit interval graph has a Hamiltonian cycle if and only if it is biconnected [14,15,16]. Biconnected unit interval graphs are characterized as follows.
Theorem 5
([14]). A unit interval graph G with a consecutive ordering v 0 , v 1 , , v n 1 is biconnected if and only if v i v j E ( G ) for every i and j with 1 | i j | 2 .
We can observe that such a unit interval graph G has a Hamiltonian cycle consisting of the edges v 0 v 1 , v n 2 v n 1 , and v i v i + 2 for every i with 0 i n 3 [14]; we define it as the canonical Hamiltonian cycle (canonical cycle for short) of G.
Theorem 6.
Let G be a unit interval graph. For each Hamiltonian cycle of G, there is a sequence of at most n 2 switches transforming it to the canonical cycle of G.
The following is a useful fact about consecutive orderings.
Lemma 3.
Let v i , v j , v k , v h be four vertices of G with i < j < k and i < h . If v i v k , v j v h E ( G ) , then v i v j , v k v h E ( G ) .
Proof. 
We have that v i v k implies v i v j E ( G ) by the definition of consecutive orderings. If h < k , then v i v k E ( G ) and i < h implies v k v h E ( G ) . If k < h , then v j v h E ( G ) implies v k v h E ( G ) . □
Proof of Theorem 6.
We assume n 4 , since the claim trivially holds when n 3 . Let G have a consecutive ordering v 0 , v 1 , , v n 1 , and let C t be the canonical cycle of G. Let C 0 be a Hamiltonian cycle of G. It suffices to show a sequence of Hamiltonian cycles C 0 , C 1 , , C n 2 that satisfy the following conditions for each i with 1 i n 2 :
  • C i contains the edges on C t induced by { v 0 , v 1 , , v i } ,
  • C i is obtained from C i 1 by at most one switch.
Notice that C n 2 is the canonical cycle C t by the following reason: since C n 2 is Hamiltonian, v n 3 v n 2 E ( C n 2 ) ; we thus have v n 3 v n 1 , v n 2 v n 1 E ( C n 2 ) .
We first construct C 1 from C 0 . When v 0 v 1 E ( C 0 ) , we define C 0 as C 1 . We then consider the case when v 0 v 1 E ( C 0 ) . Let v j , v k , v h , v l be the vertices of G such that
C 0 = ( v 0 , v j , , v k , v 1 , v h , , v l ) .
Note that there is some possibility that v j = v k or v h = v l . It is clear that j , k , h , l 2 . Since v 0 v j , v 1 v h E ( G ) , we have v 0 v 1 , v j v h E ( G ) by Lemma 3. We define that C 1 is the Hamiltonian cycle obtained from C 0 by switching the edges v 0 v j and v 1 v h with the edges v 0 v 1 and v j v h , that is,
C 1 = ( v 0 , v 1 , v k , , v j , v h , , v l ) .
We now construct C i from C i 1 with i 2 . Recall that C i 1 contains the edges on C t induced by { v 0 , , v i 2 , v i 1 } . When v i 2 v i E ( C i 1 ) , we define C i 1 as C i . We then consider the case when v i 2 v i E ( C i 1 ) . Let v j , v k , v h be the vertices of G such that
C i 1 = ( v i 1 , , v i 2 , v j , , v k , v i , v h , ) .
Note that there is some possibility that v j = v k or v i 1 = v h . We have j > i 2 by the definition of C i 1 . Since C i 1 is Hamiltonian, v i 2 v i 1 E ( C i 1 ) , and thus j i 1 . We also have j > i from v i 2 v i E ( C i 1 ) . Moreover, we have k , h > i 2 by the definition of C i 1 and v i 2 v i E ( C i 1 ) . Since v i 2 v j , v i v h E ( G ) , we have v i 2 v i , v j v h E ( G ) by Lemma 3. We define that C i is the Hamiltonian cycle obtained from C i 1 by switching the edges v i 2 v j and v i v h with the edges v i 2 v i and v j v h , that is,
C i = ( v i 1 , , v i 2 , v i , v k , , v j , v h , ) .
Therefore, we have the sequence of at most n 2 switches transforming C 0 into the canonical cycle C t . □
We also have the following from Theorem 6.
Corollary 1.
For each Hamiltonian cycle C 0 of a unit interval graph G, we can compute a sequence of switches transforming C 0 to the canonical cycle of G in O ( n ) time, provided that a consecutive ordering of G is given.
Proof. 
The algorithm follows the steps of the proof of Theorem 6. We analyze the implementation details and the running time. We store C 0 in a circular doubly linked list L as a sequence of vertices; we store the consecutive ordering v 0 , v 1 , , v n 1 in an array A, in which the element of position i has a pointer to the vertex v i in L for each i with 0 i < n . In order to compute the Hamiltonian cycle C 1 from C 0 , it suffices to take the vertices v 0 , v 1 , v j , v h in L, where v j and v h is the successor or the predecessor of v 0 and v 1 , respectively. Similarly in order to compute C i from C i 1 with i 2 , it suffices to take the vertices v i 2 , v i , v j , v h in L, where v j and v h is the successor or the predecessor of v i 2 and v i , respectively. Since one iteration takes a constant time, we have the claim. □
Now, we have the following from Theorem 6 and Corollary 1.
Corollary 2.
For any two Hamiltonian cycles of a unit interval graph, there is a sequence of at most 2 n 4 switches transforming one cycle to the other. Moreover, we can compute such a sequence in O ( n ) time, provided that a consecutive ordering of G is given.

3.2. Bipartite Permutation Graphs

A graph G with the vertex set V ( G ) = { v 1 , v 2 , , v n } is a permutation graph if there is a permutation π on { 1 , 2 , , n } such that v i v j E ( G ) if and only if ( i j ) ( π ( i ) π ( j ) ) < 0 for every i , j { 1 , 2 , , n } . A permutation graph is a bipartite permutation graph [17] if it is bipartite. A Hamiltonian cycle of a bipartite permutation graph can be obtained in linear time [17]. We follow this algorithm, which uses the following vertex ordering characterization.
Theorem 7
([17]). A strong ordering of a bipartite graph G = ( U , W , E ) is a pair of total orderings u 0 , u 1 , , u | U | 1 of U and w 0 , w 1 , , w | W | 1 of W such that for every i , j , k , h with 0 i < j < | U | and 0 k < h < | W | , if u i w h E and u j w k E then u i w k E and u j w h E . A bipartite graph is a bipartite permutation graph if and only if it has a strong ordering. Moreover, a strong ordering of a bipartite permutation graph can be obtained in linear time.
A bipartite graph G = ( U , W , E ) is balanced if | U | = | W | . Notice that, if a bipartite permutation graph G has a Hamiltonian cycle, then G is biconnected and balanced with | U | = | W | 2 , but the converse does not hold. See Figure 6 for example. Bipartite permutation graphs having a Hamiltonian cycle are characterized as follows.
Theorem 8
([17]). Let G = ( U , W , E ) be a bipartite permutation graph with | U | = | W | = p 2 , and let G have a strong ordering u 0 , u 1 , , u p 1 of U and w 0 , w 1 , , w p 1 of W. The graph G has a Hamiltonian cycle if and only if the vertices u i , w i , u i + 1 , w i + 1 form a cycle of length 4 for every i with 0 i p 2 .
We can observe that such a bipartite permutation graph G has a Hamiltonian cycle consisting of the edges u 0 w 0 , u p 1 w p 1 , u i w i + 1 , and u i + 1 w i for every i with 0 i p 2 [17]; we define it as the canonical Hamiltonian cycle (canonical cycle for short) of G.
Theorem 9.
Let G = ( U , W , E ) be a bipartite permutation graph with | U | = | W | = p 2 . For each Hamiltonian cycle of G, there is a sequence of at most n 3 switches transforming it to the canonical cycle of G.
Proof. 
We assume p 3 , since the claim trivially holds when p 2 . Let G have a strong ordering u 0 , u 1 , , u p 1 of U and w 0 , w 1 , , w p 1 of W, and let C t be the canonical cycle of G. Let C 0 be a Hamiltonian cycle of G. It suffices to show a sequence of Hamiltonian cycles C 0 , C 1 , , C n 3 that satisfy the following conditions for each i with 1 i n 3 :
  • C i contains the edges on C t induced by { v 0 , v 1 , , v i } , where v 0 = u 0 , v 1 = w 0 , v 2 = u 1 , v 3 = w 1 , , v n 2 = u p 1 , v n 1 = w p 1 ;
  • C i is obtained from C i 1 by at most one switch.
Notice that C n 3 is the canonical cycle C t by the following reason: since C n 3 is Hamiltonian, u p 2 w p 2 E ( C n 3 ) ; we thus have u p 2 w p 1 , u p 1 w p 2 , u p 1 w p 1 E ( C n 3 ) .
We first construct C 1 from C 0 . When u 0 w 0 E ( C 0 ) , we define C 0 as C 1 . We then consider the case when u 0 w 0 E ( C 0 ) . Let w j , u k , u h , w l be the vertices of G such that
C 0 = ( u 0 , w j , , u k , w 0 , u h , , w l ) .
It is clear that j , k , h , l 0 . Since u 0 w j , u h w 0 E ( G ) , we have u 0 w 0 , u h w j E ( G ) by the definition of strong orderings. We define that C 1 is the Hamiltonian cycle obtained from C 0 by switching the edges u 0 w j and u h w 0 with the edges u 0 w 0 and u h w j , that is,
C 1 = ( u 0 , w 0 , u k , , w j , u h , , w l ) .
We next construct C i from C i 1 with i = 2 q 2 . Recall that C i 1 contains the edges on C t induced by { u 0 , , u q 1 , w q 1 } . When u q w q 1 E ( C i 1 ) , we define C i 1 as C i . We then consider the case when u q w q 1 E ( C i 1 ) . Let u j , w k , w h be the vertices of G such that
C i 1 = ( u q 1 , , w q 1 , u j , , w k , u q , w h , ) .
We have j > q 2 by the definition of C i 1 . Since C i 1 is Hamiltonian, u q 1 w q 1 E ( C i 1 ) , and thus j q 1 . We also have j > q from u q w q 1 E ( C i 1 ) . We have k , h > q 2 by the definition of C i 1 . Since u q w q 1 E ( C i 1 ) , we have k , h q 1 , and thus k , h > q 1 . Since u q w h , u j w q 1 E ( G ) , we have u q w q 1 , u j w h E ( G ) by the definition of strong orderings. We define that C i is the Hamiltonian cycle obtained from C i 1 by switching the edges u q w h and u j w q 1 with the edges u q w q 1 and u j w h , that is,
C i = ( u q 1 , , w q 1 , u q , w k , , u j , w h , ) .
We finally construct C i from C i 1 with i = 2 q + 1 3 . Recall that C i 1 contains the edges on C t induced by { u 0 , , u q 1 , w q 1 , u q } , When u q 1 w q E ( C i 1 ) , we define C i 1 as C i . We then consider the case when u q 1 w q E ( C i 1 ) . Let w j , u k , u h be the vertices of G such that
C i 1 = ( u q , w q 1 , , u q 1 , w j , , u k , w q , u h , ) .
We have j > q 1 by the definition of C i 1 . Since u q 1 w q E ( C i 1 ) , we have j > q . We also have k , h > q 2 by the definition of C i 1 . Since u q 1 w q E ( C i 1 ) , we have k , h q 1 , and thus k , h > q 1 . Since u q 1 w j , u h w q E ( G ) , we have u q 1 w q , u h w j E ( G ) by the definition of strong orderings. We define that C i is the Hamiltonian cycle obtained from C i 1 by switching the edges u q 1 w j and u h w q with the edges u q 1 w q and u h w j , that is,
C i = ( u q , w q 1 , , u q 1 , w q , u k , , w j , u h , ) .
Therefore, we have the sequence of at most n 3 switches transforming C 0 into the canonical cycle C t . □
We also have the following from Theorem 9.
Corollary 3.
For each Hamiltonian cycle of a bipartite permutation graph G, we can compute a sequence of switches transforming it to the canonical cycle of G in O ( n ) time, provided that a strong ordering of G is given.
Proof. 
The proof is similar to that of Corollary 1, and is omitted. □
Now, we have the following from Theorem 9 and Corollary 3.
Corollary 4.
For any two Hamiltonian cycles of a bipartite permutation graph, there is a sequence of at most 2 n 6 switches transforming one cycle to the other. Moreover, we can compute such a sequence in O ( n ) time, provided that a strong ordering of G is given.

Funding

This research received no external funding.

Acknowledgments

We are grateful to the reviewers for careful reading and helpful comments.

Conflicts of Interest

The author declares no conflict of interest.

References

  1. Van den Heuvel, J. The complexity of change. In Surveys in Combinatorics 2013; Blackburn, S.R., Gerke, S., Wildon, M., Eds.; London Mathematical Society Lecture Note Series; Cambridge University Press: Cambridge, UK, 2013; Volume 409, pp. 127–160. [Google Scholar]
  2. Haddadan, A.; Ito, T.; Mouawad, A.E.; Nishimura, N.; Ono, H.; Suzuki, A.; Tebbal, Y. The complexity of dominating set reconfiguration. Theor. Comput. Sci. 2016, 651, 37–49. [Google Scholar] [CrossRef] [Green Version]
  3. Lokshtanov, D.; Mouawad, A.E. The complexity of independent set reconfiguration on bipartite graphs. In Proceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2018), New Orleans, LA, USA, 7–10 January 2018; pp. 185–195. [Google Scholar]
  4. Diaconis, P.; Graham, R.; Holmes, S.P. Statistical problems involving permutations with restricted positions. In State of the Art in Probability and Statistics; de Gunst, M., Klaasen, C., van der Vaart, A., Eds.; Lecture Notes–Monograph Series; Institute of Mathematical Statistics: Bethesda, MD, USA, 2001; Volume 36, pp. 195–222. [Google Scholar]
  5. Dyer, M.E.; Jerrum, M.; Müller, H. On the Switch Markov Chain for Perfect Matchings. J. ACM 2017, 64, 12:1–12:33. [Google Scholar] [CrossRef]
  6. Bereg, S.; Ito, H. Transforming Graphs with the Same Graphic Sequence. J. Inf. Process. 2017, 25, 627–633. [Google Scholar] [CrossRef] [Green Version]
  7. West, D.B. Introduction to Graph Theory, 2nd ed.; Prentice Hall: Upper Saddle River, NJ, USA, 2000. [Google Scholar]
  8. Ito, T.; Demaine, E.D.; Harvey, N.J.A.; Papadimitriou, C.H.; Sideri, M.; Uehara, R.; Uno, Y. On the complexity of reconfiguration problems. Theor. Comput. Sci. 2011, 412, 1054–1065. [Google Scholar] [CrossRef] [Green Version]
  9. Garey, M.R.; Johnson, D.S. Computers and Intractability: A Guide to the Theory of NP-Completeness; W. H. Freeman & Co.: New York, NY, USA, 1979. [Google Scholar]
  10. Müller, H. Hamiltonian circuits in chordal bipartite graphs. Discr. Math. 1996, 156, 291–298. [Google Scholar] [CrossRef]
  11. Hearn, R.A.; Demaine, E.D. PSPACE-completeness of sliding-block puzzles and other problems through the nondeterministic constraint logic model of computation. Theor. Comput. Sci. 2005, 343, 72–96. [Google Scholar] [CrossRef] [Green Version]
  12. Osawa, H.; Suzuki, A.; Ito, T.; Zhou, X. The Complexity of (List) Edge-Coloring Reconfiguration Problem. IEICE Trans. 2018, 101-A, 232–238. [Google Scholar] [CrossRef]
  13. Brandstädt, A.; Le, V.B.; Spinrad, J.P. Graph Classes: A Survey; Society for Industrial and Applied Mathematics: Philadelphia, PA, USA, 1999. [Google Scholar]
  14. Chen, C.; Chang, C.; Chang, G.J. Proper interval graphs and the guard problem. Discr. Math. 1997, 170, 223–230. [Google Scholar] [CrossRef]
  15. Ibarra, L. A simple algorithm to find Hamiltonian cycles in proper interval graphs. Inf. Process. Lett. 2009, 109, 1105–1108. [Google Scholar] [CrossRef]
  16. Panda, B.S.; Das, S.K. A linear time recognition algorithm for proper interval graphs. Inf. Process. Lett. 2003, 87, 153–161. [Google Scholar] [CrossRef]
  17. Spinrad, J.P.; Brandstädt, A.; Stewart, L. Bipartite permutation graphs. Discrete Appl. Math. 1987, 18, 279–292. [Google Scholar] [CrossRef]
  18. Hearn, R.A.; Demaine, E.D. Games, Puzzles and Computation; A. K. Peters Ltd.: Natick, MA, USA, 2009. [Google Scholar]
  19. Farber, M. Characterizations of strongly chordal graphs. Discr. Math. 1983, 43, 173–189. [Google Scholar] [CrossRef]
  20. Dahlhaus, E. Chordale Graphen im besonderen Hinblick auf parallele Algorithmen. Habilitation Thesis, University of Bonn, Bonn, Germany, 1991. (In German). [Google Scholar]
  21. Spinrad, J.P. Efficient Graph Representations: Fields Institute Monographs; American Mathematical Society: Providence, RI, USA, 2003; Volume 19. [Google Scholar]
  22. Looges, P.J.; Olariu, S. Optimal greedy algorithms for indifference graphs. Comput. Math. Appl. 1993, 25, 15–25. [Google Scholar] [CrossRef]
Figure 1. All the possible orientations of edges incident to an AND vertex, where (blue) thick arrows denote the edges with weight 2, and (red) thin arrows denote the edges with weight 1. Each dotted circle represents a possible orientation of the edges, and two circles are joined by an arrow if one is obtained from the other by reversing the direction of a single edge.
Figure 1. All the possible orientations of edges incident to an AND vertex, where (blue) thick arrows denote the edges with weight 2, and (red) thin arrows denote the edges with weight 1. Each dotted circle represents a possible orientation of the edges, and two circles are joined by an arrow if one is obtained from the other by reversing the direction of a single edge.
Algorithms 11 00140 g001
Figure 2. The reduction from the nondeterministic constraint logic problem to the problem Π . White points denote the vertices of A, and gray points denote the vertices of B. Thick (blue) lines denote the edges with weight 2, and thin (red) lines denote the edges with weight 1.
Figure 2. The reduction from the nondeterministic constraint logic problem to the problem Π . White points denote the vertices of A, and gray points denote the vertices of B. Thick (blue) lines denote the edges with weight 2, and thin (red) lines denote the edges with weight 1.
Algorithms 11 00140 g002
Figure 3. Gadgets. Double lines denote edges with ears. (a) an AND gadget; (b) an edge gadget.
Figure 3. Gadgets. Double lines denote edges with ears. (a) an AND gadget; (b) an edge gadget.
Algorithms 11 00140 g003
Figure 4. All the possible configurations of a Hamiltonian cycle passing through gadgets. The edges on the cycle are indicated by thick lines, but the ears are omitted; the edges out of the cycle are indicated by dotted lines. Each dotted square represents a possible configuration, and two squares are joined by an arrow if one is obtained from the other by a single switch.
Figure 4. All the possible configurations of a Hamiltonian cycle passing through gadgets. The edges on the cycle are indicated by thick lines, but the ears are omitted; the edges out of the cycle are indicated by dotted lines. Each dotted square represents a possible configuration, and two squares are joined by an arrow if one is obtained from the other by a single switch.
Algorithms 11 00140 g004
Figure 5. (a) a legal orientation of the problem Π . White points denote the vertices of A, and gray points denote the vertices of B. Thick (blue) lines denote the edges with weight 2, and thin (red) lines denote the edges with weight 1; (b) the Hamiltonian cycle obtained from the legal orientation in Figure 5a. We take the configuration S 3 for the gadget for a 2 , since the edges of a 2 are oriented as f 3 in Figure 5a. Notice that, when we replace the configuration from S 3 to S 4 , we have two cycles.
Figure 5. (a) a legal orientation of the problem Π . White points denote the vertices of A, and gray points denote the vertices of B. Thick (blue) lines denote the edges with weight 2, and thin (red) lines denote the edges with weight 1; (b) the Hamiltonian cycle obtained from the legal orientation in Figure 5a. We take the configuration S 3 for the gadget for a 2 , since the edges of a 2 are oriented as f 3 in Figure 5a. Notice that, when we replace the configuration from S 3 to S 4 , we have two cycles.
Algorithms 11 00140 g005
Figure 6. A biconnected bipartite permutation graph having no Hamiltonian cycles.
Figure 6. A biconnected bipartite permutation graph having no Hamiltonian cycles.
Algorithms 11 00140 g006

Share and Cite

MDPI and ACS Style

Takaoka, A. Complexity of Hamiltonian Cycle Reconfiguration. Algorithms 2018, 11, 140. https://doi.org/10.3390/a11090140

AMA Style

Takaoka A. Complexity of Hamiltonian Cycle Reconfiguration. Algorithms. 2018; 11(9):140. https://doi.org/10.3390/a11090140

Chicago/Turabian Style

Takaoka, Asahi. 2018. "Complexity of Hamiltonian Cycle Reconfiguration" Algorithms 11, no. 9: 140. https://doi.org/10.3390/a11090140

APA Style

Takaoka, A. (2018). Complexity of Hamiltonian Cycle Reconfiguration. Algorithms, 11(9), 140. https://doi.org/10.3390/a11090140

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop