Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe...
Transcript of Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe...
![Page 1: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/1.jpg)
Homework 5
Games
CompSci 171: Intro AI
![Page 2: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/2.jpg)
1.a Tic-Tac-Toe – how many states?
Assume we always start with X:Empty: 01X: C(9,1) = 91X1O: C(9,1)C(8,1) = 722X1O: C(9,2)C(7,1) = 2522X2O: C(9,2)C(7,2) = 7563X2O: C(9,3)C(6,2) = 12603X3O: C(9,3)C(6,3) = 16804X3O: C(9,4)C(5,3) = 12604X4O: C(9,4)C(5,4) = 6305X4O: C(9,5)C(4,4) = 126Total: 1+9+72+252+756+1260+1680+1260+630+126 = 6046(This includes invalid board positions, e.g. a
board with a row of ‘X’ and another of ‘O’)
![Page 3: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/3.jpg)
1.b Tic-Tac-Toe –depth of the complete game tree?
1stlevel: position of first X2ndlevel: position of first Y3rdlevel: position of second X4thlevel: position of second Y…Complete game: depth 9
Contains all the valid board positions from (a), assuming we always start with X
![Page 4: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/4.jpg)
1.c Tic-Tac-Toe – game tree (depth 2)?
X
XXX
X X
X X X
(1) (2) (3) (4) (5) (6) (7) (8) (9)
Depth 1
![Page 5: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/5.jpg)
1.c Tic-Tac-Toe – game tree (depth 2)?X
X
O
X
O
X OX O X
O
X
O
X
O
X
O
Depth 2
Depth 1(1)
![Page 6: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/6.jpg)
1.c Tic-Tac-Toe – game tree (depth 2)?X
X
O
X
O
X OO X X
O
X
O
X
O
X
O
Depth 2
Depth 1(2)
![Page 7: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/7.jpg)
1.c Tic-Tac-Toe – game tree (depth 2)?X
X
O
X
O
O XO X X
O
X
O
X
O
X
O
Depth 2
Depth 1(3)
![Page 8: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/8.jpg)
1.c Tic-Tac-Toe – game tree (depth 2)?
X
X O
O
X
O
X
O
X X O X
O
X
O
X
O
Depth 2
Depth 1(4)
![Page 9: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/9.jpg)
1.c Tic-Tac-Toe – game tree (depth 2)?
X
O X
O
X
O
X
O
X X O X
O
X
O
X
O
Depth 2
Depth 1(5)
![Page 10: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/10.jpg)
1.c Tic-Tac-Toe – game tree (depth 2)?
X
O X
O
X
O
X
O
X O X X
O
X
O
X
O
Depth 2
Depth 1(6)
![Page 11: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/11.jpg)
1.c Tic-Tac-Toe – game tree (depth 2)?
X
O
X
O
X
O
X
O
X
O
X
O
X X O X O
Depth 2
Depth 1(7)
![Page 12: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/12.jpg)
1.c Tic-Tac-Toe – game tree (depth 2)?
X
O
X
O
X
O
X
O
X
O
X
O
X O X X O
Depth 2
Depth 1(8)
![Page 13: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/13.jpg)
1.c Tic-Tac-Toe – game tree (depth 2)?
X
O
X
O
X
O
X
O
X
O
X
O
X O X O X
Depth 2
Depth 1(9)
![Page 14: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/14.jpg)
1.d Tic-Tac-Toe – Evaluation of the positions at level 2
The linear evaluation function:
3*X2 + X1 – (3*O2 + O1)
For tree of depth 2, there is one X and one O
on the board. The linear evaluation function:
X1 – O1
![Page 15: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/15.jpg)
1.d Tic-Tac-Toe – game tree (depth 2)?X
X
O
X
O
X OX O X
O
X
O
X
O
X
O
Depth 2
Depth 1(1)
X=2Y=1F=2-1 =1
F=2-2 F=2-1 F=2-3 F=3-2 F=2-2 F=3-2 F=2-2F=0 F=1 F=-1 F=1 F=0 F=1 F=0
min
![Page 16: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/16.jpg)
1.d Tic-Tac-Toe – game tree (depth 2)?X
X
O
X
O
X OO X X
O
X
O
X
O
X
O
Depth 2
Depth 1(2)
F=-1 F=-1 F=1 F=-2 F= 0 F=-1 F=0 F=-1
![Page 17: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/17.jpg)
1.d Tic-Tac-Toe – game tree (depth 2)?X
X
O
X
O
O XO X X
O
X
O
X
O
X
O
Depth 2
Depth 1(3)
F=0 F=1 F=1 F=-1 F= 0 F=0 F=1 F=0
![Page 18: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/18.jpg)
1.d Tic-Tac-Toe – game tree (depth 2)?
X
X O
O
X
O
X
O
X X O X
O
X
O
X
O
Depth 2
Depth 1(4)
F=-1 F=0 F=-1 F=-2 F= 0 F=-1 F=0 F=-1
![Page 19: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/19.jpg)
1.d Tic-Tac-Toe – game tree (depth 2)?
X
O X
O
X
O
X
O
X X O X
O
X
O
X
O
Depth 2
Depth 1(5)
F=1 F=2 F=1 F=2 F= 2 F=1 F=2 F=1
![Page 20: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/20.jpg)
1.d Tic-Tac-Toe – game tree (depth 2)?
X
O X
O
X
O
X
O
X O X X
O
X
O
X
O
Depth 2
Depth 1(6)
F=-1 F=0 F=-1 F=0 F= -2 F=-1 F=0 F=-1
![Page 21: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/21.jpg)
1.d Tic-Tac-Toe – game tree (depth 2)?
X
O
X
O
X
O
X
O
X
O
X
O
X X O X O
Depth 2
Depth 1(7)
F=0 F=1 F=0 F=1 F=-1 F=1 F=1 F=0
![Page 22: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/22.jpg)
1.d Tic-Tac-Toe – game tree (depth 2)?
X
O
X
O
X
O
X
O
X
O
X
O
X O X X O
Depth 2
Depth 1(8)
F=-1 F=0 F=-1 F=0 F= -2 F=-1 F=-1 F=-1
![Page 23: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/23.jpg)
1.d Tic-Tac-Toe – game tree (depth 2)?
X
O
X
O
X
O
X
O
X
O
X
O
X O X O X
Depth 2
Depth 1(9)
F=0 F=1 F=0 F=1 F= -1 F=1 F=0 F=1
![Page 24: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/24.jpg)
1.d Tic-Tac-Toe – game tree (depth 2)?
X
XXX
X X
X X X
-1 -2 -1 -2 1 -2 -1 -2 -1
![Page 25: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/25.jpg)
1.e Tic-Tac-Toe – pruned subtrees
101
-11010
-1-11
-20101
011
-10010
-10
-1-20
-10
-1
12122121
-10
-10
-2-101
0101
-1110
-10
-10
-2-1-1-1
0101
-1101
![Page 26: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/26.jpg)
1.e Tic-Tac-Toe – pruned subtrees (L-R)
101
-11010
-1-11
-20101
011
-10010
-10
-1-20
-10
-1
12122121
-10
-10
-2-101
0101
-1110
-10
-10
-2-1-1-1
0101
-1101
-1
-1
![Page 27: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/27.jpg)
1.e Tic-Tac-Toe – pruned subtrees (L-R)
101
-11010
-1-11
-20101
011
-10010
-10
-1-20
-10
-1
12122121
-10
-10
-2-101
0101
-1110
-10
-10
-2-1-1-1
0101
-1101
-1 -1
-1
![Page 28: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/28.jpg)
1.e Tic-Tac-Toe – pruned subtrees (L-R)
101
-11010
-1-11
-20101
011
-10010
-10
-1-20
-10
-1
12122121
-10
-10
-2-101
0101
-1110
-10
-10
-2-1-1-1
0101
-1101
-1 -1
-1
-1
![Page 29: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/29.jpg)
1.e Tic-Tac-Toe – pruned subtrees (L-R)
101
-11010
-1-11
-20101
011
-10010
-10
-1-20
-10
-1
12122121
-10
-10
-2-101
0101
-1110
-10
-10
-2-1-1-1
0101
-1101
-1 -1
-1
-1 -1
![Page 30: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/30.jpg)
1.e Tic-Tac-Toe – pruned subtrees (L-R)
101
-11010
-1-11
-20101
011
-10010
-10
-1-20
-10
-1
12122121
-10
-10
-2-101
0101
-1110
-10
-10
-2-1-1-1
0101
-1101
-1 -1
1
-1 -1 1
![Page 31: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/31.jpg)
1.e Tic-Tac-Toe – pruned subtrees (L-R)
101
-11010
-1-11
-20101
011
-10010
-10
-1-20
-10
-1
12122121
-10
-10
-2-101
0101
-1110
-10
-10
-2-1-1-1
0101
-1101
-1 -1
1
-1 -1 1 -1
![Page 32: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/32.jpg)
1.e Tic-Tac-Toe – pruned subtrees (L-R)
101
-11010
-1-11
-20101
011
-10010
-10
-1-20
-10
-1
12122121
-10
-10
-2-101
0101
-1110
-10
-10
-2-1-1-1
0101
-1101
-1 -1
1
-1 -1 1 -1 0
![Page 33: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/33.jpg)
1.e Tic-Tac-Toe – pruned subtrees (L-R)
101
-11010
-1-11
-20101
011
-10010
-10
-1-20
-10
-1
12122121
-10
-10
-2-101
0101
-1110
-10
-10
-2-1-1-1
0101
-1101
-1 -1
1
-1 -1 1 -1 0 -1
![Page 34: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/34.jpg)
1.e Tic-Tac-Toe – pruned subtrees (L-R)
101
-11010
-1-11
-20101
011
-10010
-10
-1-20
-10
-1
12122121
-10
-10
-2-101
0101
-1110
-10
-10
-2-1-1-1
0101
-1101
-1 -1
1
-1 -1 1 -1 0 -1 0
![Page 35: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/35.jpg)
1.e Tic-Tac-Toe – pruned subtrees (R-L)
101
-11010
-1-11
-20101
011
-10010
-10
-1-20
-10
-1
12122121
-10
-10
-2-101
0101
-1110
-10
-10
-2-1-1-1
0101
-1101
-1
-1
![Page 36: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/36.jpg)
1.e Tic-Tac-Toe – pruned subtrees (R-L)
101
-11010
-1-11
-20101
011
-10010
-10
-1-20
-10
-1
12122121
-10
-10
-2-101
0101
-1110
-10
-10
-2-1-1-1
0101
-1101
-1 -1
-1
![Page 37: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/37.jpg)
1.e Tic-Tac-Toe – pruned subtrees (R-L)
101
-11010
-1-11
-20101
011
-10010
-10
-1-20
-10
-1
12122121
-10
-10
-2-101
0101
-1110
-10
-10
-2-1-1-1
0101
-1101
-1 -1
-1
-1
![Page 38: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/38.jpg)
1.e Tic-Tac-Toe – pruned subtrees (R-L)
101
-11010
-1-11
-20101
011
-10010
-10
-1-20
-10
-1
12122121
-10
-10
-2-101
0101
-1110
-10
-10
-2-1-1-1
0101
-1101
-1 -1
-1
-1-1
![Page 39: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/39.jpg)
1.e Tic-Tac-Toe – pruned subtrees (R-L)
101
-11010
-1-11
-20101
011
-10010
-10
-1-20
-10
-1
12122121
-10
-10
-2-101
0101
-1110
-10
-10
-2-1-1-1
0101
-1101
-1 -1
1
-1-11
![Page 40: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/40.jpg)
1.e Tic-Tac-Toe – pruned subtrees (R-L)
101
-11010
-1-11
-20101
011
-10010
-10
-1-20
-10
-1
12122121
-10
-10
-2-101
0101
-1110
-10
-10
-2-1-1-1
0101
-1101
-1 -1
1
-1-11-1
![Page 41: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/41.jpg)
1.e Tic-Tac-Toe – pruned subtrees (R-L)
101
-11010
-1-11
-20101
011
-10010
-10
-1-20
-10
-1
12122121
-10
-10
-2-101
0101
-1110
-10
-10
-2-1-1-1
0101
-1101
-1 -1
1
-1-11-1-1
![Page 42: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/42.jpg)
1.e Tic-Tac-Toe – pruned subtrees (R-L)
101
-11010
-1-11
-20101
011
-10010
-10
-1-20
-10
-1
12122121
-10
-10
-2-101
0101
-1110
-10
-10
-2-1-1-1
0101
-1101
-1 -1
1
-1-11-1-1-1
![Page 43: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/43.jpg)
1.e Tic-Tac-Toe – pruned subtrees (R-L)
101
-11010
-1-11
-20101
011
-10010
-10
-1-20
-10
-1
12122121
-10
-10
-2-101
0101
-1110
-10
-10
-2-1-1-1
0101
-1101
-1 -1
1
-1-11-1-1-1-1
![Page 44: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/44.jpg)
1.f Tic-Tac-Toe – Property of leaf values
The leaf values should be ordered from lowest
to highest from left to right.
![Page 45: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/45.jpg)
2. Min-Max
3 8 7 1 5 8 10
3 1 8
8MAX
MAX
MIN
![Page 46: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/46.jpg)
2.a First (MAX) player choice
Max: D = 83 1 8
![Page 47: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/47.jpg)
2.b Which nodes would not need be examined
2
2Min:
Max:
Max:2
![Page 48: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/48.jpg)
2.b Which nodes would not need be examined
3
3Min:
Max:
Max:3
![Page 49: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/49.jpg)
2.b Which nodes would not need be examined
8
3Min:
Max:
8 > 3
Max:3
![Page 50: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/50.jpg)
2.b Which nodes would not need be examined
8
3Min:
Max:
8 > 3
Max:3
![Page 51: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/51.jpg)
2.b Which nodes would not need be examined
7
3Min:
Max:
7 > 3
Max:3
![Page 52: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/52.jpg)
2.b Which nodes would not need be examined
7
3Min:
Max:
7 > 3
Max:3
![Page 53: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/53.jpg)
2.b Which nodes would not need be examined
0
3Min:
Max:
0
Max:3
![Page 54: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/54.jpg)
2.b Which nodes would not need be examined
1
3Min:
Max:
1
Max:3
3 > 1
![Page 55: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/55.jpg)
2.b Which nodes would not need be examined
3Min:
Max:
1
Max:3
3 > 1
![Page 56: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/56.jpg)
2.b Which nodes would not need be examined
3Min:
Max:
1
Max:3
3 > 1
![Page 57: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/57.jpg)
2.b Which nodes would not need be examined
8
3Min:
Max:
81
Max:8
![Page 58: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/58.jpg)
2.b Which nodes would not need be examined
8
3Min:
Max:
81
Max:8
![Page 59: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/59.jpg)
2.b Which nodes would not need be examined
10
3Min:
Max:
81
10 > 8
Max:8
![Page 60: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/60.jpg)
2.b Which nodes would not need be examined
10
3Min:
Max:
81
10 > 8
Max:8
![Page 61: Homework 5 - University of California, Irvinewelling/teaching/271fall09/HW5_sol.pdf1.b Tic-Tac-Toe –depth of the complete game tree? 1stlevel: position of first X 2ndlevel: position](https://reader036.fdocuments.in/reader036/viewer/2022070609/5adc82107f8b9aeb668b9610/html5/thumbnails/61.jpg)
2.b Which nodes would not need be examined
3Min:
Max:
81