On The Diameter of Pancake Graphs
Abstract
The Pancake graph() represents the group of all permutations on n elements, namely , with respect to the generating set containing all prefix reversals. The diameter of a graph is the maximum of all distances on the graph, where the distance between two vertices is the shortest path between them. In the case of the , it is the maximum of the shortest generating sequence of each permutation in . Here we propose a method to realise better upper bounds to the diameter of that has its focus on Graph Theoretical concepts rather than Algebra.
Keywords:Pancake Graph, Diameter, Prefix Reversals, Path Covering Spanning trees.
Subject Classification:05C12, 05C25, 05C85
Introduction
A Permutation represents a bijection from a set onto itself. It is written as where is the image of the element. If the set then the group of all such permutations is called the Symmetric group of degree n (). The Pancake graph represents the graph for the group with respect to the generating set of all prefix reversals, where:
(1) |
All permutations in can be represented as a product of the elements of the generating set , Hence is a connected graph. Furthermore, the degree of each vertex of is equal to the cardinality of S. The absence of the identity permutation in set excludes the possibility of loops in . Hence is a simple connected graph which is regular. Hence in total we see that is a simple connected regular graph. A graph is said to be vertex transitive if for each pair of vertices in there exists some automorphism taking one vertex to the other. In case of we attain this idea through the automorphism group of .
Analyzing the structure of shows us that, for each the graph contains copies of . This is the hierarchical property of the structure of . The property plays an important role in proving the Hamiltonicity of for . The graph is isomorphic to the graph , which is Hamiltonian. Now using induction on we can easily show that is Hamiltonian[9, 10]. It has also been shown that all cycles of lengths ranging between 6 and can be embedded on the graph [9, 7]. The above results play a major role in the method that we propose.
When the diameter of is considered the greatest hindrance in determining a precise value is the complex cyclic structure that these graphs possess. Hence we construct a method that eliminates these cycles and correspondingly calculates the diameter. The diameter calculation for Cayley graphs is an NP-hard problem[4]. Therefore we try to conceive a better bound for the value of the diameter. The absence of cycles is obtained in trees, and the best set of trees connected to a graph is the spanning trees. So we will analyse the spanning trees of and hence conceive a bound for its diameter. But as such, considering every possible spanning tree of the graph is again a headache; hence we need a smaller collection of spanning trees to work on. The following ideas were obtained from this train of thought. The next section contains an overview of existing bounds to the solution. In the following section, we discuss the method proposed and observations made.
Literary Review
The first set of bounds to the solution of the Diameter problem were proposed by William H. Gates and Christos H. Papadimitriou in 1979[5]. Here they defined two new terminologies to determine their bounds. They were as follows:
Given a permutation in , if we call to be an adjacency, where . An adjacency is also seen if . A consecutive string of adjacencies in a permutation is called a block.
If for some , neither nor are adjacencies then we call to be free.
So as to calculate the upperbound for the solution Gates and Papadimitriou created an algorithm. The algorithm, for each permutation, exploits the structural properties given in the above definitions to determine the number of reversals to reach the identity permutation, . They calculated the maximum number of prefix reversals required to reach identity given any permutation in and came up with the inequality:
(2) |
where f(n) is the diameter of for a given . To calculate the lower bound they considered a string of length 8 and showed that the lower bound to be:
(3) |
whenever 16 divides .
But they had also quoted that a better set of bounds could be calculated if the length of string was seven. Working upon this, a better set of bounds was calculated by Hal Sudborough and Heydari in 1997[6]:
(4) |
whenever 14 divides .
An even better set of bounds were proposed by a team from University of Texas, Dallas and Hal Sudborough in 2009[2]:
(5) |
The precise values for the diameter of Pancake graphs have been calculated up to . Heydari and Sudborough also computed the diameter of the Pancake graph up to . The diameter for , were calculated in 2005 by Yuusuke Kounoike, Keiichi Kaneka, and Yuji Shinano[8]. In one year, in 2006, the same authors and Shogo Asai determined the diameter for ,[1]. In 2011 the diameter for , was found by Cibulka[3]. The table of the values for the values of for is given below:
n | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d | 1 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 22 |
Observations
In this section, we will look into the method that we propose. The computational complexity of the method has not been discussed, but the theoretical validity has been shown below the proposed method. As mentioned in the final paragraph of the introduction, we look into the following definition before going into the method.
A path covering collection of trees refers to the collection of trees that contain all paths between a given set of vertices. Now that we have a collection to work upon, how do we construct such a collection? The following result gives the answer:
Proposition 1.
Given a Hamiltonian graph G, A path covering collection of trees is obtained by the action of the automorphism group on a Hamiltonian path in G.
Proof.
The proof of the above result is in two parts:
-
1.
To show that the action results in a tree of G.
-
2.
To show that the collection so obtained is path covering.
Let be the required Hamiltonian path, be the automorphism group for .
-
1.
Let the image of under some automorphism be not a tree. Then there exists some vertex such that the graph has a cycle with respect to . This means there exists vertices and in such that:
(6) But is an automorphism on hence a bijection. Thus the above statement contradicts the property of hence our assumption is wrong. Therefore the collection so formed has only trees in it. The fact that they are spanning is also seen by the fact that the elements of are bijections.
-
2.
Consider a path of length in , . Consider any length segment of , . Choose such that . Now choose such that and . Inductively continue until the th vertex. Since the operation between ’s is composition, all the corresponding functions are in . Therefore we see that the collection obtained is path covering.
∎
Hence we have constructed the required collection . The next question in front of us is the comparison of distances. The distance between two vertices in the spanning tree may not be equal to the distance between two vertices in the graph . The problem is taken care of by the following properties:
Proposition 2.
where is a path covering collection of spanning trees for .
Proof.
Let us assume that the above result is not true then either
-
1.
-
2.
In the first case, we see that the result shows that we have a path shorter than the shortest path in in some tree , which is impossible as is a spanning tree of . In the second case, we see that the result shows that some path in is not present in any tree which is also impossible as the collection is path covering as proven above. Therefore we infer that . ∎
Hence we have a way to compare distance in the tree and distance in the graph. The first result can be applied to any graph while the second can be applied to any simple graph. The next set of results are for .
Proposition 3.
There exists a permutation such that , where corresponds to the identity element of .
Proof.
By the definition of diameter we see that for any there exists vertices such that . By the definition of distance on a graph it is easily seen that its a metric and hence is translation invariant. Therefore
(7) |
That is is the required permutation. ∎
Hence we have seen that we do not have to consider all distances on the graph but rather only distances from to every other vertex of the graph.Finally we have the last result which gives us a lower bound on the value of .
Proposition 4.
Proof.
Let us assume the above result is not true then as per hierarchy and the result stated before in such that is at a distance greater than from . This is contradictory to the definition of diameter. ∎
Using the above results we fabricate a method to compute a bound for the diameter of , .
Proposed Method
The following are the steps to the proposed new method:
-
1.
Construct a set (The construction of is explained in the next section).
-
2.
Consider the longest connected segment among the elements of with respect to the graph . Let the segment be .
-
3.
Construct a family of trees with vertices in using the Dijkstra’s algorithm with respect to the graph .
-
4.
Calculate using Proposition 2 the distance between the vertices in in .
-
5.
Determine the maximum of all distances calculated using the above step. Let that value be
-
6.
.
Theoretical Validity of the Method
From the method stated above, we see that the method’s efficiency lies in the precision we can attain during the construction of . Hence we consider the construction of first.
Construction of
The following are the steps to the construction of set :
-
1.
Divide the value by 5 and determine the quotient and remainder .
-
2.
Construct the set of all five sequences of elements in the generating set of such that no two consecutive elements are the same.
-
3.
Now consider every path of the form of some element in starting from in . Let the set contain all intermediate vertices in the paths from and let be the collection of end vertices in each case.
-
4.
Let set .
-
5.
Now, with respect to the first vertex in repeat step 3. That is, in place of , consider the first vertex in . Construct sets and accordingly and create set .
-
6.
Repeat the step until all vertices in are covered.
-
7.
Define to be the intersection of all and .
-
8.
So on defines until Sq.
-
9.
Now consider the vertices in the set .
-
10.
Construct the set of all length sequences of elements of the generating set. Let it be .
-
11.
Now repeat step 3 with the vertices of and with elements from .
-
12.
The vertices that are left after repeating the above steps on form the set .
Now that we know the set of , let us consider the next part of the method. The basic question that arises is what happens when the rest of the vertices are totally disconnected. Then we claim that the . If not, then we see that which has already been proven wrong. Therefore we are left with the possibility that . If the graph left is not totally disconnected, then we consider the longest connected path in the resulting graph to come up with a better bound. From the results in the last section, we see that steps 3 and 4 are valid. All that is left is to consider the final statement. Now we have shown that there exists a path of length in the graph. Hence by the fact that the defined distance on the graph is a metric, we see that:
(8) |
Conclusion
To conclude, we see that the method provides us with a bound to the diameter of . Calculating the diameter depends on the difference between the lower and upper bounds determined. If the number of integer values between these bounds is comparably small, we can calculate the diameter by considering these integral values.
References
- [1] Shogo Asai, Yuusuke Kounoike, Yuji Shinano, and Keiichi Kaneko. Computing the diameter of 17-pancake graph using a pc cluster. In European Conference on Parallel Processing, pages 1114–1124. Springer, 2006.
- [2] Bhadrachalam Chitturi, William Fahle, Zhaobing Meng, Linda Morales, Charles O Shields, Ivan Hal Sudborough, and Walter Voit. An (18/11) n upper bound for sorting by prefix reversals. Theoretical Computer Science, 410(36):3372–3390, 2009.
- [3] Josef Cibulka. On average and highest number of flips in pancake sorting. Theoretical Computer Science, 412(8-10):822–834, 2011.
- [4] Shimon Even and Oded Goldreich. The minimum-length generator sequence problem is np-hard. Journal of Algorithms, 2(3):311–313, 1981.
- [5] William H Gates and Christos H Papadimitriou. Bounds for sorting by prefix reversal. Discrete mathematics, 27(1):47–57, 1979.
- [6] Mohammad H Heydari and I Hal Sudborough. On the diameter of the pancake network. Journal of Algorithms, 25(1):67–94, 1997.
- [7] Arkady Kanevsky and Chao Feng. On the embedding of cycles in pancake graphs. Parallel Computing, 21(6):923–936, 1995.
- [8] Yuusuke Kounoike, Keiichi Kaneko, and Yuji Shinano. Computing the diameters of 14-and 15-pancake graphs. In 8th International Symposium on Parallel Architectures, Algorithms and Networks (ISPAN’05), pages 6–pp. IEEE, 2005.
- [9] Jyh-Jian Sheu, JJM Tan, LH Hsu, and MY Lin. On the cycle embedding of pancake graphs. In Proceedings of 1999 National Computer Symposium, pages C414–C419, 1999.
- [10] Shmuel Zaks. A new algorithm for generation of permutations. BIT Numerical Mathematics, 24(2):196–204, 1984.