SearcharxivSearch

arXiv · 1601.06278

Fortuitous sequences of flips of the top of a stack of n burnt pancakes for all n>24

Abstract

Burnt pancakes problem was defined by Gates and Papadimitriou in 1979. A stack $S$ of pancakes with a burnt side must be sorted by size, the smallest on top, and each pancake with burnt side down. The only operation allowed is to split stack in two parts and flip upper part. $g(S)$ is the minimal number of flips needed to sort stack $S$. Stack $S$ may be $-I_n$ when pancakes are in right order but upside down or $-f_n$ when all pancakes are right side up but sorted in reverse order. Gates et al. proved that $g(-f_n)\ge 3n/2-1$. In 1995 Cohen and Blum proved that $g(-I_n)=g(-f_n)+1\ge 3n/2$. In 1997 Heydari and Sudborough proved that $g(-I_n)\le 3(n+1)/2$ whenever some fortuitous sequence of flips exists. They gave fortuitous sequences for $n$=3, 15, 27 and 31. They showed that two fortuitous sequences $S_n$ and $S_{n'}$ may combine into another fortuitous sequence $S_{n''}$ with $n''=n+n'-3$. So a fortuitous sequence $S_n$ gives a fortuitous sequence $S_{n+12}$. This proves that $g(-I_n)\le 3(n+1)/2$ if $n$ is congruent to 3 modulo 4 and $n\ge 23$. In 2011 Josef Cibulka enhanced Gates and Papadimitriou's lower bound thanks to a potential function. He got so $g(-I_n)\ge3n/2+1$ if $n > 1$ proving thereby, that $g(-I_n)=3(n+1)/2$ if $n$ is congruent to 3 modulo 4 and $n\ge 23$. This paper explains how to build generalized fortuitous sequences for $n=15, 19, 23$ and every $n\ge 25$, odd or even, proving thereby that $g(-I_n)=\lceil 3n/2\rceil+1$ for these $n$. It gives $g(-I_n)$ for all $n$.

Explore related subjects

Keep this discovery

BibTeXRIS

Laurent Pierre. 2016-01-23. Fortuitous sequences of flips of the top of a stack of n burnt pancakes for all n>24. https://arxiv.org/abs/1601.06278

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

An FPTAS for Two-Machine Open-Shop Scheduling with a Single Unavailability Interval

We consider the two-machine open-shop scheduling problem in which one machine is unavailable during a fixed interval. We study the resumable setting: an operation interrupted by the unavailability interval may resume, without penalty, when the machine becomes available. The objective is to minimize the makespan. Although the problem is NP-hard and several approximation algorithms are known, whether it admits a fully polynomial-time approximation scheme (FPTAS) has remained open for two decades. We resolve this question affirmatively by giving the first FPTAS, thereby strengthening the previously known polynomial-time approximation scheme (PTAS). As an intermediate result, we develop a new pseudo-polynomial dynamic program with seven state dimensions, improving on the ten-dimensional formulation in the literature.

cs.DM

Generalized Graph Search Trees

Graph search algorithms and their corresponding graph search trees are commonly used in algorithmic graph theory. In recent years, the recognition problem of these graph search trees has received significant attention. So far, the research has focused on two types of search trees: first-in trees that behave like BFS-trees and last-in trees that behave like DFS-trees. The search tree paradigms differ from each other by the parent a vertex is connected to. In first-in trees, it is the first visited neighbor, while in last-in trees it is the last neighbor visited before that vertex. Here, we will generalize these concepts of graph search trees by allowing every preceding neighbor of a vertex to be the parent. We study the complexity of the recognition problem of these generalized graph search trees. We present NP-completeness proofs for most searches. We also show that the problem is trivial for Generic Search and polynomial-time solvable for several searches on bipartite graphs and chordal graphs. We also study the question how fixing the start vertex influences the complexity of the problem.

cs.DM

The exact asymptotic constant in the metric dimension of Jaccard space

Let $X$ be a finite set with $|X|=n$ and let $\mathrm{Jac}(a,b)=|a\,\triangle\, b|/|a\cup b|$ be the Jaccard distance on the power set $2^X$. Lladser and Paradise recently proved that the metric dimension of $(2^X,\mathrm{Jac})$ is $\Theta(n/\ln n)$, with the constant left open; their bounds are $(\ln 2)\,n/\ln n\lesssim \beta(2^X,\mathrm{Jac})\lesssim 2\ln(2e)\,n/\ln n$. We determine the constant: \[ \beta(2^X,\mathrm{Jac})=\frac{2n}{\log_2 n}\,(1+o(1))=(2\ln 2)\,\frac{n}{\ln n}\,(1+o(1)). \] The proof identifies the problem, on each ``slice'' of subsets of fixed cardinality, with the Erd\H{o}s--R\'enyi coin-weighing problem for a spring scale (the problem of \emph{detecting matrices}). The lower bound is the Erd\H{o}s--R\'enyi entropy argument applied to the middle slice; the upper bound follows from the explicit detecting families of Lindstr\"om and of Cantor and Mills, augmented by a single extra landmark that reveals cardinality.

cs.DM