Skip to main content

An Experimental Investigation on the Pancake Problem

  • Conference paper
  • First Online:
Computer Games (CGW 2015, GIGA 2015)

Part of the book series: Communications in Computer and Information Science ((CCIS,volume 614))

Abstract

In this paper, we present an experimental investigation on the pancake problem. Also called sorting by prefix reversals (SBPR), this problem is linked to the genome rearrangement problem also called sorting by reversals (SBR). The pancake problem is a NP-hard problem. Until now, the best theoretical R-approximation was 2 with an algorithm, which gives a 1.22 experimental R-approximation on stacks with a size inferior to 70. In the current work, we used a Monte-Carlo Search (MCS) approach with nested levels and specific domain-dependent simulations. First, in order to sort large stacks of pancakes, we show that MCS is a relevant alternative to Iterative Deepening Depth First Search (IDDFS). Secondly, at a given level and with a given number of polynomial-time domain-dependent simulations, MCS is a polynomial-time algorithm as well. We observed that MCS at level 3 gives a 1.04 experimental R-approximation, which is a breakthrough. At level 1, MCS solves stacks of size 512 with an experimental R-approximation value of 1.20.

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 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.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

References

  1. Asai, S., Kounoike, Y., Shinano, Y., Kaneko, K.: Computing the diameter of 17-pancake graph using a PC cluster. In: Nagel, W.E., Walter, W.V., Lehner, W. (eds.) Euro-Par 2006. LNCS, vol. 4128, pp. 1114–1124. Springer, Heidelberg (2006)

    Chapter  Google Scholar 

  2. Auyeung, A., Abraham, A.: Estimating genome reversal distance by genetic algorithm. In: The 2003 Congress on Evolutionary Computation (CEC 2003), vol. 2, pp. 1157–1161. IEEE (2003)

    Google Scholar 

  3. Bader, D., Moret, B., Yan, M.: A linear-time algorithm for computing inversion distance between signed permutation with an experimental study. In: WADS, pp. 365–376 (2001)

    Google Scholar 

  4. Bafna, V., Pevzner, P.: Genome rearrangements and sorting by reversals. In: FoCS (1993)

    Google Scholar 

  5. Bergeron, A.: A very elementary presentation of the Hannenhalli-Pevzner theory. DAM 146(2), 134–145 (2005)

    MathSciNet  MATH  Google Scholar 

  6. Berman, P., Hannenhalli, S.: Fast sorting by reversal. In: 7th Symposium on Combinatorial Pattern Matching, pp. 168–185 (1996)

    Google Scholar 

  7. Berman, P., Hannenhalli, S., Karpinski, M.: 1.375-approximation algorithm for sorting by reversals. Technical report, 41, DIMACS (2001)

    Google Scholar 

  8. Berman, P., Karpinski, M.: On some tighter inapproximability results. Technical report, 23, DIMACS (1999)

    Google Scholar 

  9. Bouzy, B.: Monte-Carlo fork search for cooperative path-finding. In: Cazenave, T., Winands, M.H.M., Iida, H. (eds.) Workshop on Computer Games (CGW 2013), vol. 408, pp. 1–15. CCIS (2013)

    Google Scholar 

  10. Bulteau, L.: Algorithmic aspects of genome rearrangements. Ph.D. thesis, Université de Nantes (2013)

    Google Scholar 

  11. Bulteau, L., Fertin, G., Rusu, I.: Pancake flipping is hard. In: Rovan, B., Sassone, V., Widmayer, P. (eds.) MFCS 2012. LNCS, vol. 7464, pp. 247–258. Springer, Heidelberg (2012)

    Chapter  Google Scholar 

  12. Caprara, A.: Sorting by reversals is difficult. In: ICCMB, pp. 75–83 (1997)

    Google Scholar 

  13. Cazenave, T.: Nested Monte-Carlo search. In: IJCAI, pp. 456–461 (2009)

    Google Scholar 

  14. Cazenave, T.: Nested Monte-Carlo expression discovery. In: ECAI, pp. 1057–1058. Lisbon (2010)

    Google Scholar 

  15. Chitturi, B., Fahle, W., Meng, Z., Morales, L., Shields, C.O., Sudborough, I.H., Voit, W.: A (18/11)n upper bound for sorting by reversals. TCS 410, 3372–3390 (2009)

    Article  MathSciNet  MATH  Google Scholar 

  16. Christie, D.: A 3/2 approximation algorithm for sorting by reversals. In: 9th SIAM Symposium on Discrete Algorithms (1998)

    Google Scholar 

  17. Christie, D.: Genome rearrangement problems. Ph.D. thesis, University of Glasgow (1998)

    Google Scholar 

  18. Cibulka, J.: Average number of flips in pancake sorting. TCS 412, 822–834 (2011)

    Article  MathSciNet  MATH  Google Scholar 

  19. Cohen, D., Blum, M.: On the problem of sorting burnt pancakes. DAM 61(2), 105–120 (1995)

    MathSciNet  MATH  Google Scholar 

  20. Eliahou, S., Fonlupt, C., Fromentin, J., Marion-Poty, V., Robilliard, D., Teytaud, F.: Investigating Monte-Carlo methods on the weak Schur problem. In: Middendorf, M., Blum, C. (eds.) EvoCOP 2013. LNCS, vol. 7832, pp. 191–201. Springer, Heidelberg (2013)

    Chapter  Google Scholar 

  21. Fischer, J., Ginzinger, S.W.: A 2-approximation algorithm for sorting by prefix reversals. In: Brodal, G.S., Leonardi, S. (eds.) ESA 2005. LNCS, vol. 3669, pp. 415–425. Springer, Heidelberg (2005)

    Chapter  Google Scholar 

  22. Gates, W., Papadimitriou, C.: Bounds for sorting by prefix reversal. Discrete Math. 27, 47–57 (1979)

    Article  MathSciNet  MATH  Google Scholar 

  23. Hannenhalli, S., Pevzner, P.: Transforming cabbage into turnip: polynomial algorithm for sorting signed permutations by reversals. J. ACM 46(1), 1–27 (1995)

    Article  MathSciNet  MATH  Google Scholar 

  24. Hayes, B.: Sorting out the genome. Am. Sci. 95, 386–391 (2007)

    Article  Google Scholar 

  25. Helmert, M.: Landmark heuristics for the pancake problem. In: SoCS, pp. 109–110 (2010)

    Google Scholar 

  26. Heydari, M., Sudborough, H.: On the diameter of the pancake problem. J. Algorithms 25, 67–94 (1997)

    Article  MathSciNet  MATH  Google Scholar 

  27. Kaplan, H., Shamir, R., Tarjan, R.E.: Faster and simpler algorithm for sorting signed permutationd by reversals. In: Proceedings of the Eighth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 1997), pp. 344–351 (1997)

    Google Scholar 

  28. Kaplan, H., Verbin, E.: Efficient data structures and a new randomized approach for sorting signed permutations by reversals. In: Baeza-Yates, R., Chávez, E., Crochemore, M. (eds.) CPM 2003. LNCS, vol. 2676, pp. 170–185. Springer, Heidelberg (2003)

    Chapter  Google Scholar 

  29. Kececioglu, J., Sankoff, D.: Exact and approximation algorithms for sorting by reversals with application to genome rearrangement. Algorithmica 13, 180–210 (1992)

    Article  MathSciNet  MATH  Google Scholar 

  30. Korf, R.: Depth-first iterative-deepening: an optimal admissible tree search. Artif. Intell. 27(1), 97–109 (1985)

    Article  MathSciNet  MATH  Google Scholar 

  31. Labarre, A., Cibulka, J.: Polynomial-time sortable stacks of burnt pancakes. TCS 412, 695–702 (2011)

    Article  MathSciNet  MATH  Google Scholar 

  32. Méhat, J., Cazenave, T.: Combining UCT and nested Monte-Carlo search for single-player general game playing. IEEE Trans. Comput. Intell. AI Games 2(4), 271–277 (2010)

    Article  Google Scholar 

  33. Nguyen, Q., Bettayeb, S.: On the genus of pancake nerwork. IAJIT 8(3), 289 (2011)

    Google Scholar 

  34. Rokicki, T.: Pancake entry (2004). http://tomas.rokicki.com/pancake/

  35. Rosin, C.D.: Nested rollout policy adaptation for Monte Carlo- tree search. In: IJCAI, pp. 649–654 (2011)

    Google Scholar 

  36. Soncco-Alvarez, J.L., Ayala-Rincon, M.: A genetic approach with a simple fitness function for sorting unsigned permutations by reversals. In: 7th Colombian Computing Congress (CCC). IEEE (2012)

    Google Scholar 

  37. Tannier, E., Bergeron, A., Sagot, M.F.: Advances on sorting by reversals. DAM 155(6–7), 881–888 (2006)

    MathSciNet  MATH  Google Scholar 

  38. Tannier, E., Sagot, M.F.: Sorting by reversals in subquadratic time. In: SCPM (2004)

    Google Scholar 

  39. Tesler, G.: GRIMM: genome rearrangements web server. Bioinformatics 18(3), 492–493 (2002)

    Article  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Bruno Bouzy .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer International Publishing Switzerland

About this paper

Cite this paper

Bouzy, B. (2016). An Experimental Investigation on the Pancake Problem. In: Cazenave, T., Winands, M., Edelkamp, S., Schiffel, S., Thielscher, M., Togelius, J. (eds) Computer Games. CGW GIGA 2015 2015. Communications in Computer and Information Science, vol 614. Springer, Cham. https://doi.org/10.1007/978-3-319-39402-2_3

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-39402-2_3

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-39401-5

  • Online ISBN: 978-3-319-39402-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics