super mario bros. is np-hard

28
Super Mario Bros. is NP - Hard [ Aloupis , Demaine, Guo , Viglietta 2014] OR Β¬ OR & OR OR Β¬ & (Β¬ OR Β¬ OR Β¬) & (Β¬ OR Β¬ OR Β¬)

Upload: doanquynh

Post on 11-Feb-2017

231 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Super Mario Bros. is NP-Hard

Super Mario Bros. is NP-Hard[Aloupis, Demaine, Guo, Viglietta 2014]

π‘₯π‘₯ OR ¬𝑦𝑦 OR 𝑧𝑧 & π‘₯π‘₯ OR 𝑦𝑦 OR ¬𝑦𝑦 &(Β¬π‘₯π‘₯ OR ¬𝑦𝑦 OR ¬𝑧𝑧) & (Β¬π‘₯π‘₯ OR ¬𝑦𝑦 OR ¬𝑧𝑧)

Presenter
Presentation Notes
http://arxiv.org/abs/1203.1895
Page 2: Super Mario Bros. is NP-Hard

[Bern & Hayes 1996]

Presenter
Presentation Notes
Figure 13.7 of GFALOP
Page 3: Super Mario Bros. is NP-Hard

Akari / Light Up [Nikoli 2001]

Presenter
Presentation Notes
http://www.nikoli.com/en/puzzles/bijutsukan/ Play more here: http://www.puzzle-light-up.com/
Page 4: Super Mario Bros. is NP-Hard

Akari / Light Up is NP-complete[McPhail 2005]

wire gadget

Presenter
Presentation Notes
http://people.cs.umass.edu/~mcphailb/papers/2005lightup.pdf
Page 5: Super Mario Bros. is NP-Hard

Akari / Light Up is NP-complete[McPhail 2005]

split/negationgadget

Presenter
Presentation Notes
http://people.cs.umass.edu/~mcphailb/papers/2005lightup.pdf
Page 6: Super Mario Bros. is NP-Hard

Akari / Light Up is NP-complete[McPhail 2005]

split gadget NOT gate

Presenter
Presentation Notes
http://people.cs.umass.edu/~mcphailb/papers/2005lightup.pdf
Page 7: Super Mario Bros. is NP-Hard

Akari / Light Up is NP-complete[McPhail 2005]

OR/XNOR gate

crossover gadget

Presenter
Presentation Notes
http://people.cs.umass.edu/~mcphailb/papers/2005lightup.pdf
Page 8: Super Mario Bros. is NP-Hard

Akari / Light Up is NP-complete[McPhail 2005]

Β¬π‘₯π‘₯ ∨ π‘₯π‘₯ ∧ 𝑦𝑦 ∨ 𝑧𝑧

π‘₯π‘₯

π‘₯π‘₯ π‘₯π‘₯

π‘₯π‘₯π‘₯π‘₯β€²

π‘₯π‘₯β€²

𝑧𝑧

𝑧𝑧

π‘₯π‘₯β€²π‘₯π‘₯

𝑦𝑦′

𝑦𝑦

𝑦𝑦

∨

∧

∨

Presenter
Presentation Notes
http://people.cs.umass.edu/~mcphailb/papers/2005lightup.pdf
Page 9: Super Mario Bros. is NP-Hard
Presenter
Presentation Notes
http://courses.csail.mit.edu/6.890/fall14/
Page 10: Super Mario Bros. is NP-Hard

π‘₯π‘₯

π‘₯π‘₯

Minesweeper Consistency isNP-complete [Kaye 2000]

wire

wire terminator

split,NOT,turn

π‘₯π‘₯π‘₯π‘₯ π‘₯π‘₯π‘₯π‘₯ π‘₯π‘₯π‘₯π‘₯ π‘₯π‘₯π‘₯π‘₯ π‘₯π‘₯π‘₯π‘₯ π‘₯π‘₯π‘₯π‘₯π‘₯π‘₯π‘₯π‘₯ π‘₯π‘₯π‘₯π‘₯

π‘₯π‘₯π‘₯π‘₯ π‘₯π‘₯ π‘₯π‘₯

π‘₯π‘₯π‘₯π‘₯

π‘₯π‘₯π‘₯π‘₯

π‘₯π‘₯π‘₯π‘₯π‘₯π‘₯π‘₯π‘₯

