UMBC CMSC 671 Midterm Exam 22 October 2012

Similar documents
UMBC 671 Midterm Exam 19 October 2009

Midterm. CS440, Fall 2003

Midterm Examination. CSCI 561: Artificial Intelligence

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

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

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

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

CS510 \ Lecture Ariel Stolerman

CSE 473 Midterm Exam Feb 8, 2018

ARTIFICIAL INTELLIGENCE (CS 370D)

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

Written examination TIN175/DIT411, Introduction to Artificial Intelligence

: Principles of Automated Reasoning and Decision Making Midterm

Adversarial Search and Game- Playing C H A P T E R 6 C M P T : S P R I N G H A S S A N K H O S R A V I

Adverserial Search Chapter 5 minmax algorithm alpha-beta pruning TDDC17. Problems. Why Board Games?

Game-Playing & Adversarial Search

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

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

5.4 Imperfect, Real-Time Decisions

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

Practice Session 2. HW 1 Review

CS188 Spring 2010 Section 3: Game Trees

CS 188 Introduction to Fall 2014 Artificial Intelligence Midterm

COMP9414: Artificial Intelligence Adversarial Search

CS188 Spring 2010 Section 3: Game Trees

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

CS188 Spring 2014 Section 3: Games

2 person perfect information

mywbut.com Two agent games : alpha beta pruning

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

CS 188: Artificial Intelligence Spring 2007

Games and Adversarial Search II

Adversary Search. Ref: Chapter 5

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

CS 2710 Foundations of AI. Lecture 9. Adversarial search. CS 2710 Foundations of AI. Game search

1. Introduction to Game Theory

CS 771 Artificial Intelligence. Adversarial Search

CS 188 Fall Introduction to Artificial Intelligence Midterm 1

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

CS 540: Introduction to Artificial Intelligence

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.

Extensive Games with Perfect Information A Mini Tutorial

Instability of Scoring Heuristic In games with value exchange, the heuristics are very bumpy Make smoothing assumptions search for "quiesence"

Foundations of Artificial Intelligence

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

5.4 Imperfect, Real-Time Decisions

Introduction to Game Theory

COMP5211 Lecture 3: Agents that Search

Prepared by Vaishnavi Moorthy Asst Prof- Dept of Cse

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

Game Theory Lecturer: Ji Liu Thanks for Jerry Zhu's slides

Q1. [11 pts] Foodie Pacman

Adversarial Search 1

CS 229 Final Project: Using Reinforcement Learning to Play Othello

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

Introduction to Spring 2009 Artificial Intelligence Final Exam

Game Playing AI Class 8 Ch , 5.4.1, 5.5

Adversarial Search (Game Playing)

10/5/2015. Constraint Satisfaction Problems. Example: Cryptarithmetic. Example: Map-coloring. Example: Map-coloring. Constraint Satisfaction Problems

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

ECON 282 Final Practice Problems

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

Game Theory: The Basics. Theory of Games and Economics Behavior John Von Neumann and Oskar Morgenstern (1943)

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

CSE 40171: Artificial Intelligence. Adversarial Search: Game Trees, Alpha-Beta Pruning; Imperfect Decisions

CSEP 573 Adversarial Search & Logic and Reasoning

Game Theory Refresher. Muriel Niederle. February 3, A set of players (here for simplicity only 2 players, all generalized to N players).

Adversarial Search Aka Games

Artificial Intelligence. Minimax and alpha-beta pruning

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

Game Theory and Randomized Algorithms

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

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

Introduction to Algorithms / Algorithms I Lecturer: Michael Dinitz Topic: Algorithms and Game Theory Date: 12/4/14

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

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

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

6.034 Quiz September Jake Barnwell Michaela Ennis Rebecca Kekelishvili. Vinny Chakradhar Phil Ferguson Nathan Landman

CS 440 / ECE 448 Introduction to Artificial Intelligence Spring 2010 Lecture #5

Artificial Intelligence Ph.D. Qualifier Study Guide [Rev. 6/18/2014]

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

