1,314 research outputs found

    Pancake Flipping is Hard

    Get PDF
    Pancake Flipping is the problem of sorting a stack of pancakes of different sizes (that is, a permutation), when the only allowed operation is to insert a spatula anywhere in the stack and to flip the pancakes above it (that is, to perform a prefix reversal). In the burnt variant, one side of each pancake is marked as burnt, and it is required to finish with all pancakes having the burnt side down. Computing the optimal scenario for any stack of pancakes and determining the worst-case stack for any stack size have been challenges over more than three decades. Beyond being an intriguing combinatorial problem in itself, it also yields applications, e.g. in parallel computing and computational biology. In this paper, we show that the Pancake Flipping problem, in its original (unburnt) variant, is NP-hard, thus answering the long-standing question of its computational complexity.Comment: Corrected reference

    Polynomial-time sortable stacks of burnt pancakes

    Get PDF
    Pancake flipping, a famous open problem in computer science, can be formalised as the problem of sorting a permutation of positive integers using as few prefix reversals as possible. In that context, a prefix reversal of length k reverses the order of the first k elements of the permutation. The burnt variant of pancake flipping involves permutations of signed integers, and reversals in that case not only reverse the order of elements but also invert their signs. Although three decades have now passed since the first works on these problems, neither their computational complexity nor the maximal number of prefix reversals needed to sort a permutation is yet known. In this work, we prove a new lower bound for sorting burnt pancakes, and show that an important class of permutations, known as "simple permutations", can be optimally sorted in polynomial time.Comment: Accepted pending minor revisio

    On the number of pancake stacks requiring four flips to be sorted

    Full text link
    Using existing classification results for the 7- and 8-cycles in the pancake graph, we determine the number of permutations that require 4 pancake flips (prefix reversals) to be sorted. A similar characterization of the 8-cycles in the burnt pancake graph, due to the authors, is used to derive a formula for the number of signed permutations requiring 4 (burnt) pancake flips to be sorted. We furthermore provide an analogous characterization of the 9-cycles in the burnt pancake graph. Finally we present numerical evidence that polynomial formulae exist giving the number of signed permutations that require kk flips to be sorted, with 5k95\leq k\leq9.Comment: We have finalized for the paper for publication in DMTCS, updated a reference to its published version, moved the abstract to its proper location, and added a thank you to the referees. The paper has 27 pages, 6 figures, and 2 table

    Cycles in the burnt pancake graphs

    Full text link
    The pancake graph PnP_n is the Cayley graph of the symmetric group SnS_n on nn elements generated by prefix reversals. PnP_n has been shown to have properties that makes it a useful network scheme for parallel processors. For example, it is (n1)(n-1)-regular, vertex-transitive, and one can embed cycles in it of length \ell with 6n!6\leq\ell\leq n!. The burnt pancake graph BPnBP_n, which is the Cayley graph of the group of signed permutations BnB_n using prefix reversals as generators, has similar properties. Indeed, BPnBP_n is nn-regular and vertex-transitive. In this paper, we show that BPnBP_n has every cycle of length \ell with 82nn!8\leq\ell\leq 2^n n!. The proof given is a constructive one that utilizes the recursive structure of BPnBP_n. We also present a complete characterization of all the 88-cycles in BPnBP_n for n2n \geq 2, which are the smallest cycles embeddable in BPnBP_n, by presenting their canonical forms as products of the prefix reversal generators.Comment: Added a reference, clarified some definitions, fixed some typos. 42 pages, 9 figures, 20 pages of appendice

    A “Learning Revolution”? Investigating Pedagogic Practices around Interactive Whiteboards in British Primary Classrooms

    Get PDF
    Interactive whiteboards have been rapidly introduced into all primary schools under UK Government initiatives. These large, touch-sensitive screens, which control a computer connected to a digital projector, seem to be the first type of educational technology particularly suited for whole-class teaching and learning. Strong claims are made for their value by manufacturers and policy makers, but there has been little research on how, if at all, they influence established pedagogic practices, communicative processes and educational goals. This study has been designed to examine this issue, using observations in primary (elementary) school classrooms. It is funded by the UK Economic and Social Research Council and builds on the authors’ previous research on ICT in educational dialogues and collaborative activities
    corecore