Quiz 1 2019
Quiz 1 2019
________________
National University of Computer and Emerging Sciences, Lahore Campus
Course Name: Artificial Intelligence Course Code: CS 401
Program: BS(CS) Semester: Spring 2019
Duration: 20 Minutes Total Points: 10
Paper Date: Thursday, February 21, 2019 Weight 3%
Section: C, D, E Page(s): 2
Exam Type: Quiz 1
Consider the game tree picture below where A-F represent some real values. Assume the nodes
are explored from left to right and standard alpha beta pruning is used.
Part b) [True or False] There are SOME values of A and B such that the sub-tree containing C and
D is pruned? If true specify the values and if false give a reason
Part c) Assuming that B = 5 and A = 5, give a value of C and D such that the sub-tree containing E
and F is pruned.
Part d) For what values of A, B, C, D, E, and F a none of the nodes will be pruned by the alpha-beta
pruning algorithm. (More than one possible answers)
Part e) For what values of A, B, C, D, E, and F a maximum of the nodes will be pruned by the alpha-
beta pruning algorithm Specify all pruned nodes for the values you specify and also mark all pruned
nodes. (More than one possible solution)
Connect Four is a two-player connection game in which the players first take turns
dropping marked discs (Marked X disc for computer player and Marked O disc for
human player) from the top into a seven-column, six-row vertically suspended grid. The
pieces fall straight down, occupying the next available space within the column.
The objective of the game is to connect four discs of the same mark next to each other
vertically, horizontally, or diagonally before your opponent.
After taking the exciting course of AI at FAST some of our students have implemented
an auto-player of connect-4 that uses MINIMAX algorithm with alpha-beta pruning to
play the game.
While playing the game the auto-player (marking X) reached the following board position
and it is his turn to make a move.
Part a) [3 Points]
Draw a complete game tree that will be used by the auto-player to make the move.
Part b) [7 Points]
Use the MINIMAX algorithm to determine the move of auto-player. Which part of the
tree will be pruned by the auto-player if he always expand the nodes from left to right in
your game tree?
At some point in a two player game the possible actions for the two players are shown in
the following tree.
Assume that MINIMAX algorithm with alpha-beta pruning is used to determine the move
for MAX at this point in the game.
the nodes that will be pruned and value of alpha and beta when the pruning decision
was taken