CSci 5511: In Class Activities

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.
  1. 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):
    1. 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
      
    2. 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?
  2. 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.
    1. what is the initial state?
    2. the goal test?
    3. the actions (called in the textbook successor function)?
    4. the path cost?
    5. the state-space for the problem?
    6. is the state-space a tree or a graph?
  3. 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.

    graph

    1. 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.
    2. What is the solution path found?
  4. Monday February 16
    1. Write the constraint equations for the following cryptoarithmetic problem:
      S E N D +
      M O R E =
      -----------
      M O N E Y
      
    2. solve it
    3. skecth the search tree to solve the problem. What heuristics did you use for each guess?
  5. 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.
    ab
  6. 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.
    1. Smoke -> Smoke
    2. Smoke -> Fire
    3. (Smoke -> Fire) -> (not Smoke -> not Fire)
    4. Smoke or Fire or not Fire
    5. ((Smoke and Heat) -> Fire) <-> ((Smoke -> Fire) or (Heat -> Fire))
    6. (Smoke -> Fire) -> ((Smoke and Heat) -> Fire)
    7. Big or Dumb or (Big -> Dumb)
    8. (Big and Dumb) or not Dumb
  7. Wednesday March 25
    You are given the following axioms:
  8. Wednesday April 1
  9. Wednesday April 8
    You are given the following information: 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?
  10. 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.
  11. 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
    1. Draw the planning graph. Mark all the mutexes between action instances and between propositions, and indicate for each the type of mutex.
    2. At what level is the problem solved? why?
    Copyright: © 2009 by the Regents of the University of Minnesota
    Department of Computer Science and Engineering. All rights reserved.
    Comments to: Maria Gini
    Changes and corrections are in red.