Average number of flips in pancake sorting

Computer Science – Discrete Mathematics

Scientific paper

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

21 pages, new computational results for unburnt pancakes (up to n=19)

Scientific paper

10.1016/j.tcs.2010.11.028

We are given a stack of pancakes of different sizes and the only allowed operation is to take several pancakes from top and flip them. The unburnt version requires the pancakes to be sorted by their sizes at the end, while in the burnt version they additionally need to be oriented burnt-side down. We present an algorithm with the average number of flips, needed to sort a stack of n burnt pancakes, equal to 7n/4+O(1) and a randomized algorithm for the unburnt version with at most 17n/12+O(1) flips on average. In addition, we show that in the burnt version, the average number of flips of any algorithm is at least n+\Omega(n/log n) and conjecture that some algorithm can reach n+\Theta(n/log n). We also slightly increase the lower bound on g(n), the minimum number of flips needed to sort the worst stack of n burnt pancakes. This bound, together with the upper bound found by Heydari and Sudborough in 1997, gives the exact number of flips to sort the previously conjectured worst stack -I_n for n=3 mod 4 and n>=15. Finally we present exact values of f(n) up to n=19 and of g(n) up to n=17 and disprove a conjecture of Cohen and Blum by showing that the burnt stack -I_{15} is not the worst one for n=15.

No associations

LandOfFree

Say what you really think

Search LandOfFree.com for scientists and scientific papers. Rate them and share your experience with other people.

Rating

Average number of flips in pancake sorting does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.

If you have personal experience with Average number of flips in pancake sorting, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Average number of flips in pancake sorting will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFWR-SCP-O-683777

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.