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

Similar documents
Midterm. CS440, Fall 2003

CSE 473 Midterm Exam Feb 8, 2018

CS 188 Introduction to Fall 2014 Artificial Intelligence Midterm

UMBC CMSC 671 Midterm Exam 22 October 2012

UMBC 671 Midterm Exam 19 October 2009

5.4 Imperfect, Real-Time Decisions

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

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

Midterm Examination. CSCI 561: Artificial Intelligence

5.4 Imperfect, Real-Time Decisions

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

Spring 06 Assignment 2: Constraint Satisfaction Problems

CSC 396 : Introduction to Artificial Intelligence

CS 540: Introduction to Artificial Intelligence

CMPT 310 Assignment 1

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

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

2 person perfect information

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

Spring 06 Assignment 2: Constraint Satisfaction Problems

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

CS188 Spring 2010 Section 3: Game Trees

CS188 Spring 2014 Section 3: Games

CS188 Spring 2010 Section 3: Game Trees

Search then involves moving from state-to-state in the problem space to find a goal (or to terminate without finding a goal).

CS510 \ Lecture Ariel Stolerman

CSEP 573 Adversarial Search & Logic and Reasoning

6.034 Quiz 1 October 13, 2005

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

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

CS 188 Fall Introduction to Artificial Intelligence Midterm 1

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

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

AIMA 3.5. Smarter Search. David Cline

ARTIFICIAL INTELLIGENCE (CS 370D)

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

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

mywbut.com Two agent games : alpha beta pruning

Artificial Intelligence

COS 226 Algorithms and Data Structures Fall Midterm Exam

CS 188: Artificial Intelligence Spring 2007

Informatics 2D: Tutorial 1 (Solutions)

Name: Your EdX Login: SID: Name of person to left: Exam Room: Name of person to right: Primary TA:

Artificial Intelligence. Minimax and alpha-beta pruning

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

Solving Problems by Searching

Artificial Intelligence Search III

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

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

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

15-381: Artificial Intelligence Assignment 3: Midterm Review

Artificial Intelligence

Adversarial Search. CS 486/686: Introduction to Artificial Intelligence

Set 4: Game-Playing. ICS 271 Fall 2017 Kalev Kask

Written examination TIN175/DIT411, Introduction to Artificial Intelligence

Game-Playing & Adversarial Search

Prepared by Vaishnavi Moorthy Asst Prof- Dept of Cse

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

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

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

Homework Assignment #2

: Principles of Automated Reasoning and Decision Making Midterm

CS 188: Artificial Intelligence. Overview

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

CMPT 310 Assignment 1

COS 226 Algorithms and Data Structures Fall Midterm Exam

Programming Project 1: Pacman (Due )

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

CS 229 Final Project: Using Reinforcement Learning to Play Othello

Theory and Practice of Artificial Intelligence

Adversarial Search. CS 486/686: Introduction to Artificial Intelligence

Artificial Intelligence Lecture 3

CS 188: Artificial Intelligence Spring Announcements

Homework Assignment #1

Adversarial Search 1

Logical Agents (AIMA - Chapter 7)

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

CS 4700: Foundations of Artificial Intelligence

History and Philosophical Underpinnings

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

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

Ar#ficial)Intelligence!!

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

CPS331 Lecture: Search in Games last revised 2/16/10

More on games (Ch )

Game Playing AI Class 8 Ch , 5.4.1, 5.5

COMP9414: Artificial Intelligence Problem Solving and Search

CS440/ECE448 Lecture 11: Stochastic Games, Stochastic Search, and Learned Evaluation Functions

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

CS 771 Artificial Intelligence. Adversarial Search

Artificial Intelligence Adversarial Search

CS 331: Artificial Intelligence Adversarial Search II. Outline

Last update: March 9, Game playing. CMSC 421, Chapter 6. CMSC 421, Chapter 6 1

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

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

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

6.034 Quiz 2 20 October 2010

2048: An Autonomous Solver

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

Today. Nondeterministic games: backgammon. Algorithm for nondeterministic games. Nondeterministic games in general. See Russell and Norvig, chapter 6

Transcription:

Name: CS 331 Midterm Spring 2017 You have 50 minutes to complete this midterm. You are only allowed to use your textbook, your notes, your assignments and solutions to those assignments during this midterm. If you find that you are spending a large amount of time on a difficult question, skip it and return to it when you ve finished some of the easier questions. Total marks for this midterm is 46. Section Marks Agents / 8 Search / 10 Games / 13 Logic / 15 Total / 46 Pg 1/7

