Small cycles, generalized prisms and Hamiltonian cycles in the Bubble-sort graph
Elena V. Konstantinova, Alexey N. Medvedev

TL;DR
This paper characterizes small cycles in the Bubble-sort graph, introduces generalized prisms, and proposes a new method for constructing Hamiltonian cycles in these graphs.
Contribution
It provides an explicit combinatorial characterization of 4- and 6-cycles and introduces generalized prisms to construct Hamiltonian cycles in Bubble-sort graphs.
Findings
Explicit characterization of 4- and 6-cycles in BS_n
Definition of generalized prisms in BS_n
New approach to construct Hamiltonian cycles
Abstract
The Bubble-sort graph , is a Cayley graph over the symmetric group generated by transpositions from the set . It is a bipartite graph containing all even cycles of length , where . We give an explicit combinatorial characterization of all its - and -cycles. Based on this characterization, we define generalized prisms in , and present a new approach to construct a Hamiltonian cycle based on these generalized prisms.
| All possible Hamiltonian paths with end vertices | ||
|---|---|---|
| , , | , , | |
| , , , | , , | |
| , , | , | |
| , , , | , , | |
| , , , , | , , , | |
| , , , , | , , , | |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Small cycles, generalized prisms and Hamiltonian cycles in the Bubble-sort graph
Elena V. Konstantinova
Sobolev Institute of Mathematics, Novosibisk State University, Novosibirsk, Russia
Alexey N. Medvedev
ICTEAM, Université catholique de Louvain, Louvain-la-Neuve, Belgium
Abstract
The Bubble-sort graph , is a Cayley graph over the symmetric group generated by transpositions from the set . It is a bipartite graph containing all even cycles of length , where . We give an explicit combinatorial characterization of all its - and -cycles. Based on this characterization, we define generalized prisms in , and present a new approach to construct a Hamiltonian cycle based on these generalized prisms.
keywords:
Cayley graphs , Bubble-sort graph , -skeleton of the Permutahedron , Coxeter presentation of the symmetric group , -prisms , generalized prisms , Hamiltonian cycle
1 Introduction
We start by introducing a few definitions. The Bubble-sort graph , is a Cayley graph over the symmetric group of permutations , where , , with the generating set of all bubble-sort transpositions swapping the -th and -st elements of a permutation when multiplied on the right, i.e. . It is a connected bipartite –regular graph of order and diameter . Since this graph is bipartite it does not contain odd cycles but it contains all even –cycles where [1]. The hamiltonicity of this graph also follows from results in [2, 3, 4].
The graph , is constructed from copies , with the vertex set , and vertices between copies are connected with external edges from the set , where , . For example, is isomorphic to a –cycle, and is constructed from copies of (see Figure 1).
The generating set plays an important role in computer science for generating all permutations [2, 5, 4], in the theory of polytopes where is considered as -skeleton of the Permutahedron [6], in knot theory [7] and the theory of reflection groups and Coxeter groups [8, 9, 10]. It is known that all transpositions , , from the set can be considered as braids on strands forming the braid group . There is a surjective group homomorphism from the braid group into the symmetric group so that the Coxeter presentation of the symmetric group is given by the following braid relations [11]:
[TABLE]
[TABLE]
It is known (see, for example §1.9 in [8] or [9]) that if any permutation is presented by two minimal length expressions and in terms of generating elements from the set , then and can be transformed to each other using only the braid relations (1) and (2). However, these relations are not the only set and not the smallest set for generating .
Let us note that the relations (1) and (2) form a -cycle and a -cycle in the Bubble-sort graph for any and for any , correspondingly. As it follows below, we use a cycle description presented in [12] to characterize small cycles in the Pancake graph, and then applied in the Star graph [13].
Two simple paths in a graph are called non-intersecting, if they have no common vertices. A sequence of transpositions , where , and for any , such that , where , is said to be a form of a cycle of length in the Bubble-sort graph. A cycle of length is called an –cycle. It is evident that any –cycle can be presented by forms (not necessarily different) with respect to a vertex and a direction. The canonical form of an –cycle is called a form with a lexicographically maximal sequence of indices . For cycles of a form , where , and appears times, we write . In particular, with the following canonical form:
[TABLE]
This representation admits the braid relation (1) for . In the case when , for -cycles there are two canonical forms , where , meeting the same braid relations (1). Moreover, for -cycles there is the canonical form which admits the braid relation (2). It is evident from the Figure 1, (b), that the - and -cycles have no other canonical representation that is different from the braid relations in . The natural questions arising here is about existence of canonical forms of small cycles not admitting the braid relations in the Bubble-sort graph for any .
In this paper we give complete combinatorial characterization of - and -cycles, which is presented in the following two theorems.
Theorem 1**.**
Each of vertices of , belongs to distinct –cycles of the following canonical form:
[TABLE]
In total, there are distinct –cycles in .
Instead of explicitly writing two index conditions as in Equation (4), for the sake of simplicity we use the compound version, given as .
Theorem 2**.**
Each of vertices of , , belongs to distinct –cycles of the canonical form:
[TABLE]
when , each vertex belongs to distinct –cycles of the canonical form:
[TABLE]
when , each vertex belongs to distinct –cycles of the canonical form:
[TABLE]
[TABLE]
[TABLE]
[TABLE]
In total, there are distinct –cycles in .
Hamiltonian cycles are one of the main objects of study in graph theory, and without doubt they also have numerous applications in various fields of science. The question of existence is as well important as the proposal of different constructions of these cycles, which is related to finding new Gray codes in combinatorial graphs [14] or various embeddings [15]. In this paper, we propose a new algorithm for constructing the Hamiltonian cycle, which is based on a maximal cover of the graph with generalized prisms. For any graph , the generalized prism, denoted as 2-, is defined as the Cartesian product [16]. The maximal cover of a graph by subgraphs is a vertex-disjoint embedding of a collection of , where for each , such that each vertex belongs to some . The Hamiltonian cycle based on a maximal cover is the cycle that is formed by finding appropriate Hamiltonian paths in each copy of and fastening them together by the edges between these subgraphs to form the closed Hamiltonian cycle in the original graph. Similar idea was successfully used to construct Hamiltonian cycles in vertex-transitive graphs (see e.g. [14], [17], [18]). Our result is presented in the following theorem.
Theorem 3**.**
In graph , there exists a Hamiltonian cycle based on the maximal cover by generalized prisms 2-.
Although we prove the existence of the cycle, the proof is constructive and the construction suggests there are multiple Hamiltonian cycles of the presented type.
In the literature we could find three proposed Hamiltonian cycle constructions in the Bubble-sort graph. The famous Steinhaus-Johnson-Trotter algorithm [2, 4] produces a Hamiltonian cycle, which is merely based on the permutation structure, rather than the structure of the graph, and it is different from our algorithm. T. Manneville and V. Pilaud in [19] proposed a similar method of constructing a Hamiltonian cycle in a general family of -skeletons of graph associahedra. However their method, in simple words, was based on the hierarchical structure, thus using -edges to connect the chunks of a Hamiltonian cycle in the copies of . Another construction that also utilizes the fastening method was proposed in [20]. The authors used a lexicographical ordering of permutations in to obtain subgraphs isomorphic to and by connecting them through -cycles also get a Hamiltonian cycle. All the proposed methods are different from our algorithm and we provide the detailed explanation using graph-theoretic language, making it accessible to a wider community.
The rest of the paper is structured as follows. In the Section 2 we present the proof of Theorems 1 and 2 and in the Section 3 we present the details of the Hamiltonian cycle construction in the case of general and the proof of Theorem 3.
2 Characterization of small cycles
The general idea of the proofs is based on considering two antipodal vertices and of the –cycle, where and finding two non-intersecting –paths between them (see Figure 2). For any positive integer , the element of a permutation , where , is called to be shifted steps to the right from its original position, if . This is achieved by applying the sequence of transpositions .
In case of each , we subdivide the proof into cases, depending on the number of shifted elements of and the distance they are shifted along the -path. It is obvious that along the -path the same elements must be shifted back to the left to their original positions, and therefore we only consider shifting to the right. Since we consider cycles of small length, we evade looking into more complicated shifts along the paths.
We call two transpositions and independent, if . Otherwise the transpositions are called dependent. The main properties of such transpositions used in the proofs can be formulated as follows.
Proposition 1**.**
Let and be the vertices of the Bubble-sort graph , and let the –path of length , where , is given by a sequence of successively dependent transpositions then there is no non-intersecting -path of length .
Proof.
For any , where , the sequence of transpositions acts on as shifting of the element to position . Since this is the only moved element, the backward -path of the same length inevitably has all the transpositions in reverse order. Hence, the path is unique. ∎
2.1 Proof of Theorem 1
We present now the complete description of -cycles.
Proof.
Since the graph is vertex-transitive, let . For any two antipodal vertices and of a -cycle, the length of the –path equals two. We prove the statement by considering all possible cases of the shifted elements of along the –path and describing the set of non-intersecting –paths. Obviously, the number of shifted elements should not be greater than two.
Shift of the one element is equivalent to having only two dependent transpositions on the –path and by Proposition 1 such a path is unique. If two elements are shifted, then –path consists of two independent transpositions , where and . Since transpositions are independent, shuffling those will result in another path, which is a non-intersecting –path defined as .
Altogether the canonical form of the only possible 4-cycles is given in (4). It is straightforward to obtain the number of distinct cycles given by this family of forms. The number of possible pairs of indices is and each form describes one distinct 4-cycle passing through a given vertex, thus in total there are distinct 4-cycles passing through a given vertex and the total number of distinct -cycles in is . This completes the proof. ∎
2.2 Proof of Theorem 2
We present now the complete description of -cycles.
Proof.
Consider two antipodal vertices and of a -cycle. The length of the –path is equal to three. We prove the statement by considering all possible cases of the shifted elements of along the –path and describing the set of non-intersecting –paths. The number of such elements should not be greater than three. This turns to considering the following cases.
Case 1: one shifted element. Suppose the element is shifted to the position . In order to do so, the sequence should be applied to , which consists of successively dependent transpositions and by Proposition 1 such –path is unique. Hence, no 6-cycle is possible in this case.
Case 2: two shifted elements. Suppose the element is shifted to the position and another element is shifted to . In order to do so, the sequence and the transposition should be applied to . There are three possible orders of application (see Figure 3):
[TABLE]
There are two possibilities: either is independent from and or not.
If is independent from and , then in order to shift the element back to the initial position, we need to apply the sequence in inverse order on –path. By analyzing the possible ways of this operation (see Figure 3), we find the only possible cycle form , which corresponds to (6) from the statement. Since is independent from and , then either or . In the first case we have and . Taking the double sum over both these conditions we obtain . In the second case we have and , which gives the another forms. In total, this leaves us with exactly distinct forms given by (6) and due to symmetries each form describes three distinct cycles passing through a given vertex, in total giving distinct cycles.
If is dependent on or , then either , or . Along the –path we must apply the sequence in the inverse order, thus for each choice I), II) and III) of –path there exists a unique description of possible –path. In case –path is given by I), then for the non-intersecting –path is given as , whereas and are impossible. In case –path is given by III), then for the non-intersecting –path is given as , whereas and are impossible. The case of –path given by II) is also impossible. Therefore, we have the only form of a 6-cycle given by , which corresponds to (5) in the statement. The number of distinct forms described by (5) is , and each form describes one cycle passing through a given vertex, in total giving distinct cycles.
Case 3: three shifted elements. Suppose the element is shifted to the position by . Then we have two other elements and shifted to the positions and by independent transpositions and correspondingly. Suppose the -path is given by . The sole restriction on the non-intersecting –path is that the two incident edges to and should be different. Therefore, we have two non-intersecting -paths: 1) and 2) . Further, we note there are chords between pairs of paths , and (see Figure 4). Thus, combining all the non-intersecting pairs of paths, we obtain four distinct canonical forms of cycles described by (7)-(10) in the statement. We note that these -cycles appear only when .
One may see from the Figure 4 that paths form a subgraph of a 3-cube. Therefore any permutation of indices leaves us inside the same subgraph and in order to calculate the number of distinct forms given by each of (7)-(10) it is only necessary to calculate the number of possible ordered triples , such that . We note that for there is only one way to select three independent transpositions, thus . Increasing by one produces extra triples only by fixing the , which is , hence the following relation holds for :
[TABLE]
From this relation, we immediately have the number . Due to symmetries, each of the four forms (7)-(10) describes three distinct cycles passing through a given vertex, all in total giving a contribution of distinct cycles.
In total, the graph contains
[TABLE]
cycles of length 6. This completes the proof. ∎
3 Hamiltonian cycles in based on generalised prisms
In this section we give a description of a Hamiltonian cycle in the Bubble-sort graph based on graphical prisms. We first show the existence of such cycles in the graph . Then the algorithm is further extended to the general case . We start the section with a few definitions and a technical lemma.
The parity of a permutation may be defined as the parity of the number of transpositions in the canonical representation of . Let us remind, that the Bubble-sort graph is bipartite, since each multiplication by a generating transposition changes parity of a permutation. The graph of an –prism, , is called the graph of a Cartesian product of the cycle of length and the complete graph on two vertices. A graph is called Hamilton-connected if any two vertices of a graph are connected by a Hamiltonian path. The following proposition is well known for prisms (see e.g. [21]).
Proposition 2**.**
The graph of –prism is Hamilton-connected if and only if is odd.
The Hamiltonian cycle is constructed using generalized prisms. Remind that for any graph the generalised prism 2- is defined as the Cartesian product . Let the graph have a maximal vertex cover by subgraphs, isomorphic to a subgraph . Then, the factor graph is the graph whose nodes represent covering subgraphs and there is an edge if in the original graph there is an edge between some nodes and .
In the graph , where , we observe the presence of generalized prisms 2-, whose vertex set is given by
[TABLE]
for fixed and the edge set includes edges, that correspond to transpositions . Further, note that -edges only connect vertices of two copies of , since they permute only the last two elements of a permutation. Let us denote further for simplicity the 2- as . On the Figure 6 we show an example of the . By hierarchical structure, it is straightforward to show that there exists a maximal cover of by , therefore there exists the factor graph .
Let us describe the structure of the factor graph . Since, the vertex set of any contains all vertices with the last two elements fixed, then vertices of can be encoded by unordered pairs of elements from and a specific prism on vertices with last elements we denote as . Following the connectivity between copies of , which is given by the edges corresponding to transposition , two prisms and are connected iff . Hence is isomorphic to the Johnson graph , which is proven to be Hamiltonian and even Hamilton-connected [22]. For the sake of visual presentation we refer to Figure 5 with an example of the covering of the graph by prisms
Furthermore, we note that any two factor vertices of are connected through , meaning that for any appropriate all vertices of one on the vertices of type with fixed last elements are connected to the vertices of on the vertices of type with fixed last elements .
3.1 Proof of Theorem 3
Proof.
We use the lifting method to construct the Hamiltonian cycle. We showed above that the factor graph is nice enough, thus we need to prove a certain statement about the connectivity of .
Proposition 3**.**
In the graph of the , where , for a given vertex and any vertex , such that the parity , there is a Hamiltonian path with end vertices and .
Proof.
By definition, the prism is represented as two copies of and , put one above the other and connected by -edges between nodes of respective copies. Since the graph is Hamiltonian for any , let us fix some Hamiltonian cycles and of similar structure, i.e. such that if an edge , then it implies that .
The graph is bipartite, thus any path between two nodes of the opposite parity has odd length and between the nodes of the same parity the length is even. We shall use this fact to construct the desired Hamiltonian path between and . Since the graph is vertex-transitive, let us fix the vertex in the copy and consider two cases of placement of the vertex .
Case 1. Let be in the same copy . Then, denote and . The nodes and are of different parity, thus the -path has odd length. Therefore, we can start the Hamiltonian path at , then proceed in alternating way as shown on Figure 7 until we reach . Then we continue the path in the copy until we reach the direct neighbour of the vertex in the . Moving back to the and following the unvisited part of we reach the vertex , thus obtaining the desired Hamiltonian path.
Case 2. Let be in the different copy . Let us again denote and . The nodes and are of the same parity, thus the -path has even length. Therefore, we can start the Hamiltonian path at , then proceed along the until we reach the direct neighbour of as shown on Figure 7. Then we move to the copy and continue along the path backwards (without passing through ) until we reach the vertex in the . The distance between the direct neighbour of and is odd, since the length of the is even and the traversed segment of and is of odd length, therefore we can continue in the alternating way until we reach the vertex (see Figure 7), thus obtaining the desired Hamiltonian path. ∎
We now turn to the proof of the main theorem. The Hamiltonian cycle in defines the traversal sequence of generalized prisms and let us construct the lifted cycle in the original graph. Let us fix the vertex incident to the edge between and as a starting vertex with parity . Traversing this edge will change the parity, and the adjacent vertex in will have an opposite parity . By Proposition 3, there is a Hamiltonian path that ends in a vertex with opposite parity which is adjacent to in . Traversing to changes the parity again to , which was the case for . Proceeding in this way, the parity of the starting and ending vertices in the prisms will be different, hence when the construction arrives back to the starting prism , the ending vertex will have parity , opposite from the parity of . Therefore, this vertex is at the odd distance from and connecting them with a Hamiltonian path will result in a Hamiltonian cycle in the original graph . This finishes the proof of the Theorem 3. ∎
Acknowledgement
The authors thank Zahary Hamaker for referring us to permutahedra, which have direct relation to the graph under our consideration and Valeriy Bardakov for providing insights regarding permutahedra. We thank the anonymous reviewers for their valuable suggestions that helped to improve the quality of the manuscript. This work was supported partially by the grants 17-51-560008, 18-01-00353 and 19-01-00682 of the Russian Foundation for Basic Research.
Appendix
In the Appendix we present the table of all Hamiltonian paths between any two nodes at odd distance in the 6-prism .
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Kikuchi and Araki [2006] Y. Kikuchi, T. Araki, Edge-bipancyclicity and edge-fault-tolerant bipancyclicity of bubble-sort graphs, Information Processing Letters 100 (2006) 52–59.
- 2Johnson [1963] S. M. Johnson, Generation of permutations by adjacent transposition, Mathematics of computation 17 (1963) 282–285.
- 3Kompel’maher and Liskovec [1975] V. L. Kompel’maher, V. A. Liskovec, Successive generation of permutations by means of a transposition basis, Kibernetika 3 (1975) 17–21.
- 4Trotter [1962] H. F. Trotter, Algorithm 115: perm, Communications of the ACM 5 (1962) 434–435.
- 5Knuth [2013] D. E. Knuth, Generating all permutations, Addison-Wesley Professional, 2013.
- 6Thomas [2006] R. R. Thomas, The Permutahedron, volume 33, American Mathematical Soc., 2006, pp. 85–92.
- 7Birman and Brendle [2005] J. S. Birman, T. E. Brendle, Braids: a survey, in: W. Menasco, M. Thistlethwaite (Eds.), Handbook of knot theory, Elsevier Science, 2005, pp. 33–192.
- 8Humphreys [1990] J. E. Humphreys, Finite and affine reflection groups, volume 29, Cambridge university press, 1990.
