



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!




Each of the following statements is either true or false. If it is true, mark it true. If it is false, correct the statement so that it is true. Note: Adding “not” or otherwise negating the sentence is not acceptable. You must change the facts in the sentence if it is false. For example: Question: The Turing Test is a test of whether a computer program is rational. Bad answer, no credit: The Turing Test is not a test of whether a computer program is rational. Good answer: The Turing Test is a test of whether a computer program is indistinguishable from a human.
For each of the following agents and environments, characterize the environment according to the six properties used in R & N (static vs dynamic, discrete vs. continuous, fully vs. partially observable, deter- ministic vs stochastic, episodic vs. sequential, single-agent vs. multi-agent). If necessary, you may want to give a brief justification of your answers.
Consider the following problem: We want to build an agent that can play word games. For our first task, we would like to build an agent that can recognize palindromes. (A palindrome is a word or phrase that reads the same backwards as forwards excpeting punctuation, such as “Anna” or “Madam, I’m Adam”, or “A man, a plan, a canal - Panama!”)
Assume that our agent receives its input one letter at a time. That is, at time t=0 it sees ’a’, and and time t=1 it sees ’n’, and so on. Once the string is seen completely, the agent must output ’yes’ or ’no’.
Trace BFS, DFS, and A* on the following graph. Uninformed search methods should expand nodes from left-to-right. (B should be visited before C.) Both g1 and g2 are goal states; your algorithm may stop as soon as either is expanded. Show the order in which nodes are visited. For A, also show the f,g, and h costs for each node visited. For A, the costs for each edge are indicated next to the edge, and the heuristic costs for each state are in parentheses next to the state.
Consider the Tower of Hanoi problem. There are three towers, with N disks of increasing size stacked on the leftmost tower. The problem is to move the disks from the left-hand to the right-hand tower, with the constraint that a larger disk can never be placed on top of a smaller disk.
To begin, let h be the number of disks that still need to be moved. Is this heuristic admissible? If so, prove it. If not, provide a counterexample.
Next, consider the following heuristic: Number the disks according to size, where 1 is the smallest disk and n is the number of the largest disk. h is the sum of the numbers of each misplaced disk.
Which heuristic should be used? Justify your answer with a precise technical argument, using the appropriate terminology.
c. Use an admissibility argument to show that uniform cost search is optimal.
Consider the following grammar and lexicon:
S -> NP VP | S -> S Conj S NP -> Noun | Article Noun VP -> Verb | Verb Adj | Verb Adv | Verb PP PP -> Prep | NP Noun -> cat | dog | fish Article -> a | the Verb -> sleeps | is | runs Adj -> happy | sad Conj -> and | but Prep -> with Adv -> quietly
For each of the following sentences, show the parse tree. If the sentence cannot be represented by this grammar, write “incorrect.”