Each week (except for the weeks when there is an exam or
only one lecture) there will be an
in-class activity. Activities will vary from discussion
in small groups, to practical exercises and problem solving.
Participating will help you staying on top of the material
and make sure you understand it. It will also help me
understand what are the parts of the material you find most
difficult.
Participation to each activity is worth 1% fo the class grade.
If you miss class you cannot make up for the missing points,
but there will be a few opportunities for extra credit during the
semester.
Monday January 26
This is Question 2.4, page 57 from the textbook.
We will examine the rationality of vacuum-cleaner agent functions
given the following assumptions (from page 36):
The performance measure awards one point for each clean square at
each time step over a lifetime of 1000 steps
The geography of the environement is known a priori but the dirt
distribution and initial location of the agent is not
The only actions available are Left, Right, Suck, No-op
The agent perceives correctly its environment and whether the
location contains dirt.
Explain why the simple vacuum-cleaner agent function
down here is indeed rational.
function Reflex-Vacuum-Agent(location,status] returns an action
if status = Dirty then return Suck
else if location = A then return Right
else if location = B then return Left
Describe a rational agent function for the modified performance
measure that deducts one point for each movement.
Does the corresponding agent program require internal state?
Monday February 2
You are given the following problem:
Given a 5-gallon jug filled with water and an empty 2-gallon jug
how can you have precisely 1 gallon of water in the 2-gallon jug?
Assume you can fill the jugs with water as many times as desired,
but you cannot measure how much water is in each jug. When you
move water out of a jug you can either fill up the other jug or
dump the water.
You are to formulate the problem using a state-space search
representation.
what is the initial state?
the goal test?
the actions (called in the textbook successor function)?
the path cost?
the state-space for the problem?
is the state-space a tree or a graph?
Monday February 9
You are given the following graph, where each node has an
identifier (a letter) and an h value. A number along an arc indicates
the cost of the arc.
Show in what order A* expands nodes from Start to Goal.
For each node expanded during the search
show its f and g values. If a node is reached on multiple paths
show its f and g values each time the node is reached, and indicate
its parent node.
What is the solution path found?
Monday February 16
Write the constraint equations for the following cryptoarithmetic
problem:
S E N D +
M O R E =
-----------
M O N E Y
solve it
skecth the search tree to solve the problem. What heuristics did
you use for each guess?
Monday March 2
Show the backed-up values for all the nodes in the following
game tree and show the branches that are pruned by alpha-beta.
Track the values of alpha and beta during the process.
For each branch pruned, explain briefly why alpha-beta prunes it
Follow the convention used in
the textbook to examine the branches in the tree from left to right.
Monday March 9
This is question 7.8 from the textbook.
Decide whether each of the following sentences is valid, unsatisfiable,
or neither. Verify your decisions using truth tables or equivalence
rules.
Smoke -> Smoke
Smoke -> Fire
(Smoke -> Fire) -> (not Smoke -> not Fire)
Smoke or Fire or not Fire
((Smoke and Heat) -> Fire) <-> ((Smoke -> Fire) or (Heat -> Fire))
(Smoke -> Fire) -> ((Smoke and Heat) -> Fire)
Big or Dumb or (Big -> Dumb)
(Big and Dumb) or not Dumb
Wednesday March 25
You are given the following axioms:
Anyone passing his history exam and winning the lottery is happy.
Anyone who studies or is lucky can pass all his exams.
John did not study but he is lucky.
Anyone who is lucky wins the lottery.
write them in predicate calculus. It is important that you choose
consistent predicates for the different sentences.
translate them to CNF
Prove using resolution that ``John is happy.''
Wednesday April 1
Consider the following 4 sentences:
At most one student knows the answer.
One student knows the answer.
Less than two students know the answer.
At least one student knows the answer.
Zero or one students know the answer,
Circle the following sentence pairs that are logically equivalent:
ab, ac, ad, bc, bd, be, cd, ce, de
Disambiguate (if necessary) and translate each of the following sentences
into first order logic.
All pets are either cats or dogs.
Some children are tall bullies.
There are only two green boxes.
Wednesday April 8
You are given the following information:
A Buick is a kind of automobile.
All automobiles can be driven.
All automobiles have a body and four wheels.
A Skybird is a kind of Buick.
A Skybird has a sport body.
The particular Skybird with serial number 10789 has a red body.
A Skybird body has a left door and a right door.
The right door of a Skybird is a passenger door.
The left door of a Skybird is a driver door.
Driver doors and passenger doors have a trapezoid shape.
A car door has a handle.
The engine of a Skybird is a model 600.
A model 600 engine has four cylinders.
Represent the information using a semantic network. Be precise in
distinguishing classes from individual objects.
If you had to write an algorithm to compute all the parts of an
object which is represented by your semantic network how would
you do it?
Wednesday April 22
You are given the following information STRIPS action schemas:
ACTION (Grab(o,p),
PRECOND: At(o,p) and Clear(o)
EFFECT: Held(o) and not At(o,p) and not Clear(o)
ACTION (Drop(o,q),
PRECOND: Held(o)
EFFECT: not Held(o) and At(o,q) and Clear(o)
Write the corresponding successor state axioms for the fluents Held and
At.
Monday April 27
You are given the following STRIPS action schemas:
Action (MakeDrink,
Precond:CleanCup and HaveMilk
Effect: HaveDrink and not CleanCup and not HaveMilk)
Action (Drink,
Precond: Thirsty and HaveDrink
Effect: Happy(x) and not Thirsty and not HaveDrink)
and
Initial State: Thirsty and CleanCup and HaveMilk
Goal: Happy
Draw the planning graph.
Mark all the mutexes between action instances and between propositions,
and indicate for each the type of mutex.