π‘₯π‘₯ π‘₯π‘₯

π‘₯π‘₯π‘₯π‘₯π‘₯π‘₯

Presenter
Presentation Notes
Figure drawn by course staff based on http://simon.bailey.at/random/kaye.minesweeper.pdf
Page 11: Super Mario Bros. is NP-Hard

Minesweeper Consistency isNP-complete [Kaye 2000]

NOT

Phase changer(2 NOTs)

π‘₯π‘₯ π‘₯π‘₯π‘₯π‘₯ π‘₯π‘₯ π‘₯π‘₯π‘₯π‘₯ π‘₯π‘₯π‘₯π‘₯π‘₯π‘₯

π‘₯π‘₯π‘₯π‘₯ π‘₯π‘₯π‘₯π‘₯π‘₯π‘₯ π‘₯π‘₯ π‘₯π‘₯π‘₯π‘₯ π‘₯π‘₯π‘₯π‘₯

π‘₯π‘₯ π‘₯π‘₯

π‘₯π‘₯ π‘₯π‘₯

Presenter
Presentation Notes
Figure drawn by course staff based on http://simon.bailey.at/random/kaye.minesweeper.pdf
Page 12: Super Mario Bros. is NP-Hard

Minesweeper Consistency isNP-complete [Kaye 2000]

AND

turn

π‘₯π‘₯π‘₯π‘₯π‘₯π‘₯

π‘₯π‘₯

π‘₯π‘₯π‘₯π‘₯

π‘₯π‘₯

𝑧𝑧

π‘₯π‘₯π‘₯π‘₯

π‘₯π‘₯

π‘₯π‘₯

𝑧𝑧𝑧𝑧

𝑧𝑧

𝑧𝑧𝑧𝑧 𝑧𝑧

π‘₯π‘₯ π‘₯π‘₯𝑑𝑑 𝑑𝑑 𝑑𝑑 𝑑𝑑 𝑑𝑑 𝑑𝑑 𝑑𝑑 𝑑𝑑𝑑𝑑 𝑑𝑑

𝑑𝑑

𝑑𝑑

𝑑𝑑

𝑑𝑑

Presenter
Presentation Notes
Figure drawn by course staff based on http://simon.bailey.at/random/kaye.minesweeper.pdf
Page 13: Super Mario Bros. is NP-Hard

Minesweeper Consistency isNP-complete [Kaye 2000]

crossover

XOR

[Goldschlager 1977]

Presenter
Presentation Notes
Figures 11 and 12 of http://simon.bailey.at/random/kaye.minesweeper.pdf which in turn is based on http://dx.doi.org/10.1145/1008354.1008356
Page 14: Super Mario Bros. is NP-Hard

Minesweeper is CoNP-Complete[Scott, Stege, van Rooij 2011]

turn gadgetwire gadget terminator gadget

π‘₯π‘₯ π‘₯π‘₯

π‘₯π‘₯

π‘₯π‘₯

π‘₯π‘₯ π‘₯π‘₯

Presenter
Presentation Notes
Figure drawn by course staff based on http://dx.doi.org/10.1007/s00283-011-9256-x
Page 15: Super Mario Bros. is NP-Hard

Minesweeper is CoNP-Complete[Scott, Stege, van Rooij 2011]

OR gate

NOT gate shifter gadget

π‘₯π‘₯ π‘₯π‘₯π‘₯π‘₯ π‘₯π‘₯

π‘₯π‘₯ π‘₯π‘₯ π‘₯π‘₯ π‘₯π‘₯ π‘₯π‘₯ π‘₯π‘₯ π‘₯π‘₯ π‘₯π‘₯ π‘₯π‘₯

π‘₯π‘₯ π‘₯π‘₯ π‘₯π‘₯ π‘₯π‘₯ π‘₯π‘₯

Presenter
Presentation Notes
Figure drawn by course staff based on http://dx.doi.org/10.1007/s00283-011-9256-x
Page 16: Super Mario Bros. is NP-Hard

Minesweeper is CoNP-Complete[Scott, Stege, van Rooij 2011]

split gadget

crossover gadget

NOT

shiftershifter

