Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Instructions
Carefully read these instructions! Seriously!
This exam must be solved individually. Cheating in the exam will be handled according to the regulations
of the University of Puerto Rico.
You can use only a sheet of formulas. You are not allowed borrow from or lend to anyone any material. Make
sure your pen has enough ink, or if you use pencil bring your own eraser.
You are not allowed to use calculator or computer – you do not need them anyway.
Turn off your cellular phone to avoid disturbing your classmates and yourself. You must keep it in your
pocket or backpack at all times.
You are not allowed to use any kind of electronic device during the exam – MP3 players, tablet
computers, cellular phones, beepers, laptops, etc. If you take any electronic device in your hands during the
exam, your action may be treated as an attempt to cheat.
Make sure your handwriting is legible. I will make a reasonable effort, when grading, to understand your
answers, but I may take off credit when I cannot fully understand your handwriting.
Suggestions
You may answer the exam in English or Spanish, as you feel comfortable.
State clearly any assumption you may need to solve any problem.
Divide your time proportionately to the points of each problem. If the time you assigned for one question
expires, go on solving another question. You may get partial credit for correct processes towards the
solution of a problem, but only if the process is correct. You may attempt to finish incomplete problem
solutions if you have time left before handing in your exam.
Warm up questions
1. Match the correct statements (10 points):
According to the four visions of Artificial Intelligence, an agent that
TRUE
FALSE
TRUE
FALSE
4. The environment for a Monopoly player agent is (select all that apply) (10 points)
f. Episodic g. Sequential
k. Discrete l. Continuous
o. Known p. Unknown
q. Competitive r. Collaborative
5. Depth-first is:
Describe and justify any assumptions or constraints for optimality or completeness and
explain the terms for space and time complexity. If needed, give an example or counter-
example to justify your assumptions.
Describe and justify any assumptions or constraints for optimality or completeness and
explain the terms for space and time complexity. If needed, give an example or counter-
example to justify your assumptions.
7. Figure 1 shows four graphs where the number inside the nodes represent the value of the heuristic
function ℎ(𝑛) for node 𝑛, an estimation of the distance from node 𝑛 to the goal. The number on the
arcs represents the actual distance function 𝑔(𝑛) traveled along each arc. Write on the side of each
graph if ℎ(𝑛) is admissible or consistent – it could be both or none - (10 points).
Problem
8. Consider the state space shown in Figure 2, where A is the starting state and L satisfies the goal test.
The labels of each arc represent the cost of traversing them. The estimated cost from the node to the
goal node L is given inside each node. For each of the following search strategies, indicate whether
the goal state is reached, and which nodes are in the explored set at the end of the execution. In case
of ties, chose the next node in alphabetical order.