Your Name and ID. (a) ( 3 points) Breadth First Search is complete even if zero step-costs are allowed.

Similar documents
UMBC CMSC 671 Midterm Exam 22 October 2012

Midterm. CS440, Fall 2003

Section Marks Agents / 8. Search / 10. Games / 13. Logic / 15. Total / 46

Midterm Examination. CSCI 561: Artificial Intelligence

Introduction to Spring 2009 Artificial Intelligence Final Exam

CS 188 Introduction to Fall 2014 Artificial Intelligence Midterm

Problem 1. (15 points) Consider the so-called Cryptarithmetic problem shown below.

CS 540: Introduction to Artificial Intelligence

CSE 473 Midterm Exam Feb 8, 2018

5.4 Imperfect, Real-Time Decisions

1. Compare between monotonic and commutative production system. 2. What is uninformed (or blind) search and how does it differ from informed (or

2359 (i.e. 11:59:00 pm) on 4/16/18 via Blackboard

CS188: Artificial Intelligence, Fall 2011 Written 2: Games and MDP s

5.4 Imperfect, Real-Time Decisions

Computing Science (CMPUT) 496

CS61B Lecture #22. Today: Backtracking searches, game trees (DSIJ, Section 6.5) Last modified: Mon Oct 17 20:55: CS61B: Lecture #22 1

CS 229 Final Project: Using Reinforcement Learning to Play Othello

CPSC 217 Assignment 3

Practice Session 2. HW 1 Review

CS188 Spring 2010 Section 3: Game Trees

Project Connect Four (Version 1.1)

CS-171, Intro to A.I. Mid-term Exam Winter Quarter, 2015

CSEP 573 Adversarial Search & Logic and Reasoning

CS188 Spring 2010 Section 3: Game Trees

Unless stated otherwise, explain your logic and write out complete sentences. No notes, books, calculators, or other electronic devices are permitted.

Artificial Intelligence Lecture 3

Math 1324 Finite Mathematics Sections 8.2 and 8.3 Conditional Probability, Independent Events, and Bayes Theorem

Homework Assignment #2

CMPT 310 Assignment 1

UMBC 671 Midterm Exam 19 October 2009

COMP219: COMP219: Artificial Intelligence Artificial Intelligence Dr. Annabel Latham Lecture 12: Game Playing Overview Games and Search

CSE 573 Problem Set 1. Answers on 10/17/08

Documentation and Discussion

22c:145 Artificial Intelligence

Grade 7/8 Math Circles Game Theory October 27/28, 2015

ECON 282 Final Practice Problems

SOLITAIRE CLOBBER AS AN OPTIMIZATION PROBLEM ON WORDS

Artificial Intelligence Search III

Homework Assignment #1

CS 188 Fall Introduction to Artificial Intelligence Midterm 1

CSE 21 Practice Final Exam Winter 2016

Foundations of Artificial Intelligence

Applied Statistics I

CS61B Lecture #33. Today: Backtracking searches, game trees (DSIJ, Section 6.5)

Probability (Devore Chapter Two)

Algorithms for Data Structures: Search for Games. Phillip Smith 27/11/13

mywbut.com Two agent games : alpha beta pruning

2 person perfect information

CSC384 Introduction to Artificial Intelligence : Heuristic Search

Heuristics, and what to do if you don t know what to do. Carl Hultquist

Informatics 2D: Tutorial 1 (Solutions)

COMP219: Artificial Intelligence. Lecture 13: Game Playing

UNIVERSITY of PENNSYLVANIA CIS 391/521: Fundamentals of AI Midterm 1, Spring 2010

Prepared by Vaishnavi Moorthy Asst Prof- Dept of Cse

Iterative Widening. Tristan Cazenave 1

Checkpoint Questions Due Monday, October 7 at 2:15 PM Remaining Questions Due Friday, October 11 at 2:15 PM

CS 188: Artificial Intelligence Spring 2007

Adversary Search. Ref: Chapter 5

Jamie Mulholland, Simon Fraser University

Math 1001: Excursions in Mathematics Final Exam: 9 May :30-4:30 p.m.

Adversarial Search. Human-aware Robotics. 2018/01/25 Chapter 5 in R&N 3rd Ø Announcement: Slides for this lecture are here:

Today. Types of Game. Games and Search 1/18/2010. COMP210: Artificial Intelligence. Lecture 10. Game playing

Heuristics & Pattern Databases for Search Dan Weld

CS188 Spring 2014 Section 3: Games

Conversion Masters in IT (MIT) AI as Representation and Search. (Representation and Search Strategies) Lecture 002. Sandro Spina

: Principles of Automated Reasoning and Decision Making Midterm

A Historical Example One of the most famous problems in graph theory is the bridges of Konigsberg. The Real Koningsberg

CMPUT 396 Tic-Tac-Toe Game

Game-playing: DeepBlue and AlphaGo

The exam is closed book, closed calculator, and closed notes except your one-page crib sheet.

Project 1. Out of 20 points. Only 30% of final grade 5-6 projects in total. Extra day: 10%

CS 32 Puzzles, Games & Algorithms Fall 2013

Universiteit Leiden Opleiding Informatica

ARTIFICIAL INTELLIGENCE (CS 370D)

The tenure game. The tenure game. Winning strategies for the tenure game. Winning condition for the tenure game

Axiomatic Probability

Chapter 4 Heuristics & Local Search

Beliefs and Sequential Equilibrium

Chess Handbook: Course One

Five-In-Row with Local Evaluation and Beam Search

Monte Carlo Tableaux Prover

Written examination TIN175/DIT411, Introduction to Artificial Intelligence

Logical Agents (AIMA - Chapter 7)

11/18/2015. Outline. Logical Agents. The Wumpus World. 1. Automating Hunt the Wumpus : A different kind of problem

Games (adversarial search problems)

CS 4700: Artificial Intelligence

1 Modified Othello. Assignment 2. Total marks: 100. Out: February 10 Due: March 5 at 14:30

15-381: Artificial Intelligence Assignment 3: Midterm Review

Red Shadow. FPGA Trax Design Competition

STRATEGY AND COMPLEXITY OF THE GAME OF SQUARES

CPSC 217 Assignment 3 Due Date: Friday March 30, 2018 at 11:59pm

6.034 Quiz September 2018

Grade 6 Math Circles Combinatorial Games November 3/4, 2015

6.034 Quiz 1 October 13, 2005

Outline for today s lecture Informed Search Optimal informed search: A* (AIMA 3.5.2) Creating good heuristic functions Hill Climbing

1. Simultaneous games All players move at same time. Represent with a game table. We ll stick to 2 players, generally A and B or Row and Col.

LESSON 2: THE INCLUSION-EXCLUSION PRINCIPLE

Scrabble is PSPACE-Complete

6.034 Quiz 2 20 October 2010

Comp th February Due: 11:59pm, 25th February 2014

Transcription:

1 UC Davis: Winter 2003 ECS 170 Introduction to Artificial Intelligence Final Examination, Open Text Book and Open Class Notes. Answer All questions on the question paper in the spaces provided Show all work clearly and neatly. Time: 2 hours (1) Quickies (12 points) Decide if each of the following is True or False. Please provide a brief, one sentence, justification to your answer. (a) ( 3 points) Breadth First Search is complete even if zero step-costs are allowed. (b) (3 points) Depth-First Iterative Deepening Search always returns the same solution as breadth-first search if b is finite and the successor ordering is fixed. (c) (3 points) Any decision tree with Boolean attributes can be converted into an equivalent feed forward neural network. (d) (3 points) Assume that a rook can move on a chessboard any number of squares in a straight line, vertically or horizontally, but cannot jump over other pieces. Manhattan distance is an admissible heuristic for the problem of moving the rook from square A to square B in the smallest number of moves.

2 2. Logic. (8 points) (a) (3 points) For the following sentence in English, decide if the associated first-order logic sentence is a good translation. If not, explain why not and correct it. (There may be more than one error or none at all) John's social security number is the same as Mary's n _ HasSS #( John, n) HasSS #( Mary, n) (b) ( 5 points) Consider the following propositional 2-CNF expression, which is defined as a conjunction of clauses, each containing exactly two literals, namely, ( A B) ( A C) ( B D) ( C G) ( D G) Prove that the sentence above entails G

3 3. Bayes' Theorem (10 points) Suppose that we have two bags each containing black and white balls. One bag contains three times as many white balls as blacks. The other bag contains three times as many black balls as white. Suppose we choose one of these bags at random. For this bag we select five balls at random, replacing each ball after it has been selected. The result is that we find 4 white balls and one black. What is the probability that we were using the bag with mainly white balls? [Hint: Start by defining A as the event "bag chosen" " then let A ={a1,a2} where a1 represents "bag with mostly white balls" and a2 represents "bag with mostly black balls" ]

4 4. Belief Networks (20 points) Consider a simple belief network with the Boolean variables H = Honest, S = Slick, P = Popular and E = Elected as shown in the figure below a. (3 points) For now, do not look at the CPT tables, but only at the structure of the network. Which, if any, of the following are asserted by the network structure. P(H, S) = P(H) P(S) P(E P, H) = P(E P) PE ( ) PE ( H) (b) (4 points) Calculate Phs (,, p, e) (c) (5 points) Calculate the probability that someone is elected given that they are honest. (d) (8 points) Suppose we want to add the new variable L = LossOfCampaignFunds to the belief network. Describe, with justifications, all the changes you would make to the network. (Give your answer on the next blank page)

5 Write your answer for problem 4 here.

6 5. Learning. (10 points) (a) (3 points) Give a simple argument to show that a Perceptron cannot represent some data sets generated by decision trees. (b) (7 points) Now consider the representation of Boolean functions by Perceptrons, where "True" is +1 and "False" is 1. Assume a fixed input a 0 = 1 and three other inputs a1, a2, a3and assume that the activation function is a step function gx= ( ) +1 if x > 0, and -1 otherwise. Design a Perceptron that represents the disjunction of the three attributes a1, a2, a 3 and draw its picture.

7 6. Bayesian Updating. (20 points) A doctor knows that the disease meningitis causes the patient to have stiff neck 50% of the time. The doctor also knows some unconditional facts: Prior probability of a person having meningitis is 1/50,000. Prior probability of any patient having a stiff neck is 1/20. (a) (6 points) Starting with a patient about whom we know nothing, show how the probability of having meningitis, P(M), is updated after we find the patient has stiff neck. (b( (14 points) Next show how P(M) is updated, again, when we find the patient has fever. NOTE: During these calculations, use the following information as necessary. PF ( M) =same as the background frequency of fever in a population = 0.02. PF ( M ) = 0.8 Show all steps and calculations very clearly so I can follow what you are doing.

8 7. Games (20 points) Consider a two-player game featuring a board with four locations, numbered 1 through 4 and arranged in a line. Each player has a single token. Player A starts with his token in space 1 and Player B starts with his token in space 4, as shown below. Player A moves first. The two players take turns moving, and each player must move his token to an open adjacent space in either direction. If an opponent occupies an adjacent space, then the player may jump over the opponent to the next open space, if any. (For example, if A is on 3 and B is on 2, then A may move back to 1.) The game ends when one player reaches the opposite end of he board. If Player A reaches space 4 first, the value of the game is +1; if Player B reaches space 1 first, the value of the game is 1. (a) (10 points) Draw the complete game tree, using the following conventions. Write each state as an ordered pair (s A, s B ) where s A and s B denote the token locations. Put the terminal states in square boxes and annotate each with its game value in a circle. Put loop states (that is, states that already appear on the path to the root) in double square boxes. Since it is not clear how to assign values to these states, put a? in a circle. (b) (5 points) Now mark each node with its backed-up minimax value (also in a circle). Explain in words how you handles the? values and why. (c) (5 points) Explain why the standard minimax algorithm would fail on this game tree and briefly sketch how you might fix, drawing on your answer to part (b). Does your modified algorithm give optimal decisions on all games with loops? Why? (Continue your answer on the attached blank sheet)

9 Continue your answer for problem 7 here.