English

Exact number of flips required to sort a burnt stack of pancakes

Combinatorics 2026-05-28 v2 Discrete Mathematics

Abstract

In this work, we consider the burnt pancake problem, which is a well-studied problem going back to a work of Gates and Papadimitriou from 1979.The problem is to sort a stack of~nn one-sided burnt pancakes of different sizes, by a sequence of flips of the top pancakes, such that at the end of the flipping sequence the pancakes have increasing size and the burnt sides of all pancakes are face-down. The pancakes are denoted by 1,2,,n 1,2,\dots,n, and a number is multiplied by 1-1, if the corresponding pancake has burnt side face-up. Let T(n)T(n) be the minimum number of flips to sort a special stack of nn pancakes, namely In:=[1,2,...,n]\overline{I_n} := [-1,-2,...,-n]. The instance In\overline{I_n} has strong relevance because of its easy structure and as it has been shown to be a worst-case instance for several small nn. Heydari and Sudborough gave in 1997 the currently best upper bound of T(n)T(n), namely (3n+3)/2 \lfloor (3n+3)/2 \rfloor for n3mod4 n \equiv 3 \bmod 4, which later has been shown to be exact by a work of Cibulka from 2011. Except these two works, no progress regarding lower and upper bounds has been made until now. In our work, we present that (3n+3)/2 \lfloor (3n+3)/2 \rfloor is also an upper bound of T(n)T(n) for n1mod4n \equiv 1 \bmod 4 , which again matches the lower bound of Cibulka in 2011 and thus is exact. Furthermore, we show that our construction approach for n1mod4n \equiv 1 \bmod 4 and the one of Heydari and Sudborough for n3mod4n \equiv 3 \bmod 4 cannot be applied for even nn. However, as there might be different construction approaches, the case of even nn remains an open problem, where two possible values for T(n)T(n) are possible, namely (3/2)n+1 (3/2)n + 1 or (3/2)n+2 (3/2)n + 2 . Finally, we found two values, namely n=24n=24, n=26n=26, where the lower bound is attained.

Keywords

Cite

@article{arxiv.2601.09447,
  title  = {Exact number of flips required to sort a burnt stack of pancakes},
  author = {Gerold Jäger and Nacim Oijid},
  journal= {arXiv preprint arXiv:2601.09447},
  year   = {2026}
}