CS 540: Introduction to Artificial Intelligence

Similar documents
Midterm Examination. CSCI 561: Artificial Intelligence

CS188 Spring 2010 Section 3: Game Trees

Midterm. CS440, Fall 2003

CS188 Spring 2010 Section 3: Game Trees

ARTIFICIAL INTELLIGENCE (CS 370D)

CS188 Spring 2014 Section 3: Games

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

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

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

Foundations of Artificial Intelligence

Games and Adversarial Search II

CS 229 Final Project: Using Reinforcement Learning to Play Othello

Prepared by Vaishnavi Moorthy Asst Prof- Dept of Cse

UMBC CMSC 671 Midterm Exam 22 October 2012

COMP9414: Artificial Intelligence Adversarial Search

Written examination TIN175/DIT411, Introduction to Artificial Intelligence

CSE 473 Midterm Exam Feb 8, 2018

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

mywbut.com Two agent games : alpha beta pruning

CS 188 Introduction to Fall 2014 Artificial Intelligence Midterm

Game-playing AIs: Games and Adversarial Search FINAL SET (w/ pruning study examples) AIMA

CS 387/680: GAME AI BOARD GAMES

Game Playing Part 1 Minimax Search

UMBC 671 Midterm Exam 19 October 2009

Adversarial Search (Game Playing)

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

Game Playing AI Class 8 Ch , 5.4.1, 5.5

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

CS 380: ARTIFICIAL INTELLIGENCE MONTE CARLO SEARCH. Santiago Ontañón

Adversary Search. Ref: Chapter 5

CS 4700: Artificial Intelligence

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

Playing Games. Henry Z. Lo. June 23, We consider writing AI to play games with the following properties:

Adversarial Search. Rob Platt Northeastern University. Some images and slides are used from: AIMA CS188 UC Berkeley

CS 188 Fall Introduction to Artificial Intelligence Midterm 1

Game-playing AIs: Games and Adversarial Search I AIMA

Adversarial Search 1

Documentation and Discussion

Homework Assignment #2

Module 3. Problem Solving using Search- (Two agent) Version 2 CSE IIT, Kharagpur

Announcements. Homework 1. Project 1. Due tonight at 11:59pm. Due Friday 2/8 at 4:00pm. Electronic HW1 Written HW1

Game Tree Search. CSC384: Introduction to Artificial Intelligence. Generalizing Search Problem. General Games. What makes something a game?

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

: Principles of Automated Reasoning and Decision Making Midterm

Computing Science (CMPUT) 496

Lecture 14. Questions? Friday, February 10 CS 430 Artificial Intelligence - Lecture 14 1

CS 171, Intro to A.I. Midterm Exam Fall Quarter, 2016

COMP219: Artificial Intelligence. Lecture 13: Game Playing

Tree representation Utility function

CSC 380 Final Presentation. Connect 4 David Alligood, Scott Swiger, Jo Van Voorhis

Computer Science and Software Engineering University of Wisconsin - Platteville. 4. Game Play. CS 3030 Lecture Notes Yan Shi UW-Platteville

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

1 Introduction. 1.1 Game play. CSC 261 Lab 4: Adversarial Search Fall Assigned: Tuesday 24 September 2013

Programming Project 1: Pacman (Due )

Artificial Intelligence Adversarial Search

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

CSC 396 : Introduction to Artificial Intelligence

CS 4700: Foundations of Artificial Intelligence

Artificial Intelligence Search III

Artificial Intelligence. 4. Game Playing. Prof. Bojana Dalbelo Bašić Assoc. Prof. Jan Šnajder

Learning to Play like an Othello Master CS 229 Project Report. Shir Aharon, Amanda Chang, Kent Koyanagi

Adversarial Search Aka Games

game tree complete all possible moves

CS 540-2: Introduction to Artificial Intelligence Homework Assignment #2. Assigned: Monday, February 6 Due: Saturday, February 18

CS 5522: Artificial Intelligence II

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

