G12 Computer assignment
PART A: MINIMAX TREE
Rules:
A = AI (Maximizer)
B, C = Opponent (Minimizer)
D, E, F, G = Maximizer
Leaf values = game outcomes
Note: This tree is NOT balanced (different number of children matters)
Game Tree
A
/ \
B C
/ \ \
D E F
/ \ / \ / | \
2 9 3 1 4 7 -2
TASK 1: MINIMAX CALCULATION
Calculate step by step:
MAX level:
D = Max(2, 9) = ______
E = Max(3, 1) = ______
F = Max(4, 7, -2) = ______
MIN level:
B = Min(D, E) = ______
C = Min(F) = ______
ROOT:
A = Max(B, C) = ______
TASK 2:
Question:
Even though node F has the highest leaf value (7), does AI always choose it?
Answer: ______ (Yes/No)
Explain carefully:
____________________________________________________________________________________________________________
____________________________________________________________________________________________________________
____________________________________________________________________________________________________________
PART B: DECISION ANALYSIS
TASK 3
Answer:
1. Why might a high leaf value NOT be chosen by AI?
____________________________________________________________________________________________________________
____________________________________________________________________________________________________________
____________________________________________________________________________________________________________
2. What role does the MIN player play in stopping good moves?
____________________________________________________________________________________________________________
____________________________________________________________________________________________________________
___________________________________________________________________________________________________________
3. What does this tell you about real AI decision-making?
____________________________________________________________________________________________________________
____________________________________________________________________________________________________________
____________________________________________________________________________________________________________