The original pancake problem The minimum number of flips required to sort any stack of pancakes has been shown to lie between and (approximately 1.07
n and 1.64
n), but the exact value is not known. The simplest pancake sorting algorithm performs at most flips. In this algorithm, a kind of
selection sort, we bring the largest pancake not yet sorted to the top with one flip; take it down to its final position with one more flip; and repeat this process for the remaining pancakes. In 1979,
Bill Gates and
Christos Papadimitriou In 2011, Laurent Bulteau, Guillaume Fertin, and Irena Rusu 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.
The burnt pancake problem 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. In 2008, a group of undergraduates built a
bacterial computer that can solve a simple example of the burnt pancake problem by programming
E. coli to flip segments of DNA which are analogous to burnt pancakes. DNA has an orientation (5' and 3') and an order (promoter before coding). Even though the processing power expressed by DNA flips is low, the high number of bacteria in a culture provides a large
parallel computing platform. The bacteria report when they have solved the problem by becoming antibiotic resistant. ==The pancake problem on strings==