



























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!




























Duration of Exam:^10 Oct^ 2022,^ 8:00^ AM^ (EDT)^ -^17 Oct^ 2022,^ 8:00^ AM^ (EDT)
Weight:
No. pages: No. Questions: Total marks:
Question No. 1 2 3 4 5 6 7
Points 12 20 20 12 18 18 3
Problem 1 : Game Playing [12 points]
For this question we will look at a variant of Isolation, which takes place on a 3x3 board. Player 1 controls piece āXā, while player 2 controls piece āOā. Squares which are no longer visited are grayed out. Both players have a single piece, and this piece can move to adjacent squares, but cannot move diagonally. For example, on player 1ās turn, with the board shown below in Figure 1 , they have 4 valid moves:
Figure 1: Board Diagram
On the first turn, player 1 can place their piece in multiple locations. For this question, we will only look at the subtree where player 1 places their piece in the middle of the board. Because the rules for this variant of Isolation exhibit reflectional and rotational symmetry, we can greatly simplify the tree by removing duplicates:
Figure 2: The Game Tree
Figure 4: Game Tree to a Depth of 6
For the next questions, you may use the trees shown in Figures 5 , 6 , 7 , 8 , 9 for computations.
Letās say player 1 and player 2 use different algorithms to decide their moves. Player 1 uses the
depth- limited (to depth 6) minimax search to pick their moves, while player 2 has the luxury of an
infinite depth search (the search from the first part of this problem). Player 2 also knows that player 1
will only search the board to a depth of 6, and uses this knowledge in their minimax algorithm.
(d) (2 points) Given this first move, and assuming that both players strictly follow their algorithms, does player 2 win the game?
Yes
No
(e) (4 points) Apply alpha-beta pruning to player 2ās searches (traversing branches from left to right). How many leaves are pruned? (Hint: you will have to repeat player 1ās depth-limited searches as they proceed deeper into the game)
Type Your Answer Here:
Figure 5: Game Tree
Figure 6: Game Tree
Figure 9: Game Tree
You can add your notes on this page (if any)
Figure 10: Robot with 3DOF
The following (Figure 11 ) is a relaxed grid representation that shows the parts on the conveyor and
the goal location. Assume that you have programmed the robot to lift, lower, grasp and release the
parts. This allows you to write a program that can ignore the robot movement which will discretize
the search space and avoid solving for continuous movement. Although you are concerned over
producing efficient algorithms, and must optimize your steps, there must be a way to limit the
complexity. Youāve decided to limit the ability of the robot to move according to a compass directions
of N, NE, E, SE, S, SW, W, and NW. Based on that, answer the following question:
Figure 11: Grid of the Conveyor
(f) (2 points) What is the branching factor for this space?
Type Your Answer Here:
That seems like a challenge, but you consider what you have learned in AI@GT, and decide you should be able to limit this to the expected branching factor you should consider.
(g) (2 points) What number of states would you expect to consider at depth k , given the rules below?
Type Your Answer Here:
The rules of the assembly are as follows:
The parts must be moved one at a time toward their prescribed goal position aligning the parts for
assembly. Only one part can occupy a cell, and your robot can sense what cell a part is in. Your robot
can perform the following actions:
(a) Only available for step 0, result returns i
(a) Moving N, S, W, E has a cost of 1 per cell moved. (b) Diagonal movement (i.e. NW, NE, SW, SE) has a cost of 1 per cell
moved. Answer the following questions given the problem formulation:
(h) (1 point) For memory space optimality which type of search would you use?
Tree Search^ Graph^ Search
(i) (1 point) What is the state space assuming each part originates in its cell as shown in the grid above?
Type Your Answer Here:
(j) (1 point) What is the state space assuming each part originates randomly in the grid?
Type Your Answer Here:
(k) (1 point) What are the admissible heuristics for this problem? (multiple-option correct
MCQ) Manhattan Distance , (( x 2 ā x 2 )^2 + ( y 2 ā y 2 )^2 ) Max(steps horizontally, vertically or diagonally)
Number of misplaced parts
|Part distance to current robot discrete position|+|Part distance to goal|
(l) (1 point) What would be the most effective strategy to transform the search to solve for optimal sequence and path concurrently? (multiple-option correct MCQ)
Use a priority queue that kept paths and costs from init to end-
goals Add a final goal to the end of the search
Set all of the g-values to infinity
Add linking nodes between the end-goals and initial locations
You can add your notes on this page (if any)
Problem 3 : Optimization Algorithms [20 points]
We have introduced hill climbing in the lectures. Note that hill climbing is an analogy for optimizing a general function, that is, to find its minima and maxima. Letās investigate a concrete algorithm, and its useful variants.
First we introduce our general problem formulation. For x ā X , where X can be some arbitrary set, define f ( x ) : X ā R a function takes elements from X and produces a real number so that f ( x ) ā R. Our goal is to find a minimum solution f ( x ā) over the entire set X. Assume the derivative of f at any point x exists and denoted f ā²( x ). Recall that we learned hill climbing is essentially performing the
that in general, if X is n -dimensional, i.e., X ā Rn , then we define the gradient of the function f at x to be: ā f ( x ) = [
As iterations progress, with proper step size, f ( xk ) would decrease. Hence the name Gradient Descent.
Part 1: Gradient Descent (GD) Now generally attributed its invention to Cauchy and Hadamard in the 1800 s , gradient descent has been one of the most influential and useful methods in modern mathematical computation. In the era of machine learning, gradient descent has been one of the driving forces behind computational models, including but not restricted to deep neural networks, support vector machines, and maximum likelihood estimation. In this subsection, we first look at two examples of gradient descent, followed by some conceptual questions.
(a) (1 point) Let f ( x ) = 2 x^2 ā 4 x + 5, f : R ā R. Suppose xk = 3, and we set constant step size 1
(b) (1 point) True or False: for an arbitrary function that does not go to negative infinity, you can always find a global optimal solution by applying gradient descent one time with proper step sizes.
True
False
(c) (1 point) True or False: for an arbitrary function that does not go to negative infinity, you can always find a local optimal solution by applying gradient descent with proper step sizes (without restart).
True
False
It is known that if Gradient Descent converges, it would converge in sub-linear speed for arbitrary func- tions, that is: f ( xk ) ā f ( x ā) ā¤
moree ff
k
ort to improve precision in later iterations (notice that the ratio We wish to improve this dreadful result, which follows two variants of Gradient Descent.
(i) (3 points) Let f ( x ) = 2 x^2 ā 4 x + 5, f : R ā R. Suppose that x 1 = 3, xk ā 1 = 4 and we set
Type Your Answer Here:
In his seminal work, Nestrov proposed the Accelerated Gradient Descent (AGD) method, which uses
the following update:
In general, both Polaykās Heavy Ball method and Nestrovās Accelerated Gradient Descent method
will be faster than vanilla gradient descent, i.e., they require fewer iterations to reach the same level of
pre- cision to the optimal solution. Such results would be reflected on convergence speed, often
pushing the convergence rate to linear, that is, one requires as many iterations to reach the next digit
precision as in (^) ā 1
pushing previous digit precisions. For example, if we need 3 iterations to drive f ( xk ā fx ā ) ⤠10 to
10 ā^2 , then we only need roughly three iterations to push from 10 ā^6 to 10 ā^7 when using an optimization method with linear convergence speed. This is a significant improvement from a sub-linear rate
(hence the name āsubā-linear).
Using the Nestrovās AGD method defined above, solve the following question.
Consider the same problem in R^2
min f ( x ) = xT^ Ax ā bT^ x x ā R 2
where the matrix A = [ a 1 a 2 ] ā R^2 x^2 , having the first column a 1 = [1 3] T^ , and the second column
(j) (1 point) Compute f ( xk )
Type Your Answer
Here:
(k) (2 points) What is the value of xk + 1? Say xk + 1 = [ a b ] T^ , then fill up the following blanks:
a :
b :
(l) (2 points) Compute f ( xk + 1 )
Type Your Answer Here:
Hint: To compute the gradient of xT^ Ax ā bT^ x, notice that this is a quadratic function plus a linear function. Results follow similar di ff erentiation rules in R, for example, ā( x^2 + tx ) = 2 x + t.
You can add your notes on this page (if any)
There are a few constraints of the ship to consider.
(a) The bots who take care of the cannons and the laser guns need to be good buddies (b) The bots who take care of the shields and the energon battery cells need to be good buddies (c) The bots who take care of the navigation and the thrusters need to be good buddies
Additionally, the Ploetzobots needed to attend the bot academy before becoming soldiers. For this,
they needed to study well or improve their skills well. Next we will cover the Ploetzobots during their
time in their academy:
The information about friendships and skills can also be found in the tables shown in Figure 15.
Figure 15: Friendship and Skill Tables
(a) (0.5 points) Given the listed constraints and the characteristics of each of the Ploetzobots, is it possible to find a solution that satisfies all of the constraints?
Yes
No
(b) (3.5 points) If yes, what are the possible bots that can seat in each of the listed roles, listed in
alphabetical order and separated by a comma and a space (e.g. Arcee, Bumblebee, Jazz)? If not, leave the fields blank
Cannon:
Laser Gun:
Fixing:
Shield:
Energon: