Abstract
We present a Hamilton cycle in the k-sided pancake network and four combinatorial algorithms to traverse the cycle. The network’s vertices are coloured permutations \(\pi = p_1p_2\cdots p_n\), where each \(p_i\) has an associated colour in \(\{0,1,\ldots , k\,-\,1\}\). There is a directed edge \((\pi _1,\pi _2)\) if \(\pi _2\) can be obtained from \(\pi _1\) by a “flip” of length j, which reverses the first j elements and increments their colour modulo k. Our particular cycle is created using a greedy min-flip strategy, and the average flip length of the edges we use is bounded by a constant. By reinterpreting the order recursively, we can generate successive coloured permutations in O(1)-amortized time, or each successive flip by a loop-free algorithm. We also show how to compute the successor of any coloured permutation in O(n)-time. Our greedy min-flip construction generalizes known Hamilton cycles for the pancake network (where \(k=1\)) and the burnt pancake network (where \(k=2\)). Interestingly, a greedy max-flip strategy works on the pancake and burnt pancake networks, but it does not work on the k-sided network when \(k>2\).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Some unusual data structures can support flips of any lengths in constant-time [25].
References
Akers, S., Krishnamurthy, B.: A group-theoretic model for symmetric interconnection networks. IEEE Trans. Comput. 38(4), 555–566 (1989)
Athanasiadis, C.A.: Binomial Eulerian polynomials for colored permutations. J. Comb. Theory Ser. A 173, 105214 (2020)
Bagno, E., Garber, D., Mansour, T.: On the group of alternating colored permutations. Electron. J. Comb. 21(2), 2.29 (2014)
Borodin, A.: Longest increasing subsequences of random colored permutations. Electron. J. Comb. 6(13), 12 (1999)
Chen, W.Y.C., Gao, H.Y., He, J.: Labeled partitions with colored permutations. Discret. Math. 309(21), 6235–6244 (2009)
Cohen, D.S., Blum, M.: On the problem of sorting burnt pancakes. Discret. Appl. Math. 61(2), 105–120 (1995)
COS++: The Combinatorial Object Server. http://combos.org/cperm
Duane, A., Remmel, J.: Minimal overlapping patterns in colored permutations. Electron. J. Comb. 18(2), 38 (2011). Paper 25
Dweighter, H.: Problem E2569. Am. Math. Mon. 82, 1010 (1975)
Essed, H., Therese, W.: The harassed waitress problem. In: Ferro, A., Luccio, F., Widmayer, P. (eds.) Fun with Algorithms. FUN 2014. Lecture Notes in Computer Science, vol. 8496. Springer, Cham (2014). https://doi.org/10.1007/978-3-319-07890-8_28
Fertin, G., Labarre, A., Rusu, I., Vialette, S., Tannier, E.: Combinatorics of Genome Rearrangements. MIT Press, Cambridge (2009)
Gates, W.H., Papadimitriou, C.H.: Bounds for sorting by prefix reversal. Discret. Math. 27(1), 47–57 (1979)
Gray, F.: Pulse code communication. U.S. Patent 2,632,058 (1947)
Heydari, M.H., Sudborough, I.H.: On the diameter of the pancake network. J. Algorithms 25(1), 67–94 (1997)
Justan, M.P., Muga, F.P., Sudborough, I.H.: On the generalization of the pancake network. In: Proceedings International Symposium on Parallel Architectures, Algorithms and Networks. I-SPAN 2002, pp. 173–178 (2002)
Kaneko, K.: Hamiltonian cycles and Hamiltonian paths in faulty burnt pancake graphs. IEICE - Trans. Inf. Syst. E90-D(4), 716–721 (2007)
Knuth, D.E.: The Art of Computer Programming, volume 4: Combinatorial Algorithms, Part 1. Addison-Wesley (2010)
Mansour, T.: Pattern avoidance in coloured permutations. Sém. Lothar. Combin. 46, B46g-12 (2001)
Mansour, T.: Coloured permutations containing and avoiding certain patterns. Ann. Comb. 7(3), 349–355 (2003)
Sawada, J., Williams, A.: Greedy flipping of pancakes and burnt pancakes. Discret. Appl. Math. 210, 61–74 (2016)
Sawada, J., Williams, A.: Successor rules for flipping pancakes and burnt pancakes. Theoret. Comput. Sci. 609(part 1), 60–75 (2016)
Sedgewick, R.: Permutations generation methods. ACM Comput. Surv. 9(2), 137–164 (1977)
Shin, H., Zeng, J.: Symmetric unimodal expansions of excedances in colored permutations. Eur. J. Comb. 52(part A), 174–196 (2016)
Singh, S.: Flipping pancakes with mathematics. The Guardian (2013)
Williams, A.: O(1)-time unsorting by prefix-reversals in a boustrophedon linked list. In: Boldi, P., Gargano, L. (eds.) FUN 2010. LNCS, vol. 6099, pp. 368–379. Springer, Heidelberg (2010). https://doi.org/10.1007/978-3-642-13122-6_35
Williams, A.: The greedy gray code algorithm. In: Dehne, F., Solis-Oba, R., Sack, J.-R. (eds.) WADS 2013. LNCS, vol. 8037, pp. 525–536. Springer, Heidelberg (2013). https://doi.org/10.1007/978-3-642-40104-6_46
Zaks, S.: A new algorithm for generation of permutations. BIT 24(2), 196–204 (1984)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2021 Springer Nature Switzerland AG
About this paper
Cite this paper
Cameron, B., Sawada, J., Williams, A. (2021). A Hamilton Cycle in the k-Sided Pancake Network. In: Flocchini, P., Moura, L. (eds) Combinatorial Algorithms. IWOCA 2021. Lecture Notes in Computer Science(), vol 12757. Springer, Cham. https://doi.org/10.1007/978-3-030-79987-8_10
Download citation
DOI: https://doi.org/10.1007/978-3-030-79987-8_10
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-79986-1
Online ISBN: 978-3-030-79987-8
eBook Packages: Computer ScienceComputer Science (R0)