Tetsuo JAIST EikD Erik D. Martin L. MIT

Similar documents
Ryuhei Uehara JAIST. or, ask with uehara origami 1/33

Kaboozle Is NP-complete, even in a Strip

Folding a Paper Strip to Minimize Thickness

arxiv: v1 [cs.cc] 21 Jun 2017

Crease pattern of Mooser's Train removed due to copyright restrictions. Refer to: Fig from Lang, Robert J. Origami Design Secrets: Mathematical

Variations on Instant Insanity

STRATEGY AND COMPLEXITY OF THE GAME OF SQUARES

Lecture 20 November 13, 2014

MA 524 Midterm Solutions October 16, 2018

HIROIMONO is N P-complete

Introduction to Algorithms and Data Structures

Algorithms and Complexity for Japanese Puzzles

Tiling Problems. This document supersedes the earlier notes posted about the tiling problem. 1 An Undecidable Problem about Tilings of the Plane

The Complexity of Generalized Pipe Link Puzzles

arxiv: v2 [cs.cc] 29 Dec 2017

#A13 INTEGERS 15 (2015) THE LOCATION OF THE FIRST ASCENT IN A 123-AVOIDING PERMUTATION

How hard are computer games? Graham Cormode, DIMACS

Lecture 19 November 6, 2014

Pattern Avoidance in Unimodal and V-unimodal Permutations

UNO is hard, even for a single player

Problem Set 4 Due: Wednesday, November 12th, 2014

arxiv: v1 [math.co] 24 Nov 2018

Solving the Rubik s Cube Optimally is NP-complete

Non-overlapping permutation patterns

Physical Zero-Knowledge Proof: From Sudoku to Nonogram

Notes for Recitation 3

Hanabi is NP-complete, Even for Cheaters who Look at Their Cards,,

Super Mario. Martin Ivanov ETH Zürich 5/27/2015 1

A Peg Solitaire Font

Graphs of Tilings. Patrick Callahan, University of California Office of the President, Oakland, CA

To Your Hearts Content

Week 1. 1 What Is Combinatorics?

Some algorithmic and combinatorial problems on permutation classes

Modular Arithmetic. claserken. July 2016

Herugolf and Makaro are NP-complete

NON-OVERLAPPING PERMUTATION PATTERNS. To Doron Zeilberger, for his Sixtieth Birthday

Is there still no software for the fold-and-cut problem? I was totally expecting you to pull out some cool app for it.

Some results on Su Doku

The Classification of Quadratic Rook Polynomials of a Generalized Three Dimensional Board

depth parallel time width hardware number of gates computational work sequential time Theorem: For all, CRAM AC AC ThC NC L NL sac AC ThC NC sac

An Optimal Algorithm for a Strategy Game

SOLITAIRE CLOBBER AS AN OPTIMIZATION PROBLEM ON WORDS

Even 1 n Edge-Matching and Jigsaw Puzzles are Really Hard

II Year (04 Semester) EE6403 Discrete Time Systems and Signal Processing

Faithful Representations of Graphs by Islands in the Extended Grid

UNO is hard, even for a single playe. Demaine, Erik D.; Demaine, Martin L. Citation Theoretical Computer Science, 521: 5

Unique Sequences Containing No k-term Arithmetic Progressions

Narrow misère Dots-and-Boxes

Techniques for Generating Sudoku Instances

Permutation Groups. Definition and Notation

Question Score Max Cover Total 149

Easy to Win, Hard to Master:

Tetris is Hard, Even to Approximate

Education Resources. This section is designed to provide examples which develop routine skills necessary for completion of this section.

Convergence in competitive games

Planning to Fold Multiple Objects from a Single Self-Folding Sheet

arxiv: v1 [cs.ds] 17 Jul 2013

Dyck paths, standard Young tableaux, and pattern avoiding permutations

A 2-Approximation Algorithm for Sorting by Prefix Reversals

Proofs of a Trigonometric Inequality

An interesting class of problems of a computational nature ask for the standard residue of a power of a number, e.g.,

LECTURE 7: POLYNOMIAL CONGRUENCES TO PRIME POWER MODULI

Light Up is NP-complete

The Computational Complexity of Angry Birds and Similar Physics-Simulation Games

Hanabi is NP-Complete, Even for Cheaters Who Look at Their Cards

Spiral Galaxies Font

arxiv:cs/ v2 [cs.cc] 27 Jul 2001

