CS4341 Introduction to Artificial Intelligence. C-2002
Solutions Exam 1 - February 5, 2002

Prof. Carolina Ruiz
Department of Computer Science
Worcester Polytechnic Institute

By Wendy Kogel, Yakov Kronrod, Greg Milette, and Carolina Ruiz


Problem I. Search (25 points)

In this problem, you are asked to select the best search strategy for each of the situations given below. Although you are not required to write a justification for your choices, if you do, you may earn partial credit in case that your answer is wrong but your justification is sound.
  1. (5 points) Cost is given but not heuristic information. You need to find an optimal path.
    Search method: Branch and Bound  
    
    Although it is an informed search it only uses cost and not heuristic information. It is also guaranteed to find an optimal solution.
  2. (4 points) No cost and no heuristic information are given. You know that the search space is finite and that you don't have space available to store more than one path at the time. Any solution (if more than one exist) is acceptable.
    Search method: Depth First  
    
    It is not an informed search, and because the space is finite it is guaranteed to find a solution, if there is one. Depth 1st also only saves one path at a time and therefore meets the space requirements.
  3. (4 points) Cost and heuristic information are given. You need to find an optimal solution and you want to save as much time as possible.
    Search method: A*  
    
    
    A* uses cost and heuristic, it's guaranteed to find optimal paths, and its time performance is optimal among search algorithms that find optimal paths.
  4. (4 points) No cost and no heuristic information are given. You need to find the shallowest solution, you want to optimize time, and you have plenty of memory/space to use.
    Search method: Breadth First  
    
    Will find the most shallow solution because it goes level by level. It requires less time then Iterative Deepening because it does not have to rebuild the tree.
    (If you answer was Iterative Deepening you should have lost 1 point.)
  5. (4 points) No cost and no heuristic information are given. You need to find the shallowest solution but you don't have memory/space available to store more than one path at the time.
    Search method: Iterative Deepening 
    
    This method allows you to only search down one path at a time while gradually increasing the depth of the search space. This way you will find the shallower solution with limited space.
    (If your answer was Depth-Limited you lost 2 points because you do not know the depth. If your answer was Breadth First you also lost 2 points because of violating the memory requirement.)
  6. (4 points) Heuristic information is given. The search space is finite, but quite large. You want to find a good solution fast but don't have enough memory to keep more than one path at the time.
    Search method: Hill Climbing 
    
    Hill Climbing narrows the search area to follow one path at a time through the search space. It does not find an optimal solution but it will find a good solution if one exists, given that the search space is finite.
    (If your answer was Beam Search you lost 2 points because Beam Search stores more that one path at the time. Also, Beam Search is not guaranteed to find a solution. If your answer was Greedy you lost 2 points because you violated the space requirement. For Depth First you lost 2 points for not using the heuristic information that was given, preventing the search from being fast. For Iterative Deepening you lost 3 points because you did not use the heuristic information and for not going as fast as possible through the search space.)

Problem II. Rule-Based Systems (25 points)

Consider the following set of rules for determining the risk that a person has of suffering from hypertension.

The working memory contains the following assertions: Use backward chaining to determine whether or not treatment is recommended in Mary's case (that is, recommend mary treatment). Construct a tree showing the steps followed by backward chaining and show when and how the working memory is updated during the depth 1st search. Your depth-1st search should explore the rules in the order in which they appear in the rule base. Show your work.


Problem III. Logic-Based Systems (25 points)

Consider the following set of axioms: