The Game of Cubic is NP-complete Erich Friedman Stetson University.

Slides:



Advertisements
Similar presentations
Spiral Galaxies Puzzles are NP-complete
Advertisements

Analysis of Algorithms
Department of Computer Science & Engineering
Lecture 21 NP-complete problems
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
Complexity 11-1 Complexity Andrei Bulatov NP-Completeness.
Computability and Complexity 13-1 Computability and Complexity Andrei Bulatov The Class NP.
CS21 Decidability and Tractability
Computability and Complexity 15-1 Computability and Complexity Andrei Bulatov NP-Completeness.
NP-complete and NP-hard problems Transitivity of polynomial-time many-one reductions Definition of complexity class NP –Nondeterministic computation –Problems.
The Theory of NP-Completeness
NP-Complete Problems Problems in Computer Science are classified into
CSE 326: Data Structures NP Completeness Ben Lerner Summer 2007.
NP-complete and NP-hard problems
CSE 421 Algorithms Richard Anderson Lecture 27 NP Completeness.
Chapter 11: Limitations of Algorithmic Power
Complexity Issues Mark Allen Weiss: Data Structures and Algorithm Analysis in Java Lydia Sinapova, Simpson College.
Chapter 11 Limitations of Algorithm Power Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
1 CSC 421: Algorithm Design & Analysis Spring 2013 Complexity & Computability  lower bounds on problems brute force, decision trees, adversary arguments,
Chapter 11 Limitations of Algorithm Power. Lower Bounds Lower bound: an estimate on a minimum amount of work needed to solve a given problem Examples:
CSCE350 Algorithms and Data Structure
1 The Theory of NP-Completeness 2012/11/6 P: the class of problems which can be solved by a deterministic polynomial algorithm. NP : the class of decision.
Complexity Classes (Ch. 34) The class P: class of problems that can be solved in time that is polynomial in the size of the input, n. if input size is.
1 1. Draw the machine schema for a TM which when started with input 001 halts with abbb on the tape in our standard input format. 2. Suppose you have an.
Theory of Computation, Feodor F. Dragan, Kent State University 1 NP-Completeness P: is the set of decision problems (or languages) that are solvable in.
The Complexity of Optimization Problems. Summary -Complexity of algorithms and problems -Complexity classes: P and NP -Reducibility -Karp reducibility.
CSEP 521 Applied Algorithms Richard Anderson Lecture 10 NP Completeness.
Cs3102: Theory of Computation Class 24: NP-Completeness Spring 2010 University of Virginia David Evans.
CSCI 2670 Introduction to Theory of Computing November 29, 2005.
CSCI 2670 Introduction to Theory of Computing December 1, 2004.
1 Lower Bounds Lower bound: an estimate on a minimum amount of work needed to solve a given problem Examples: b number of comparisons needed to find the.
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
CSCI 3160 Design and Analysis of Algorithms Tutorial 10 Chengyu Lin.
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
1 Chapter 34: NP-Completeness. 2 About this Tutorial What is NP ? How to check if a problem is in NP ? Cook-Levin Theorem Showing one of the most difficult.
Design and Analysis of Algorithms - Chapter 101 Our old list of problems b Sorting b Searching b Shortest paths in a graph b Minimum spanning tree b Primality.
NP-Complete Problems Algorithm : Design & Analysis [23]
NP-Completeness (Nondeterministic Polynomial Completeness) Sushanth Sivaram Vallath & Z. Joseph.
Computability Heap exercise. The class P. The class NP. Verifiers. Homework: Review RELPRIME proof. Find examples of problems in NP.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 29.
David Evans CS200: Computer Science University of Virginia Computer Science Lecture 15: Intractable Problems (Smiley.
CS6045: Advanced Algorithms NP Completeness. NP-Completeness Some problems are intractable: as they grow large, we are unable to solve them in reasonable.
1 CPSC 320: Intermediate Algorithm Design and Analysis July 30, 2014.
Solving the Logic Satisfiability problem Solving the Logic Satisfiability problem Jesus De Loera.
NPC.
CS216: Program and Data Representation University of Virginia Computer Science Spring 2006 David Evans Lecture 8: Crash Course in Computational Complexity.
Young CS 331 D&A of Algo. NP-Completeness1 NP-Completeness Reference: Computers and Intractability: A Guide to the Theory of NP-Completeness by Garey and.
NP-Completeness Note. Some illustrations are taken from (KT) Kleinberg and Tardos. Algorithm Design (DPV)Dasgupta, Papadimitriou, and Vazirani. Algorithms.
1 Ch 10 - NP-completeness Tractable and intractable problems Decision/Optimization problems Deterministic/NonDeterministic algorithms Classes P and NP.
CSCI 2670 Introduction to Theory of Computing December 2, 2004.
1 CPSC 320: Intermediate Algorithm Design and Analysis July 30, 2014.
Pancakes, Puzzles, and Polynomials: Cracking the Cracker Barrel Game Christopher Frost Michael Peck.
1 1. Which of these sequences correspond to Hamilton cycles in the graph? (a) (b) (c) (d) (e)
The NP class. NP-completeness Lecture2. The NP-class The NP class is a class that contains all the problems that can be decided by a Non-Deterministic.
Construction We constructed the following graph: This graph has several nice properties: Diameter Two Graph Pebbling Tim Lewis 1, Dan Simpson 1, Sam Taggart.
CSE 332: NP Completeness, Part II Richard Anderson Spring 2016.
Young CS 530 Ad. Algo. D&A NP-Completeness1 NP-Completeness Reference: Computers and Intractability: A Guide to the Theory of NP-Completeness by Garey.
Limitation of Computation Power – P, NP, and NP-complete
P & NP.
Chapter 10 NP-Complete Problems.
Hard Problems Introduction to NP
Richard Anderson Lecture 25 NP-Completeness
CS 583 Fall 2006 Analysis of Algorithms
Chapter 11 Limitations of Algorithm Power
NP-Completeness Reference: Computers and Intractability: A Guide to the Theory of NP-Completeness by Garey and Johnson, W.H. Freeman and Company, 1979.
CS21 Decidability and Tractability
CSE 589 Applied Algorithms Spring 1999
Richard Anderson Lecture 25 NP Completeness
RAIK 283 Data Structures & Algorithms
Lecture 23 NP-Hard Problems
Presentation transcript:

The Game of Cubic is NP-complete Erich Friedman Stetson University

The Game of Cubic variously colored unit blocks in some configuration player can drag blocks horizontally to adjacent positions gravity pulls unsupported blocks down when blocks of the same color meet, they disappear the goal is to remove all the colored blocks can be played at:

Example

Solution

P and NP P is the set of all yes/no problems which are decidable in polynomial time. NP is the set of all yes/no problems in which a “proof” for a yes answer can be checked in polynomial time. Determining whether a number is prime is P and NP. Finding whether a graph has a Hamiltonian path is NP. The question whether P=NP is one of the most important open questions in computer science.

NP-completeness A problem is NP-complete if: –it is in NP, and –the existence of a polynomial time algorithm to solve it implies the existence of a polynomial time algorithm for all problems in NP. Examples of NP-complete problems are: –Traveling Salesman Problem –Map and Graph Coloring Problems –Finding Hamiltonian Paths or Circuits –Satisfiability: Are there inputs to a Boolean circuit with AND/OR/NOT gates that make the outputs TRUE?

Cubic is NP-complete The Main Result of this talk is: The question of whether or not a given Cubic position is solvable is NP-complete. To prove this, we will build Boolean circuits using blocks and passageways in the Cubic universe. "wires" carry truth values "junctions" in these wires simulate logical gates Since Satisfiability is NP-complete, so then is Cubic.

The Construction We need: wires variables that can have either truth value way to end a wire that forces it to be TRUE AND gate OR gate NOT gate way to split the signal in a wire way to allow wires to cross

Wires, Variables, and Ends wires are passageways for blocks to move in a wire carries the value TRUE is there is a (red) block moving through it, and the value FALSE otherwise a variable is shown on the left a way to end a wire that must be TRUE is shown on the right

The AND Gate

The NOT Gate The OR Gate

A Way to Switch Colors SWITCH =

A Way to Let Wires Cross

A Way to Split a Wire

Summary We have shown that for any given circuit, we can find a Cubic position that can be solved if and only if there is a set of inputs to the circuit that make the output TRUE. This Satisfiability problem for circuits is known to be NP-complete. The mapping from circuits to Cubic is bounded. Therefore whether a given Cubic position can be solved is also NP-complete.

References D. Beauquier, M. Nivat, E. Rémila, and J.M. Robson, Computational Geometry 5 (1995) J. Culberson, "Sokoban is PSPACE-complete." preprint. M.R. Garey and D.S. Johnson, Computers and Intractibility: A Guide to the Theory of NP-Completeness. W.H. Freeman, E. Goles and I. Rapaport, "Complexity of tile rotation problems." Theoretical Computer Science 188 (1997) E. Goles and I. Rapaport, "Tiling allowing rotations only." Theoretical Computer Science 218 (1999) R. Kaye, "Minesweeper is NP-complete." Mathematical Intelligencer, to appear. K. Lindgren, C. Moore and M.G. Nordahl, "Complexity of two-dimensional patterns." Journal of Statistical Physics 91 (1998) C. Moore and J.M. Robson, "Hard Tiling Problems with Simple Tiles." preprint. E. Rémila, "Tilings with bars and satisfaction of Boolean formulas." Europ. J. Combinatorics 17 (1996)