16.410/413 Principles of Autonomy and Decision Making

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

CSCI 699: Topics in Learning and Game Theory Fall 2017 Lecture 3: Intro to Game Theory. Instructor: Shaddin Dughmi

THEORY: NASH EQUILIBRIUM

CSC384: Introduction to Artificial Intelligence. Game Tree Search

Game Playing Beyond Minimax. Game Playing Summary So Far. Game Playing Improving Efficiency. Game Playing Minimax using DFS.

Summary Overview of Topics in Econ 30200b: Decision theory: strong and weak domination by randomized strategies, domination theorem, expected utility

Artificial Intelligence Search III

Game-playing AIs: Games and Adversarial Search I AIMA

Game Tree Search. Generalizing Search Problems. Two-person Zero-Sum Games. Generalizing Search Problems. CSC384: Intro to Artificial Intelligence

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

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

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

6.034 Quiz September 2018

February 11, 2015 :1 +0 (1 ) = :2 + 1 (1 ) =3 1. is preferred to R iff

Game-playing: DeepBlue and AlphaGo

SF2972 Game Theory Written Exam March 17, 2011

CMPUT 396 Tic-Tac-Toe Game

CS 387/680: GAME AI BOARD GAMES

Transcription:

Your name: 1 2 3 4 5 6 7 8 total 20 40 35 40 30 10 15 10 200 UMBC CMSC 671 Midterm Exam 22 October 2012 Write all of your answers on this exam, which is closed book and consists of six problems, summing to 200 points. You have the entire class period, seventy-five minutes, to work on this exam. Good luck. 1. True/False [20 points] Circle either T or an F in the space before each statement to indicate whether the statement is true or false. If you think the answer is simultaneously true and false, quit while you are ahead. There is no penalty for incorrect answers but then, there are no points for incorrect answers either T F The Turing test evaluates a system s ability to act rationally. T F Iterative deepening will never expand more nodes than breadth-first search. T F If a finite solution exists, depth-first search is guaranteed to find it. T F A finite problem graph can give rise to an infinite search tree with depth-first search. T F Depth-first iterative deepening always returns the same solution as breadth-first search if b is finite and the successor ordering is fixed. T F In a finite search space containing no state, A* will always explore all. T F If f1(s) and f2(s) are two admissible A heuristics, then their average f(s) = 0.5*(f1+f2) must also be admissible. T F A problem of hill climbing search is the amount of memory it requires. T F The arc-consistency algorithm is only useful if it is run after every variable assignment in CSP search. T F A combination of backtracking search and arc-consistency will always find a solution to a CSP problem if one exists. T F A combination of backtracking search and forward-checking may not find a solution to a CSP problem even if one exists. T F The maximin principle in game theory is based on the idea that a good strategy is to plan on taking advantage of the tactical errors your opponent makes. T F In a zero-sum two player game there is necessarily always a winner and a loser. T F The amount of memory required to run minimax with alpha-beta pruning is O(b**d) for branching factor b and depth limit d. T F The Prisoner's Dilemma is an example of a game in which both players have a dominant strategy. T F In a Nash equilibrium, no player and unilaterally improve their utility by changing their strategy. T F Every well-formed sentence in propositional logic can be rewritten in conjunctive normal form (CNF). T F Every valid propositional sentence is satisfiable. T F Every satisfiable propositional sentence is valid. T F One can have a sound and complete reasoning system on a collection of well-formed propositional sentences using only the resolution inference rule.

2. Search I [40] Assume the following search graph, where S is the start node and G1 and G2 are nodes. Arcs are labeled with the cost of traversing them and the estimated cost to a is reported inside nodes. For each of the search strategies listed below, indicate which state is reached (if any) and list, in order, the. (Recall that a state is when it is removed from the OPEN list.) When all else is equal, nodes should be in alphabetical order. Depth first [7] Breadth first [7] Hill Climbing [8] (using the h function only) A* [8]

