Pancake graph
Pancake graph | |
---|---|
The pancake graph P4 can be constructed recursively from 4 copies of P3 by assigning a different element from the set {1, 2, 3, 4} as a suffix to each copy. | |
Vertices | [math]\displaystyle{ n! }[/math] |
Edges | [math]\displaystyle{ \dfrac{1}{2} ~ n! \left(n-1\right) }[/math] |
Girth | 6, if n > 2 |
Chromatic number | see in the article |
Chromatic index | n − 1 |
Genus | see in the article |
Properties | Regular Hamiltonian Cayley Vertex-transitive Maximally connected Super-connected Hyper-connected |
Notation | Pn |
Table of graphs and parameters |
In the mathematical field of graph theory, the pancake graph Pn or n-pancake graph is a graph whose vertices are the permutations of n symbols from 1 to n and its edges are given between permutations transitive by prefix reversals.
Pancake sorting is the colloquial term for the mathematical problem of sorting a disordered stack of pancakes in order of size when a spatula can be inserted at any point in the stack and used to flip all pancakes above it. A pancake number is the minimum number of flips required for a given number of pancakes. Obtaining the pancake number is equivalent to the problem of obtaining the diameter of the pancake graph.[1]
The pancake graph of dimension n, Pn, is a regular graph with [math]\displaystyle{ n! }[/math] vertices. Its degree is n − 1, hence, according to the handshaking lemma, it has [math]\displaystyle{ \dfrac{1}{2} ~ n! \left(n-1\right) }[/math] edges. Pn can be constructed recursively from n copies of Pn−1, by assigning a different element from the set {1, 2, …, n} as a suffix to each copy.
Results
Pn (n ≥ 4) is super-connected and hyper-connected.[2]
- [math]\displaystyle{ g(P_n) = 6, \text{ if } n\gt 2. }[/math]
The γ(Pn) genus of Pn is bounded below and above by:[4] [5]
- [math]\displaystyle{ n!\left( \frac{n-4}{6} \right)+1 \le \gamma(P_n) \le n!\left( \frac{3n-10}{12} \right)+1. }[/math]
Chromatic properties
There are some known graph coloring properties of pancake graphs.
A Pn (n ≥ 3) pancake graph has total chromatic number [math]\displaystyle{ \chi_t(P_n)=n }[/math], chromatic index [math]\displaystyle{ \chi_e(P_n)=n-1 }[/math].[6]
There are effective algorithms for the proper (n−1)-coloring and total n-coloring of pancake graphs.[6]
For the [math]\displaystyle{ \chi(P_n) }[/math] chromatic number the following limits are known:
If [math]\displaystyle{ 4 \le n \le 8 }[/math], then
- [math]\displaystyle{ \chi(P_n) \le \begin{cases} n-k, & \text{if } n \equiv k \pmod{4}, k=1,3; \\ n-2, & \text{if } n \equiv k \pmod{4}, k=0,2; \end{cases} }[/math]
if [math]\displaystyle{ 9 \le n \le 16 }[/math], then
- [math]\displaystyle{ \chi(P_n) \le \begin{cases} n-(k+2), & \text{if } n \equiv k \pmod{4}, k=1,3; \\ n-4, & \text{if } n \equiv k \pmod{4}, k=0,2; \end{cases} }[/math]
if [math]\displaystyle{ n \ge 17 }[/math], then
- [math]\displaystyle{ \chi(P_n) \le \begin{cases} n-(k+4), & \text{if } n \equiv k \pmod 4, k=1,2,3; \\ n-8, & \text{if } n \equiv k \pmod 4, k=0. \end{cases} }[/math]
The following table discusses specific chromatic number values for some small n.
[math]\displaystyle{ n }[/math] | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
[math]\displaystyle{ \chi(P_n) }[/math] | 2 | 3 | 3 | 4 | 4 | 4? | 4? | 4? | 4? | 4? | 4? | 4? | 4? | 4? |
Cycle enumeration
In a Pn (n ≥ 3) pancake graph there is always at least one cycle of length ℓ, when [math]\displaystyle{ 6 \le \ell \le n! }[/math] (but there are no cycles of length 3, 4 or 5).[7] It implies that the graph is Hamiltonian and any two vertices can be joined by a Hamiltonian path.
About the 6-cycles of the Pn (n ≥ 4) pancake graph: every vertex belongs to exactly one 6-cycle. The graph contains [math]\displaystyle{ \frac{n!}{6} }[/math] independent (vertex-disjoint) 6-cycles.[8]
About the 7-cycles of the Pn (n ≥ 4) pancake graph: every vertex belongs to [math]\displaystyle{ 7 \cdot (n-3) }[/math] 7-cyles. The graph contains [math]\displaystyle{ n! \cdot (n-3) }[/math] different 7-cycles.[9]
About the 8-cycles of the Pn (n ≥ 4) pancake graph: the graph contains [math]\displaystyle{ \frac{n!(n^3+12n^2-103n+176)}{16} }[/math] different 8-cycles; a maximal set of independent 8-cycles contains [math]\displaystyle{ \frac{n!}{8} }[/math] of those.[8]
Diameter
The pancake sorting problem (obtaining the pancake number) and obtaining the diameter of the pancake graph are equivalents. One of the main difficulties in solving this problem is the complicated cycle structure of the pancake graph.
[math]\displaystyle{ n }[/math] | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
[math]\displaystyle{ P_n }[/math] | 0 | 1 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
The pancake number, which is the minimum number of flips required to sort any stack of n pancakes has been shown to lie between 15/14n and 18/11n (approximately 1.07n and 1.64n,) but the exact value remains an open problem.[10]
In 1979, Bill Gates and Christos Papadimitriou[11] gave an upper bound of 5/3n. This was improved, thirty years later, to 18/11n by a team of researchers at the University of Texas at Dallas, led by Founders Professor Hal Sudborough[12] (Chitturi et al., 2009[13]).
In 2011, Laurent Bulteau, Guillaume Fertin, and Irena Rusu[14] proved that the problem of finding the shortest sequence of flips for a given stack of pancakes is NP-hard, thereby answering a question that had been open for over three decades.
Burnt pancake graph
In a variation called the burnt pancake problem, the bottom of each pancake in the pile is burnt, and the sort must be completed with the burnt side of every pancake down. It is a signed permutation, and if a pancake i is "burnt side up" a negative element i` is put in place of i in the permutation. The burnt pancake graph is the graph representation of this problem.
A [math]\displaystyle{ P'_n }[/math] burnt pancake graph is regular, its order is [math]\displaystyle{ 2^n \cdot n! }[/math], its degree is [math]\displaystyle{ n }[/math].
For its variant David S. Cohen (best known by his pen name "David X. Cohen") and Manuel Blum proved in 1995, that [math]\displaystyle{ 3n/2\leq P'_n\leq 2n-2 }[/math] (when the upper limit is only true if [math]\displaystyle{ n\gt 9 }[/math]).[15]
[math]\displaystyle{ n }[/math] | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
[math]\displaystyle{ P'_n }[/math] | 1 | 4 | 6 | 8 | 10 | 12 | 14 | 15 | 17 | 18 | 19 | 21 |
The girth of a burnt pancake graph is:[3]
- [math]\displaystyle{ g(P_n) = 8 \text{, if } n\gt 2. }[/math]
Other classes of pancake graphs
Both in the original pancake sorting problem and the burnt pancake problem, prefix reversal was the operation connecting two permutations. If we allow non-prefixed reversals (as if we were flipping with two spatulas instead of one) then four classes of pancake graphs can be defined. Every pancake graph embeds in all higher-order pancake graphs of the same family.[3]
Name | Notation | Explanation | Order | Degree | Girth (if n>2) |
---|---|---|---|---|---|
unsigned prefix reversal graph | [math]\displaystyle{ UP_n }[/math] | The original pancake sorting problem | [math]\displaystyle{ n! }[/math] | [math]\displaystyle{ n-1 }[/math] | [math]\displaystyle{ 6 }[/math] |
unsigned reversal graph | [math]\displaystyle{ UR_n }[/math] | The original problem with two spatulas | [math]\displaystyle{ n! }[/math] | [math]\displaystyle{ {n \choose 2} }[/math] | [math]\displaystyle{ 4 }[/math] |
signed prefix reversal graph | [math]\displaystyle{ SP_n }[/math] | The burnt pancake problem | [math]\displaystyle{ 2^n \cdot n! }[/math] | [math]\displaystyle{ n }[/math] | [math]\displaystyle{ 8 }[/math] |
signed reversal graph | [math]\displaystyle{ SR_n }[/math] | The burnt pancake problem with two spatulas | [math]\displaystyle{ 2^n \cdot n! }[/math] | [math]\displaystyle{ {n+1 \choose 2} }[/math] | [math]\displaystyle{ 4 }[/math] |
Applications
Since pancake graphs have many interesting properties such as symmetric and recursive structures (they are Cayley graphs, thus are vertex-transitive), sublogarithmic degree and diameter, and are relatively sparse (compared to e.g. hypercubes), much attention is paid to them as a model of interconnection networks for parallel computers.[4][16][17][18] When we regard the pancake graphs as the model of the interconnection networks, the diameter of the graph is a measure that represents the delay of communication.[19][20]
Pancake flipping has biological applications as well, in the field of genetic examinations. In one kind of large-scale mutations, a large segment of the genome gets reversed, which is analogous to the burnt pancake problem.
References
- ↑ Asai, Shogo; Kounoike, Yuusuke; Shinano, Yuji; Kaneko, Keiichi (2006-09-01). "Computing the Diameter of 17-Pancake Graph Using a PC Cluster". Euro-Par 2006 Parallel Processing. Lecture Notes in Computer Science. 4128. 1114–1124. doi:10.1007/11823285_117. ISBN 978-3-540-37783-2.
- ↑ Deng, Yun-Ping; Xiao-Dong, Zhang (2012-03-31). "Automorphism Groups of the Pancake Graphs". Information Processing Letters 112 (7): 264–266. doi:10.1016/j.ipl.2011.12.010.
- ↑ 3.0 3.1 3.2 Compeau, Phillip E.C. (2011-09-06). "Girth of pancake graphs". Discrete Applied Mathematics 159 (15): 1641–1645. doi:10.1016/j.dam.2011.06.013.
- ↑ 4.0 4.1 Nguyen, Quan; Bettayeb, Said (2009-11-05). "On the Genus of Pancake Network.". The International Arab Journal of Information Technology 8 (3): 289–292. http://ccis2k.org/iajit/PDF/vol.8,no.3/1247.pdf.
- ↑ Blanco, Saúl; Buehrle, Charles (2023-06-20). "Bounds on the genus for 2-cell embeddings of prefix-reversal graphs". arXiv:2306.11295 [math.CO].
- ↑ 6.0 6.1 Konstantinova, Elena (2017-08-01). "Chromatic Properties of the Pancake Graphs.". Discussiones Mathematicae Graph Theory 37 (3): 777–787. doi:10.7151/dmgt.1978.
- ↑ Sheu, Jyh-Jian; Tan, Jimmy J. M. (2006). "Cycle embedding in pancake interconnection networks.". The 23rd Workshop on Combinatorial Mathematics and Computation Theory. http://par.cse.nsysu.edu.tw/~algo/paper/paper06/B16.pdf.
- ↑ 8.0 8.1 Konstantinova, E.V.; Medvedev, A.N. (2013-04-26). "Small cycles in the Pancake graph". Ars Mathematica Contemporanea 7: 237–246. doi:10.26493/1855-3974.214.0e8.
- ↑ Konstantinova, E.V.; Medvedev, A.N. (2010-04-01). "Cycles of length seven in the pancake graph". Diskretn. Anal. Issled. Oper. 17 (5): 46–55. doi:10.1016/j.tcs.2008.04.045. http://www.mathnet.ru/php/archive.phtml?wshow=paper&jrnid=da&paperid=624&option_lang=eng.
- ↑ Fertin, G. and Labarre, A. and Rusu, I. and Tannier, E. and Vialette, S. (2009). Combinatorics of Genome Rearrangements. The MIT Press. ISBN 9780262062824.
- ↑ Gates, W.; Papadimitriou, C. (1979). "Bounds for Sorting by Prefix Reversal". Discrete Mathematics 27: 47–57. doi:10.1016/0012-365X(79)90068-2.
- ↑ "Team Bests Young Bill Gates With Improved Answer to So-Called Pancake Problem in Mathematics". University of Texas at Dallas News Center. September 17, 2008. http://www.utdallas.edu/news/2008/09/17-002.php?WT.mc_id=NewsEmails&WT.mc_ev=EmailOpen. "A team of UT Dallas computer science students and their faculty adviser have improved upon a longstanding solution to a mathematical conundrum known as the pancake problem. The previous best solution, which stood for almost 30 years, was devised by Bill Gates and one of his Harvard instructors, Christos Papadimitriou, several years before Microsoft was established."
- ↑ Chitturi, B.; Fahle, W.; Meng, Z.; Morales, L.; Shields, C. O.; Sudborough, I. H.; Voit, W. (2009-08-31). "An (18/11)n upper bound for sorting by prefix reversals". Theoretical Computer Science. Graphs, Games and Computation: Dedicated to Professor Burkhard Monien on the Occasion of his 65th Birthday 410 (36): 3372–3390. doi:10.1016/j.tcs.2008.04.045.
- ↑ Bulteau, Laurent; Fertin, Guillaume; Rusu, Irena (2015). "Pancake Flipping Is Hard". Journal of Computer and System Sciences 81 (8): 1556–1574. doi:10.1016/j.jcss.2015.02.003.
- ↑ David S. Cohen, Manuel Blum: On the problem of sorting burnt pancakes. In: Discrete Applied Mathematics. 61, Nr. 2, 1995, S. 105–120. DOI:10.1016/0166-218X(94)00009-3.
- ↑ Akl, S.G.; Qiu, K.; Stojmenović, I. (1993). "Fundamental algorithms for the star and pancake interconnection networks with applications to computational geometry.". Networks 23 (4): 215–225. doi:10.1002/net.3230230403.
- ↑ Bass, D.W.; Sudborough, I.H. (March 2003). "Pancake problems with restricted prefix reversals and some corresponding Cayley networks.". Journal of Parallel and Distributed Computing 63 (3): 327–336. doi:10.1016/S0743-7315(03)00033-9.
- ↑ Berthomé, P.; Ferreira, A.; Perennes, S. (December 1996). "Optimal information dissemination in star and pancake networks.". IEEE Transactions on Parallel and Distributed Systems 7 (12): 1292–1300. doi:10.1109/71.553290.
- ↑ Kumar, V., Grama, A., Gupta, A., Karypis, G.: Introduction to Parallel Computing: Design and Analysis of Algorithms. Benjamin/Cummings (1994)
- ↑ Quinn, M.J.: Parallel Computing: Theory and Practice, second edition. McGraw Hill (1994)
Original source: https://en.wikipedia.org/wiki/Pancake graph.
Read more |