Skip to main content

A Hamilton Cycle in the k-Sided Pancake Network

  • Conference paper
  • First Online:
Combinatorial Algorithms (IWOCA 2021)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 12757))

Included in the following conference series:

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\).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 99.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Some unusual data structures can support flips of any lengths in constant-time [25].

References

  1. Akers, S., Krishnamurthy, B.: A group-theoretic model for symmetric interconnection networks. IEEE Trans. Comput. 38(4), 555–566 (1989)

    Article  MathSciNet  Google Scholar 

  2. Athanasiadis, C.A.: Binomial Eulerian polynomials for colored permutations. J. Comb. Theory Ser. A 173, 105214 (2020)

    Article  MathSciNet  Google Scholar 

  3. Bagno, E., Garber, D., Mansour, T.: On the group of alternating colored permutations. Electron. J. Comb. 21(2), 2.29 (2014)

    Google Scholar 

  4. Borodin, A.: Longest increasing subsequences of random colored permutations. Electron. J. Comb. 6(13), 12 (1999)

    MathSciNet  MATH  Google Scholar 

  5. Chen, W.Y.C., Gao, H.Y., He, J.: Labeled partitions with colored permutations. Discret. Math. 309(21), 6235–6244 (2009)

    Article  MathSciNet  Google Scholar 

  6. Cohen, D.S., Blum, M.: On the problem of sorting burnt pancakes. Discret. Appl. Math. 61(2), 105–120 (1995)

    Article  MathSciNet  Google Scholar 

  7. COS++: The Combinatorial Object Server. http://combos.org/cperm

  8. Duane, A., Remmel, J.: Minimal overlapping patterns in colored permutations. Electron. J. Comb. 18(2), 38 (2011). Paper 25

    MathSciNet  MATH  Google Scholar 

  9. Dweighter, H.: Problem E2569. Am. Math. Mon. 82, 1010 (1975)

    Article  MathSciNet  Google Scholar 

  10. 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

  11. Fertin, G., Labarre, A., Rusu, I., Vialette, S., Tannier, E.: Combinatorics of Genome Rearrangements. MIT Press, Cambridge (2009)

    Book  Google Scholar 

  12. Gates, W.H., Papadimitriou, C.H.: Bounds for sorting by prefix reversal. Discret. Math. 27(1), 47–57 (1979)

    Article  MathSciNet  Google Scholar 

  13. Gray, F.: Pulse code communication. U.S. Patent 2,632,058 (1947)

    Google Scholar 

  14. Heydari, M.H., Sudborough, I.H.: On the diameter of the pancake network. J. Algorithms 25(1), 67–94 (1997)

    Article  MathSciNet  Google Scholar 

  15. 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)

    Google Scholar 

  16. Kaneko, K.: Hamiltonian cycles and Hamiltonian paths in faulty burnt pancake graphs. IEICE - Trans. Inf. Syst. E90-D(4), 716–721 (2007)

    Google Scholar 

  17. Knuth, D.E.: The Art of Computer Programming, volume 4: Combinatorial Algorithms, Part 1. Addison-Wesley (2010)

    Google Scholar 

  18. Mansour, T.: Pattern avoidance in coloured permutations. Sém. Lothar. Combin. 46, B46g-12 (2001)

    Google Scholar 

  19. Mansour, T.: Coloured permutations containing and avoiding certain patterns. Ann. Comb. 7(3), 349–355 (2003)

    Article  MathSciNet  Google Scholar 

  20. Sawada, J., Williams, A.: Greedy flipping of pancakes and burnt pancakes. Discret. Appl. Math. 210, 61–74 (2016)

    Article  MathSciNet  Google Scholar 

  21. Sawada, J., Williams, A.: Successor rules for flipping pancakes and burnt pancakes. Theoret. Comput. Sci. 609(part 1), 60–75 (2016)

    Google Scholar 

  22. Sedgewick, R.: Permutations generation methods. ACM Comput. Surv. 9(2), 137–164 (1977)

    Article  MathSciNet  Google Scholar 

  23. Shin, H., Zeng, J.: Symmetric unimodal expansions of excedances in colored permutations. Eur. J. Comb. 52(part A), 174–196 (2016)

    Google Scholar 

  24. Singh, S.: Flipping pancakes with mathematics. The Guardian (2013)

    Google Scholar 

  25. 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

    Chapter  Google Scholar 

  26. 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

    Chapter  Google Scholar 

  27. Zaks, S.: A new algorithm for generation of permutations. BIT 24(2), 196–204 (1984)

    Article  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to J. Sawada .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics