jenga uri zwick tel aviv university soda’02, jan. 6-8, san francisco

21
JENGA JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco

Post on 21-Dec-2015

224 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco

JENGAJENGAUri Zwick

Tel Aviv University

SODA’02, Jan. 6-8, San Francisco

Page 2: JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco

JENGAJENGA

• A real-life game with a surprisingly simple analysis.

• We consider, of course, an idealized version of the game.

• Purely of recreational value.

Page 3: JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco
Page 4: JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco

JENGA JENGA is a very popular game!

Page 5: JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco

JENGAJENGA – The rules of the gameThe rules of the game

• The game starts with an n-story tower of wooden blocks, three at each level.

• In the real-life game, n=18.

Page 6: JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco

JENGAJENGA – The rules of the gameThe rules of the game

• Each player, in her turn, removes a block from anywhere below the highest completed level and stacks it on top.

• The player that topples the tower loses.

Page 7: JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco

Who wins?Who wins?

How?How?

Page 8: JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco

InstabilityInstability

Everything else is stable!Everything else is stable!

Page 9: JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco

ImplicationsImplications• Top most level, or the level just below it, is always full.

• The tower is stable, unless it contains the forbidden level:

• Two towers that differ only in the order of the levels are equivalent!

Page 10: JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco

Possible MovesPossible Moves

Page 11: JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco

ConfigurationsConfigurations

(x,y,z)

x - # of full levels

y - # of levels with two adjacent blocks

z - # of blocks on top.

x=3 y=6 z=2x≥1 y≥0 0≤z<3

Page 12: JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco

Possible MovesPossible Moves(x,y,z) (x-1,y,z+1)

(x,y,z)

(x,y,z)

(x-1,y+1,z+1)

(x,y-1,z+1)

I-I

-II

-I-

(x,y,3) → (x+1,y,0)

Page 13: JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco

AnalysisAnalysis( 1, , 1)

( , , ) 1 min ( 1, 1, 1) 1, 0

( , 1, 1)

( 1, , 1)( ,0, ) 1 min 1

( 1, 1, 1)

(1, , ) 1 ( , 1, 1) 0

(1,0, ) 0

( , , 3) ( 1, ,0)

V x y z

V x y z V x y z if x y

V x y z

V x y zV x z if x

V x y z

V y z V x y z if y

V z

V x y V x y

Page 14: JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco

SolutionSolution

0

0

1 1 1 0 1 1 0 0 1

1 0 1 1 1 1 1 1 0

0 1

( , , ) ( mod 3, mod 3, ) 1 0

(1, ,0) ( m

0 0 1 1 1 1 1

0 1 2

3

0 1 0

od )

V x y z v x y z if x z

V y

v

z z z

v

v y

Page 15: JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco

Optimal MovesOptimal Moves

0

-I- -I- -I-I-I -I- II-I-I II- I-II-I II- II- I-I II- -I- -I--I-

-I- I-III- I-I I-I II- II-01 2

I-I

m

zz z

m

Page 16: JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco

ConclusionConclusion

JENGA JENGA is a win forthe first player iff

n1,2(mod 3) and n≥2.

Page 17: JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco

Open ProblemsOpen Problems

•JENGAJENGA Throw ’n Go.

•JENGAJENGA Truth or Dare.

•JENGAJENGAk, , for k >3, k odd.

Page 18: JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco
Page 19: JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco

JENGAJENGA - Truth or Dare

Page 20: JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco

JENGAJENGA2k is a win for the second player!

A simple strategy stealing argument.

Page 21: JENGA Uri Zwick Tel Aviv University SODA’02, Jan. 6-8, San Francisco

Who wins inWho wins in JENGA JENGA5?