Section I: Agents (8 points) 1. Consider an agent designed to solve instances of the 8-tile puzzle described in class. Recall that the 8-tile puzzle is a 3x3 grid with 8 numbered tiles and one blank square, and the objective is to get from an initial configuration of the tiles to a specified configuration (usually with the tiles in numeric order). For each part below, circle the choice which best describes the environment for this agent: a) Fully observable or Partially observable [1 point] b) Deterministic or Stochastic [1 point] c) Episodic or Sequential [1 point] d) Static or Dynamic [1 point] e) Discrete or Continuous [1 point] f) Single agent or Multi-agent [1 point] 2. What type of agent is the 8-tile puzzle solver from question 1? Choose from simple reflex agent, model-based reflex agent, goal-based agent and utility-based agent. Give a one or two sentence justification of your answer. [2 Goal or utility based, since there is clearly a goal state to be reached. Intermediate states could be modeled as having utility values or not. Pg 2/7

II. Search [10 4. Consider formulating the 8-tile puzzle as a local search problem and representing a state as an array of 9 symbols corresponding to the tile positions. For example, 6 4 3 1 2 7 8 5 would be represented as [6 4 3 1 2 7 8 B 5], with B for blank. a) List the neighbors for the state shown above in this representation? [2 [6 4 3 1 2 7 8 5 B] [6 4 3 1 B 7 8 2 5] [6 4 3 1 2 7 B 8 5] b) Propose an evaluation function for this problem. [2 Any of the heuristics we used for A* on this problem would serve here. E.g. number of misplaced tiles, Manhattan distance. c) Using this state representation, would genetic algorithms be a promising approach to this problem? Why or why not? [2 No. The crossover operation applied to this state representation would not necessarily correspond to legal moves for the game. Pg 3/7

5. In the tree-search algorithm, the goal test is applied after a node is removed from the queue. We saw that breadth-first search (BFS) and uniform cost search (UCS) are optimal tree-search strategies. Consider a variant of tree-search in which the goal test occurs when nodes are expanded instead, right before they are inserted into the queue. a) Is BFS (with uniform step costs) still optimal in this variant? Why or why not? [2 Yes. The nodes would be checked in the same order. Computationally, this would save us from having to generate nodes in the last level of the tree. b) Is UCS (with non-uniform step costs) still optimal in this variant? Why or why not? [2 No. Like in A*, it is possible to explore a sub-optimal path to the goal before we find the optimal one. (In graph search, where we keep track of explored nodes, the goal test can be moved earlier as long as we do the extra bookkeeping to make sure we keep the best path to each node.) III. Games [13 6. Below is a portion of a game tree. At this point, MAX is choosing between a guaranteed utility of 10 versus tossing a series of coins. Which action should MAX choose (left or right)? Use the expectiminimax algorithm to decide, and show your work. [7 MAX should take the left (chance) action. Pg 4/7

7. Consider the following game tree, in which the terminal nodes have utilities W through Z, and the edges are labeled with A through F. a) Give a mathematical expression for the minimax value at the root node in terms of the utilities. (Hint: you can use min() and max() functions that return the minimum or maximum of their arguments, respectively.) [2 max (min(w, X), min(y, Z)) b) Suppose W = 3, X = 6, Y = 4, and Z = 5. Are any of the edges pruned by the alphabeta algorithm? If so, which ones? [2 None are pruned. c) Suppose W = 7 and X = 2. Give a value for Y such that edge F is pruned by the alpha-beta algorithm. [2 Any value less than or equal to 2 works. Pg 5/7

IV. Propositional Logic [16 8. Is the following sentence valid, unsatisfiable, or neither? Justify your answer. [2 ((A B) C) ((A C) (B C)) LHS: (A B) C A B C RHS: ( A C) ( B C) A B C Let P = A B C. The original sentence is P P. By the definition of the biconditional operator, this is valid. 9. Convert the following English sentences into propositional logic. If I study and I get enough sleep, then I will pass the exam. If my homework is not late, then I will get full credit for it. I can study or I can get enough sleep, but not both. [3 (Study Sleep) Exam Late Credit (Study Sleep) Pg 6/7

10. Convert the following KB into CNF. [5 P Q (Q R) S (R S) T P Q Q P Q R S R T S T 11. Use the resolution algorithm to determine whether the following KB entails B. [5 1. A B 2. B C 3. C D 4. B E 5. D F 6. E F 7. B 8. A (7 + 1) 9. E (4 + 7) 10. A C (1 + 2) 11. C E (2 + 4) 12. D E (5 + 6) No new clauses can be generated, so the KB does not entail B. Pg 7/7