arxiv: v1 [cs.cc] 28 Jun 2015

Fast Sorting and Pattern-Avoiding Permutations

Scrabble is PSPACE-Complete

Principle of Inclusion-Exclusion Notes

Sequences. like 1, 2, 3, 4 while you are doing a dance or movement? Have you ever group things into

ECE313 Summer Problem Set 4. Reading: RVs, mean, variance, and coniditional probability

Plan. Related courses. A Take-Away Game. Mathematical Games , (21-801) - Mathematical Games Look for it in Spring 11

Weighted Polya Theorem. Solitaire

arxiv: v1 [math.co] 12 Jan 2017

The Problem. Tom Davis December 19, 2016

Constructing Simple Nonograms of Varying Difficulty

UNO Gets Easier for a Single Player

Solving Triangular Peg Solitaire

arxiv: v2 [math.gt] 21 Mar 2018

The Complexity of Flat Origami. Abstract. We study a basic problem in mathematical origami: determine if a given crease

In Response to Peg Jumping for Fun and Profit

1. Functions and set sizes 2. Infinite set sizes. ! Let X,Y be finite sets, f:x!y a function. ! Theorem: If f is injective then X Y.

Problem A To and Fro (Problem appeared in the 2004/2005 Regional Competition in North America East Central.)

Teaching the TERNARY BASE

Topics to be covered

Section Summary. Finite Probability Probabilities of Complements and Unions of Events Probabilistic Reasoning

Lecture Notes 3: Paging, K-Server and Metric Spaces

From Flapping Birds to Space Telescopes: The Modern Science of Origami

11.7 Maximum and Minimum Values

Cardinality revisited

MAT3707. Tutorial letter 202/1/2017 DISCRETE MATHEMATICS: COMBINATORICS. Semester 1. Department of Mathematical Sciences MAT3707/202/1/2017

Goal-Directed Tableaux

Permutation Groups. Every permutation can be written as a product of disjoint cycles. This factorization is unique up to the order of the factors.

PROOFS OF SOME BINOMIAL IDENTITIES USING THE METHOD OF LAST SQUARES

Lecture 7: The Principle of Deferred Decisions

Fixing Balanced Knockout and Double Elimination Tournaments

The Chinese Remainder Theorem

arxiv: v1 [math.gt] 21 Mar 2018

Transcription:

Tetsuo Asano @ JAIST EikD Erik D. Demaine @MIT Martin L. Demaine @ MIT Ryuhei Uehara @ JAIST

Short History: 2010/1/9: At Boston Museum we met Kaboozle! 2010/2/21 accepted by 5 th International Conference of FUN with Algorithms (FUN 2010)! Side Story: Stretch minimization problem on a strip paper, accepted by 5 th International Conference on Origami in Science, Mathematics, and Education (5OSME) Tetsuo Asano @ JAIST EikD Erik D. Demaine @MIT Martin L. Demaine @ MIT Ryuhei Uh Uehara @JAIST

Labyrinth Puzzle consists of 4 (square) cards pile them and connect the color path its generalized version seems to be NP-hard. It s Difficulty comes from 1. rotation 2. flipping 3. ordering of the cards Our interest is the boundary of the difficulty of restricted generalized Kaboozle. what is the essential of the difficulty?

Silhouette Puzzle consists of 5 cards pile them and make the rabbits It s Difficulty comes from 1. rotation 2. flipping 3. ordering of the cards Our interest is the boundary of the difficulty of restricted generalized Kaboozle. what is the essential of the difficulty?

Join them into a strip form like rotation/flipping are inhibited ordering of the cards are very restricted it seems that DP from one side works!? Even in this very restricted form, Theorem: Generalized Kaboozle is still NP-complete even in a strip form with specified mountain/valley pattern.

Any given mountain-valley pattern of length n, how many folding ways consistent to the pattern? Uehara showed that it is exponential on average!! How many folding ways of length n? According to The On-Line Encyclopedia of Integer Sequences, The number of folding ways of a strip of n labeled stamps is obtained up to n=28 by enumeration! These values seem to fit to Θ(3.3 n ) Uehara recently obtained the upper/lower bounds of this value; Ω(3.07 n )ando(4 n ), which imply that the average value for a random pattern is Ω(1.53 n ) and O(2 n ).

Observation: For a given mountain-valley pattern, the way of folding is unique if and only if the pattern is pleats, that is, MVMVMV. Proof: ( ) Trivial. ( ) If the pattern contains MM, we have two choices to pile the paper. Hence it contains neither MM nor VV, which complete the proof.

