

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Due Date: Tuesday, October 10 at the start of class
Suppose that the Home Decorating show asks you for consulting to help out their designer. The problem is to decorate a room in a home. You must paint the walls, choose new furniture, choose art work and choose a rug. Paint comes in different colors and different tones, furniture comes in different colors and styles, artwork comes in different styles and tones, and rugs come in different colors and textures. The colors of the walls, furniture and rugs should complement each other. The tones of the paint and artwork should match and the styles of the furniture and artwork should match (note, matching doesn’t have to mean the values are the same, you can define match however you like. also note that the possible values for style of furniture might be different thant the possible values for styles of artwork).
In this problem, you will run through the Minimax search strategy on the game of Tic-Tac-Toe. For a given initial position, the procedure generates a game tree where the current player is the first to move, and the players then alternate. At each node, the set of children corresponds to the set of non-symmetric moves that the current player can make.
Homework 2: CMSC 421, Introduction to Artificial Intelligence: Fall 2006 2
The Minimax procedure relies on a heuristic function to determine the value of a particular state in the game. One heuristic function that can be used for Tic-Tac-Toe is the following:
Eval = 3 ∗ X 2 + X 1 − (3 ∗ O 2 + O 1 )
where, X 2 = the number of rows, columns, or diagonals with 2 X’s and no O’s; X 1 = the number of rows, columns, or diagonals with 1 X and no O’s;
O 2 = the number of rows, columns, or diagonals with 2 O’s and no X’s; O 1 = the number of rows, columns, or diagonals with 1 O and no X’s;
Starting from the initial position (the empty board with X to move), draw the game tree for depth two (one move for each player). Evaluate the leaf nodes of the tree using the heuristic function, then use Minimax to find the value for the root node. Circle the move that the root node player should take. Note: If a node has two expanded states that are symmetric, you should only expand one of the similar states. So the first level will have 3 nodes.
(a) Simple Alpha-Beta Pruning Consider the Tic-Tac-Toe game tree that you created in the previous example. Assume that we expand the nodes in the optimal order (i.e., the order that would enable alpha-beta pruning to prune the greatest number of nodes). Re-order the graph so that left-to-right node-expansion is the optimal ordering, and perform Alpha-Beta pruning. (b) Alpha-Beta Pruning on a Larger Tree In this second tree, fill in the values for the internal nodes using the given val- ues at the leaves and the Minimax procedure, as before. Perform Alpha-Beta pruning twice on this tree, first assuming left-to-right node expansion, and sec- ond assuming right-to-left node expansion. In this tree, the root node is the maximizer player.