CS 1571 Introduction to AI Lecture 12. Adversarial search. CS 1571 Intro to AI. Announcements

Introduction to Artificial Intelligence CS 151 Programming Assignment 2 Mancala!! Due (in dropbox) Tuesday, September 23, 9:34am

2 person perfect information

Monte Carlo Tree Search. Simon M. Lucas

For slightly more detailed instructions on how to play, visit:

Module 3 Greedy Strategy

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

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

Games (adversarial search problems)

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

2/5/17 ADVERSARIAL SEARCH. Today. Introduce adversarial games Minimax as an optimal strategy Alpha-beta pruning Real-time decision making

Artificial Intelligence Lecture 3

Outline. Game Playing. Game Problems. Game Problems. Types of games Playing a perfect game. Playing an imperfect game

CS 771 Artificial Intelligence. Adversarial Search

CS188 Spring 2011 Written 2: Minimax, Expectimax, MDPs

Adversarial Search. Robert Platt Northeastern University. Some images and slides are used from: 1. CS188 UC Berkeley 2. RN, AIMA

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

DIT411/TIN175, Artificial Intelligence. Peter Ljunglöf. 2 February, 2018

CS 387: GAME AI BOARD GAMES. 5/24/2016 Instructor: Santiago Ontañón

CSE 332: Data Structures and Parallelism Games, Minimax, and Alpha-Beta Pruning. Playing Games. X s Turn. O s Turn. X s Turn.

Game-Playing & Adversarial Search

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

V. Adamchik Data Structures. Game Trees. Lecture 1. Apr. 05, Plan: 1. Introduction. 2. Game of NIM. 3. Minimax

Midterm 2 6:00-8:00pm, 16 April

Announcements. Homework 1 solutions posted. Test in 2 weeks (27 th ) -Covers up to and including HW2 (informed search)

Game-Playing & Adversarial Search Alpha-Beta Pruning, etc.

Multiple Agents. Why can t we all just get along? (Rodney King)

Programming an Othello AI Michael An (man4), Evan Liang (liange)

Game Playing State-of-the-Art. CS 188: Artificial Intelligence. Behavior from Computation. Video of Demo Mystery Pacman. Adversarial Search

History and Philosophical Underpinnings

Introduction to Spring 2009 Artificial Intelligence Final Exam

1. The chance of getting a flush in a 5-card poker hand is about 2 in 1000.

Adversarial Search and Game Theory. CS 510 Lecture 5 October 26, 2017

CSE 473: Artificial Intelligence Fall Outline. Types of Games. Deterministic Games. Previously: Single-Agent Trees. Previously: Value of a State

Transcription:

CS 540: Introduction to Artificial Intelligence Mid Exam: 7:15-9:15 pm, October 25, 2000 Room 1240 CS & Stats CLOSED BOOK (one sheet of notes and a calculator allowed) Write your answers on these pages and show your work. If you feel that a question is not fully specified, state any assumptions you need to make in order to solve the problem. You may use the backs of these sheets for scratch work. Write your name on this and all other pages of this exam. Make sure your exam contains six problems on ten pages. Name Student ID Problem Score Max Score 1 22 2 22 3 10 4 21 5 10 6 15 TOTAL 100

Problem 1 Decision Trees (22 points) Imagine you wish to recognize good art given some features of it. You ve written a program that is able to measure two numeric properties of each piece of art: F1 and F2, plus your code is able to determine the most-used primary color (red=r, blue=b, and yellow=y). A set of training examples appears below. F1 F2 Color Result 0 4 R good 3 2 B bad 7 5 B good 1 4 B bad 8 1 R good a) Using a method like the one that you used in HW 1, first discretize the continuous features, but only divide into two (2) bins (low=l and high=h). Complete the reformulated table below and briefly explain your work to the right of the table. F1 F2 Color Result Explanation of Reformulation R B B B R good bad good bad good b) What score would the information gain calculation assign to each of the features? Be sure to show all your work (use the back of this or the previous sheet if needed). c) Which feature would be chosen as the root of the decision tree being built? (Break ties in favor of F1 over F2 over Color.) 2