Useful pattern: shuffle pattern of length n (n=6): MV MV MV MV MV V M V M V M V M V M Property: 2n n A shuffle pattern of length n has (exactly) foldings

Theorem: Generalized Kaboozle is still NP-complete even in a strip form with specified mountain/valley pattern. Proof: poly-time reduction from the following NP-complete problem [GJ79]: 1-in-3 3SAT: Input: F(x 1,x 2,,x n )=c 1 c 2 c m, where c 1 2 3 j j i =(l i1 l i2 l i3 ), l ij =x k or l ij = x k Question: determine if F has an assignment s.t. each Ex: clause has exactly one true literal. F( x, x, x, x ) ( x x x ) ( x x x ) ( x x x ) 1 2 3 4 1 2 3 1 2 4 2 3 4 is yes instance with x 1 =1, x 2 =0, x 3 =0, x 4 =1

Lemma: Generalized Kaboozle is still NP-complete Proof: From the formula, we construct the following Kaboozle cards; Ex: F ( x, x, x, x ) ( x x x ) ( x x x ) ( x x x ) 1. top card 1 2 3 4 1 2 3 1 2 4 2 3 4 the unique path 2. variable cards Top holes for each clause x1 x2 x3 x4 x 1 x 2 x 3 x 4 x x x x x x x 1 1 2 2 3 3 x4 4 F() is yes instance with x 1 =1, x 2 =0, x 3 =0, x 4 =1, but fails with x 1 =0, x 2 =1, x 3 =0, x 4 =1

Lemma: Generalized Kaboozle is still NP-complete Proof: From the formula, we construct the following Kaboozle cards (in polynomial time); 1. top card should be the top (otherwise two endpoints disappear) 2. for variable cards 1. the cards for {x i, x i } and {x j, x j } are independent 2. x i covers the paths on x i and vice versa 3. The set of Kaboozle cards has a solution if and only if the 3SAT formula satisfies the condition. x x2 x3 x4 x 1 x 2 x 3 x 4 x 1 x 1 x x 2 2 x 3 x3 x x 4 4

Theorem: Generalized Kaboozle is still NP-complete even in a strip form with specified mountain/valley pattern. Proof: poly-time reduction from 1-in-3 3SAT: We join top cards, variable cards, and Blank 2n blank cards in a strip form with the shuffle pattern: x 4 x 3 x2 x1 top x 1 x2 x3 x4 by the lemma and the property of the shuffle pattern, Theorem follows.

Generalized Kaboozle is NP-complete even if they are joined in a strip form with/without mountain-valley pattern. So determine the ordering is hard enough. What happen if ordering of the cards are fixed and 1. (only) rotation is allowed and/or 2. (only) flipping is allowed? both are NP-complete. My personal interest is x 1 x 1 x 1 x 1 x 1 x 1 For any given mountain-valley pattern, find the best folded state, where best means that the maximum number of papers between each pair of papers hinged at a crease is minimized. upside down

How many folding ways of length n? Uehara recently obtained the upper/lower bounds of this value; Ω(3.07 n ) and O(4 n ). the upper bound O(4 n ) comes from the Catalan number. [Proof] If the paper of length n is folded, the endpoints are nested. Nest (()())(()(())) Nest (()()())(( )) Combination of n/2 pairs of ()= Catalan Number C n/2 Combination of n/2 pairs of ()= Catalan Number C n/2

How many folding ways of length n? [Thm] Its lower bound is Ω(3.07 n ). [Proof] We consider of folding of the last k unit papers; k We let f(n): the number of folding ways of length n g(k): the number of folding ways of length k s.t. the leftmost endpoint is not covered n Then, we have 1/( k 1) n f n gk gk k 1 ( ) ( ( )) ( )

How many folding ways of length n? [Thm] Its lower bound is Ω(3.07 n ). [Proof] We consider of folding of the last k unit papers; g(k): the number of folding ways of length k s.t. the leftmost t endpoint is not covered is equal to the number of ways a semi-infinite directed curve can cross a straight line k times, A000682 in The On-Line Encyclopedia of Integer Sequences. From that site, we have g(44)=830776205506531894760. ) Thus, by n f n gk gk k 1 1/( k 1) ( ) ( ( )) ( ) we have the lower bound. n also obtained by enumeration