Complexity of Games & Puzzles [Demaine, Hearn & many others]

34
Complexity of Games & Complexity of Games & Puzzles Puzzles [Demaine, Hearn & many others] [Demaine, Hearn & many others] bo un ded unbo unded 0 players (simulation) 1 player (puzzle) 2 players (game) team, imperfect inf NP PSPACE EXPTIME P Undecidable NEXPTIME PSPACE PSPACE Rengo Kriegspiel? bridge?

description

Complexity of Games & Puzzles [Demaine, Hearn & many others]. Rengo Kriegspiel?. unbounded. EXPTIME. Undecidable. PSPACE. PSPACE. bridge?. bounded. NP. PSPACE. P. NEXPTIME. team, imperfect info. 0 players (simulation). 1 player (puzzle). 2 players (game). - PowerPoint PPT Presentation

Transcript of Complexity of Games & Puzzles [Demaine, Hearn & many others]

Page 1: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Complexity of Games & Complexity of Games & PuzzlesPuzzles[Demaine, Hearn & many others][Demaine, Hearn & many others]

boun

ded

unbo

unde

d

0 players(simulation)

1 player(puzzle)

2 players(game)

team,imperfect info

NP

PSPACE EXPTIME

P

Undecidable

NEXPTIMEPSPACE

PSPACE

Rengo Kriegspiel?

bridge?

Page 2: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Constraint LogicConstraint Logic[Hearn & Demaine 2009][Hearn & Demaine 2009]

boun

ded

unbo

unde

d

0 players(simulation)

1 player(puzzle)

2 players(game)

team,imperfect info

PSPACE EXPTIME

P

Undecidable

NEXPTIME

PSPACE

NP

PSPACE

Page 3: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Constraint GraphsConstraint Graphs

Machine = graph,red & blue edges

Page 4: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Constraint GraphsConstraint Graphs

Machine state= orientation

constraint graph

Page 5: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Constraint LogicConstraint Logic

= 1

= 2

Rule: at least 2 unitsincoming at a vertex

1 1

2

Move: reverse an edge, preserving Rule

Page 6: Complexity of Games & Puzzles [Demaine, Hearn & many others]

AND vertexAND vertex

Rule: at least 2 unitsincoming at a vertex

1 11 1

2

T T

TF

F FTT

not your usualAND gate!

inputs

output

Page 7: Complexity of Games & Puzzles [Demaine, Hearn & many others]

SPLIT vertexSPLIT vertex

Rule: at least 2 unitsincoming at a vertex

1 11

2

F F

FT

T TF

outputs

input

Page 8: Complexity of Games & Puzzles [Demaine, Hearn & many others]

OR vertexOR vertex

Rule: at least 2 unitsincoming at a vertex

2 22 2

2

T T

TF

F FTT

not your usualOR gate!

inputs

output

T

Page 9: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Decision ProblemDecision Problemcan you reverse this edge?

Page 10: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Constraint LogicConstraint Logic[Hearn & Demaine 2009][Hearn & Demaine 2009]

boun

ded

unbo

unde

d

0 players(simulation)

1 player(puzzle)

2 players(game)

team,imperfect info

PSPACE EXPTIME

P

Undecidable

NEXPTIME

PSPACE

NP

PSPACE

Page 11: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Decision ProblemDecision Problemcan you reverse this edge?

Theorem:PSPACE-complete

Page 12: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Sliding-BlockSliding-BlockPuzzlesPuzzles

http://www.cs.brandeis.edu/~storer/JimPuzzles/ZPAGES/zzzDadsPuzzler.html

Page 13: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Sliding-Block PuzzlesSliding-Block Puzzles[Hearn & Demaine 2002][Hearn & Demaine 2002]

Corollary:PSPACE-complete

Page 14: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Sliding-Block PuzzlesSliding-Block Puzzles[Hearn & Demaine 2002][Hearn & Demaine 2002]

Corollary:PSPACE-complete

Page 15: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Wiring Vertices TogetherWiring Vertices Together

AND

OR

1

2

AND wants redOR wants blue

Page 16: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Red-Blue ConversionRed-Blue Conversion

assume an even number of conversions

Page 17: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Red-Blue ConversionRed-Blue Conversion

assume an even number of conversions

Page 18: Complexity of Games & Puzzles [Demaine, Hearn & many others]

BooleanBooleanFormulasFormulas

Page 19: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Quantified Boolean Formulas Quantified Boolean Formulas (QBF)(QBF)

x x y y w w z z

Page 20: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Existential QuantifierExistential Quantifier

Page 21: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Universal QuantifierUniversal Quantifier

Page 22: Complexity of Games & Puzzles [Demaine, Hearn & many others]

LatchLatch

A

Blockedun

Page 23: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Universal QuantifierUniversal Quantifier

Page 24: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Crossover GadgetCrossover Gadget

Page 25: Complexity of Games & Puzzles [Demaine, Hearn & many others]

OR fromOR fromProtector ORProtector OR

Page 26: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Rush HourRush Hour[Hearn & Demaine 2002][Hearn & Demaine 2002]

PSPACE-completeness known [Flake & Baum 2002]

Page 27: Complexity of Games & Puzzles [Demaine, Hearn & many others]

TriangularTriangularRush HourRush Hour

[Hearn & Demaine 2009]

Page 28: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Open: 1×1 Rush HourOpen: 1×1 Rush Hour[Tromp & Cilibrasi 2008][Tromp & Cilibrasi 2008]

P or PSPACE-complete or …?

Page 29: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Plank Puzzles Plank Puzzles [Hearn 2004][Hearn 2004]

Page 30: Complexity of Games & Puzzles [Demaine, Hearn & many others]

SokobanSokoban[Hearn & Demaine 2002][Hearn & Demaine 2002]

PSPACE-completeness known [Culberson 1998]

Page 31: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Push-2FPush-2F[Demaine, Hearn, Hoffmann 2002][Demaine, Hearn, Hoffmann 2002]

Page 32: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Constraint LogicConstraint Logic[Hearn & Demaine 2009][Hearn & Demaine 2009]

boun

ded

unbo

unde

d

0 players(simulation)

1 player(puzzle)

2 players(game)

team,imperfect info

PSPACE EXPTIME

P

Undecidable

NEXPTIME

PSPACE

NP

PSPACE

Page 33: Complexity of Games & Puzzles [Demaine, Hearn & many others]

Constraint LogicConstraint Logic[Hearn & Demaine 2009][Hearn & Demaine 2009]

boun

ded

unbo

unde

d

0 players(simulation)

1 player(puzzle)

2 players(game)

team,imperfect info

PSPACE EXPTIME

P

Undecidable

NEXPTIME

PSPACE

NP

PSPACE

Page 34: Complexity of Games & Puzzles [Demaine, Hearn & many others]

AmazonsAmazons[Hearn 2005][Hearn 2005]

fanout