3. Constraint Satisfaction [35] You are planning a menu for friends and you ve narrowed down the choices for each of the four courses, appetizer (A), beverage (B), main course (C), and dessert (D) as follows. A: veggies (v) or escargot (e) B: water (w), soda (s), or milk (m) C: fish (f), hamburger (h), or pasta (p) D: tort (t), ice cream (i), or goat cheese (g) Each person gets the same menu consisting of one item in each course. Dietary restrictions of the guests imply the following constraints: i. The appetizer must be veggies or the main course must be pasta or fish. ii. If you serve escargot, the beverage must be water. iii. You must serve at least one of milk, ice cream or goat cheese. (a) [5] Draw the constraint graph associated with this problem. (Just show a graph with four nodes (one for each variable) labeled A, B, C and D and arcs connecting appropriate pairs of nodes that are involved in a joint constraint.) (b) [5] Show the initial domains of each of the four variables. (c) [10] Suppose we decide to have the appetizer be escargot, i.e., A=e. What are the domains of all the variables after applying the forwarding checking algorithm? (d) [10] Instead of using forward checking, as in (c), say we initially set A=e and then apply the arc consistency algorithm (AC-3). What are the domains of all the variables after it finishes? (e) [5] Give one possible final solution to this CSP or say why none exists.

4. Game trees and minimax [40] This is the starting position of the simple two-player game HOP4. 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 the opponent occupies an adjacent space, then a 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 the board. If player A reaches space 4 first, then the value of the game to A is +1; if player B reaches space 1 first, then the value of the game to A is -1. (a) Draw the complete game tree, using the following conventions: Write each state as (sa, sb) where sa and sb denote the token locations, i.e. 1, 2, 3 or 4. Put each terminal state in a square box and write its game value in a circle next to it. Put loop ( that already appear on the path to the root) in double square boxes. Since it is not clear how to assign values to loop, annotate each with a? in a circle. (b) Mark each node with its backed-up minimax value (also in a circle). Explain how you handle the? values and why. The? values are handled by assuming that an agent with a choice between winning the game and entering a? state will always choose the win. That is, min( 1,?) is 1 and max(+1,?) is +1. If all successors are?, the backed-up value is?.

5. Games, minimax and optimal play [30] You (MAX) are playing a game against your friend (MIN). Your friend is very tired from studying for the CMSC671 exam and she is not playing well today and liable to make mistakes. (a) You decide to use minimax decisions in playing against your friend. Can the fact that she is playing suboptimally hurt the performance of minimax? In other words, can the utility obtained by using minimax decisions against a suboptimal player be lower than that obtained against an optimal player? If so, provide a game tree that demonstrates this behavior. If not, provide a proof. (b) Suppose that you are aware when your friend will make a suboptimal move, and which move she will make (i.e., she will fall for the Scotch Gambit if you use it). Can you take advantage of this? In other words, can a suboptimal strategy on your part achieve higher utility than a minimax strategy if such assumptions are made? If so, provide a game tree that demonstrates this behavior. If not, provide a proof that this is not possible.

6. Propositional logic I [10] A propositional sentence is well formed if it follows the syntax of propositional logic, satisfiable if there is a way to assign true or false to each of its variables that makes the value of the overall sentence true, and valid if it is always true no matter what values its variables are assigned. Circle all of the following that are true: The sentence (P Q) (P Q) is (a) well formed; (b) valid; (c) satisfiable; (d) unsatisfiable? 7. Propositional logic II [15] Express each of the following English sentences as a single propositional logic expression when the symbols A, S, D and E have the following meaning: A R2D2 was in an accident. S R2D2 has a software malfunction. D R2D2 is damaged. E R2D2 needs to see an engineer. a) R2D2 was in an accident, but he isn t damaged. b) R2D2 needs to see an engineer if he has a software problem or is damaged. c) If R2D2 wasn t in an accident and doesn t have a software malfunction, then he doesn t need to see an engineer 8. Propositional logic III [10] Given a domain with a vocabulary of four propositional symbols, A, B, C, and D, how many models are there for the sentence: (A B) (B C)