






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!







This is the Fall 2005 final exam for the CPE/CSC 480 class. It is a take-home exam, and you may use textbooks, course notes, or other material, but you must formulate the text for your answers yourself. You are not allowed to discuss the questions and answers of the exam with other students or anybody else. The use of calculators or computers is allowed for numerical calculations, but not for the execution of algorithms or programs to compute solutions for exam questions. If you need clarifications about questions, you can contact me via email ([email protected]) or during my office hours on Monday Dec. 5, 10 am - 12 pm, and Tuesday, Dec. 6, 2-5 pm. The deadline for the exam is Tuesday, December 6, 2005, at 4: pm. If you submit the exam before noon on Monday, you will receive an early submission credit of 10% of your score in the exam. You must submit a printed and signed copy of the exam, which you can either leave in the drop box in front of the CSC department office (it is emptied at 4:00 pm), or give it to me on Tuesday before 4:00 pm in my office.
Mark what you think is the best answer for the questions below. I tried to formulate the questions and answers such that there is only one suitable answer. Each question is worth 3 points. a) What is the contingency problem in the context of game-playing programs?
b) What is the horizon problem in the context of game-playing programs?
c) Why is it important in the minimax algorithm to generate the values of the evaluation function “bottom-up” rather than calculating them for each node when the node is visited first (“top-down”)?
d) Which statement describes the syntax of a formal language for knowledge representation?
e) A logical sentence is called satisfiable if and only if
In this part of the exam, you should answer the questions in about one or two paragraphs. Please note that the number of points differs for the questions.
Explain the general concept of probably approximately correct (PAC) learning , and discuss its possible use for a vacuum bot agent. The main emphasis for the agent is to learn from its past experiences about the likelihood of finding dirt or encountering obstacles in various parts of a room. 10 points a) PAC Learning Explanation
Logic and Neural Networks a) The NAND function of n binary inputs, x 1 , x 2 , ..., xn is defined as ¬(x 1 ∧ x 2 ∧... ∧ xn). Let True be represented by 1, False by 0, and n is a known, fixed constant. Can this function be represented by a Perceptron? If so, describe the structure of a Perceptron that does it; if not, argue why not. 5 points
b) Another function that we could call the SAME function of two inputs, x 1 , x 2 , is defined to be 1 if the inputs are both the same (i.e., both 0 or both 1), and 0 otherwise. Can this function be represented by a Perceptron? If so, construct a Perceptron that does it; if not, argue why not. 5 points
In this part of the exam, you need to explore and evaluate the capabilities of an agent in a Wumpus World that has as its underlying topology a graph instead of a grid-based maze. Due to this topology, the navigation task for the agent is also somewhat different: it moves in a different way, and the assumptions for reasoning about properties of nodes may have to be changed. The basic setup is similar: The agent has to find the gold, pick it up, and return to the starting point. It has as percepts {Breeze, Smell, Glitter, Scream}, and as actions {Move-Next, Shoot, Grab, Climb}. The Move-Next action transports the agent from the current node to another node. If the agent maintains a queue of nodes to be explored, it moves to the first node in the queue (which does not necessarily have to be adjacent to the current node), otherwise a node is selected randomly from the adjacent ones. In this part, you are provided with an agent that has the following characteristics:
a) In the table below, describe the following important aspects of the agent outlined above. Behavior What are the observable activities of the agent for an outside observer? Could that observer judge the “intelligence” of the agent without knowing anything about how the agent works internally? Internal storage and retrieval of information (memory) How does the agent keep track of previous percepts and possibly other important information? Does it construct an internal representation of the environment? Reasoning and decision making How does the agent make decisions about which action to take? Is it possible for the agent to plan ahead for several steps? Learning Is the agent capable of learning from observations or experiences? If not, would it be possible to incorporate a learning component into the agent? What advantages and problems might result from that? AGENT ASPECTS Behavior
[8 points]
d) Indicate in the diagram a possible path for the agent from the starting point to the goal, and describe the important steps taken and critical decisions made by the agent. You don’t need to perform the actions necessary for the agent to return to the starting point and climb out, but you should maintain information about a return path for the agent. Use the diagram and the table below. The agent initially is at node S, and the gold at node T. The wumpus is at node G, and nodes B, E, and H are pits. Please use the following notation:
[12 points]
e) Use the same notation to record the activities of the agent in the table, listing the steps (e.g. movements, important reasoning steps) of the agent. You can assume that knowledge from previous steps is accessible to the agent, and that “newer” knowledge replaces “older” knowledge. As an alternative, you can replicate the complete knowledge base of the agent in each step; this is less confusing, but requires more space. The size of the table does not necessarily correspond to the number of steps your agent may need. Ste p Node Perce pt Visi ted Retu rn Pat h Safe Queu e Ris ky Queu e Kno wled ge Act ion 0 S None S S [A,F,K] [] ¬Pit(A,F,K) ¬Wumpus(A,F,K) Move-Next 1 2 3 4 5 6 7 8 9 10 11 [12 points]