d) Show the next interior node, if any, that the C5 algorithm would add to the decision tree. Again, be sure to show all your work. (Even if this secod interior node does not completely separate the training data, stop after adding this second node.) Be sure to label all the leaf nodes in the decision tree that you have created. e) Assuming you have the following tuning set, which pruned tree would HW 1 s pruning algorithm produce AFTER THE FIRST ROUND OF PRUNING? Justify your answer. F1 F2 Color Result 1 4 R good 2 0 B bad 0 7 Y bad 3

Problem 2 Search (22 points) Consider the search space below, where S is the start node and G1 and G2 satisfy the goal test. Arcs are labeled with the cost of traversing them and the estimated cost to a goal is reported inside nodes. For each of the following search strategies, indicate which goal state is reached (if any) and list, in order, all the states popped off of the OPEN list. When all else is equal, nodes should be removed from OPEN in alphabetical order. Uniform Cost Goal state reached: States popped off OPEN: Iterative Deepening Goal state reached: States popped off OPEN: Best First (using the h function only) Goal state reached: States popped off OPEN: Beam (with beam width = 2 and using the h function only) Goal state reached: States popped off OPEN: A* Goal state reached: States popped off OPEN: A 2 2 S 5 1 2 3 4 B 1 1 C 3 8 G1 0 5 1 1 5 9 D 1 2 E 6 7 G2 0 4

Problem 3 Representation using Logic (10 points) Convert each of the following English sentences into first-order predicate calculus (FOPC), using reasonably named predicates, functions, and constants. If you feel a sentence is ambiguous, clarify which meaning you re representing in logic. (Write your answers in the space below the English sentence.) Mary is tall and Bill is not. Some dogs are tiny. All of Picasso s paintings are valuable. All the houses near Sue s house are either large or old (or both). 5

Problem 4 Reasoning using Logic (21 points) a) Is the following WFF valid? Justify your answer [ (P Q) (Q R) ] (P R) b) Provide and justify a (formal) interpretation that makes the following WFF true: (P Q R) ( Q R) ( P R) 6

c) Formally show that S R follows from the given s below. (Don t deduce more than 10 additional WFF s.) Number WFF Justification 1 ( Q) Z given 2 W given 3 ( W Q) ( P) given 4 (W Z) S given 5 Q (S P) given 6 (P Q) R given 7 8 9 10 11 12 13 14 15 16 7

Problem 5 Miscellaneous Short Answers (10 points) Briefly describe each of the following AI concepts and explain each s significance. (Write your answers below the phrases.) Heuristic Functions Occam s Razor Quantifiers A* α-β Pruning 8

Problem 6 Game Playing (15 points) Consider the following game: When it is their turn to move, players must first choose which of two weighted coins, A and B, to flip. Coin A comes up heads 75% of the time and tails the other 25%. If heads, the player must make move and if tails he or she (or it) must make move. (To do this problem, you needn t know exactly what each move means.) Coin B comes up heads 10% of the time and tails the other 90%. If heads, players must make move and if tails they must make move. Assume it is the computer s turn to play, and the game tree looks like the one below, where the values at the leaf nodes are the results of calls to the SBE (higher scores are better for the computer). a) Explain what move the computer should make. (Hint: think about expected-value calculations. Also, you might want to do parts b and c first.) 8 9 7 3 1 6 8 0 4 2 0 3 7 5 9 7 9

b) Now assume that there is no randomness and the players simply can choose any of the four moves (,,, or ). Apply the minimax algorithm to the tree below and explain which move the computer should make. As in part (a), assume it is the computer s turn to play. c) Assuming leaf nodes are visited left-to-right, identify the first unnecessary call to the SBE (for the no randomness case). Explain your answer. 8 9 7 3 1 6 8 0 4 2 0 3 7 5 9 7 10