π‘₯π‘₯ π‘₯π‘₯ π‘₯π‘₯ π‘₯π‘₯π‘₯π‘₯ π‘₯π‘₯π‘₯π‘₯

π‘₯π‘₯π‘₯π‘₯

π‘₯π‘₯

π‘₯π‘₯ π‘₯π‘₯ π‘₯π‘₯ π‘₯π‘₯

π‘₯π‘₯ π‘₯π‘₯

𝑣𝑣

𝑣𝑣𝑣𝑣

𝑣𝑣𝑣𝑣

𝑣𝑣𝑣𝑣

𝑣𝑣

π‘₯π‘₯ π‘₯π‘₯

Presenter
Presentation Notes
Figure drawn by course staff based on http://dx.doi.org/10.1007/s00283-011-9256-x
Page 17: Super Mario Bros. is NP-Hard

Minesweeper is CoNP-Complete[Scott, Stege, van Rooij 2011]

NAND

alternative crossover

gadget

Presenter
Presentation Notes
Figures 11 and 12 of http://simon.bailey.at/random/kaye.minesweeper.pdf which in turn is based on http://dx.doi.org/10.1145/1008354.1008356 Plus https://commons.wikimedia.org/wiki/File:NAND_from_NOR.svg#mediaviewer/File:NAND_from_NOR.svg
Page 18: Super Mario Bros. is NP-Hard

Minesweeper is CoNP-Complete[Scott, Stege, van Rooij 2011]

Presenter
Presentation Notes
Figure 7 of http://dx.doi.org/10.1007/s00283-011-9256-x
Page 19: Super Mario Bros. is NP-Hard

Functionally Complete Logic Gates

[Wernick 1942]

Presenter
Presentation Notes
http://en.wikipedia.org/wiki/Functional_completeness
Page 20: Super Mario Bros. is NP-Hard

Candy Crush is NP-complete[Walsh 2014]

variablegadget

true

false

Presenter
Presentation Notes
Figure drawn by course staff based on http://arxiv.org/abs/1403.1911
Page 21: Super Mario Bros. is NP-Hard

Candy Crush is NP-complete[Walsh 2014]

connectorgadgets

positive

negative

out

out

Presenter
Presentation Notes
Figure drawn by course staff based on http://arxiv.org/abs/1403.1911
Page 22: Super Mario Bros. is NP-Hard

Candy Crush is NP-complete[Walsh 2014]

wiregadget

out

out

in

in

Presenter
Presentation Notes
Figure drawn by course staff based on http://arxiv.org/abs/1403.1911
Page 23: Super Mario Bros. is NP-Hard

Candy Crush is NP-complete[Walsh 2014]

out

out

in

in

modifiedwire

gadget

Presenter
Presentation Notes
Figure drawn by course staff based on http://arxiv.org/abs/1403.1911
Page 24: Super Mario Bros. is NP-Hard

Candy Crush is NP-complete[Walsh 2014]

out

out

in

in

modifiedwire

gadget

Presenter
Presentation Notes
Figure drawn by course staff based on http://arxiv.org/abs/1403.1911
Page 25: Super Mario Bros. is NP-Hard

Candy Crush is NP-complete[Walsh 2014]

out

out

in

in

modifiedwire

gadget

Presenter
Presentation Notes
Figure drawn by course staff based on http://arxiv.org/abs/1403.1911
Page 26: Super Mario Bros. is NP-Hard

Candy Crush is NP-complete[Walsh 2014]

π‘₯π‘₯1

clausegadget

π‘₯π‘₯1

π‘₯π‘₯2

π‘₯π‘₯2

π‘₯π‘₯3

π‘₯π‘₯3

rewardgadget

Presenter
Presentation Notes
Figure drawn by course staff based on http://arxiv.org/abs/1403.1911
Page 27: Super Mario Bros. is NP-Hard

Bejeweled, Candy Crush, … areNP-Complete [Guala, Leucci, Natale 2014]

Presenter
Presentation Notes
http://arxiv.org/abs/1403.5830 Play the reduction: http://candycrush.isnphard.com/
Page 28: Super Mario Bros. is NP-Hard

Bejeweled, Candy Crush, … areNP-Complete [Guala, Leucci, Natale 2014]

Presenter
Presentation Notes
http://arxiv.org/abs/1403.5830 Play the reduction: http://candycrush.isnphard.com/