Docsity

Lab 6 Min-Max Alpha-Beta, Exercises of Artificial Intelligence

Toggle sidebar
bg1
1
Fakulti Teknologi Maklumat & Komunikasi
Universiti Teknikal Malaysia Melaka (UTeM)
BITI 1113
Artificial Intelligence
Laboratory 6: Solution
Instruction: Answer all questions individually and submit a hardcopy at the end of the lab
session.
1. Assume the given node in Figure 1 as the root node at MAX node, draw the game tree until
the game ends. Show the evaluation function for each node. For each leaf node, identify the
utility function (+1 for Max’s win, -1, for Max’s lose and 0 for draw). The evaluation
function is f(n) = m(n) –o(n) where
m(n) = number of available rows, columns, diagonals for MAX
o(n) = number of available rows, columns, diagonals for MIN
Figure 1: An initial state for Tic-Tac-Toe
pf3

Partial preview of the text

Download Lab 6 Min-Max Alpha-Beta and more Exercises Artificial Intelligence in PDF only on Docsity!

Fakulti Teknologi Maklumat & Komunikasi Universiti Teknikal Malaysia Melaka (UTeM) BITI 1113 Artificial Intelligence Laboratory 6 : Solution Instruction: Answer all questions individually and submit a hardcopy at the end of the lab session.

  1. Assume the given node in Figure 1 as the root node at MAX node, draw the game tree until the game ends. Show the evaluation function for each node. For each leaf node, identify the utility function (+1 for Max’s win, - 1, for Max’s lose and 0 for draw). The evaluation function is f(n) = m(n) – o(n) where m(n) = number of available rows, columns, diagonals for MAX o(n) = number of available rows, columns, diagonals for MIN Figure 1 : An initial state for Tic-Tac-Toe

Answer: +1 +

  • 1 - 1 (^0 )