Written examination TIN175/DIT411, Introduction to Artificial Intelligence

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

UMBC CMSC 671 Midterm Exam 22 October 2012

Games and Adversarial Search II

Foundations of Artificial Intelligence

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

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

CS 188 Fall Introduction to Artificial Intelligence Midterm 1

COMP9414: Artificial Intelligence Adversarial Search

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

Artificial Intelligence Search III

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

CSC 396 : Introduction to Artificial Intelligence

: Principles of Automated Reasoning and Decision Making Midterm

CSE 473 Midterm Exam Feb 8, 2018

CS 540: Introduction to Artificial Intelligence

Midterm. CS440, Fall 2003

UMBC 671 Midterm Exam 19 October 2009

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

Spring 06 Assignment 2: Constraint Satisfaction Problems

ARTIFICIAL INTELLIGENCE (CS 370D)

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

Midterm Examination. CSCI 561: Artificial Intelligence

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

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

CS 188: Artificial Intelligence Spring 2007

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

15-381: Artificial Intelligence Assignment 3: Midterm Review

Constraint Satisfaction Problems: Formulation

6.034 Quiz 2 20 October 2010

CS 188 Introduction to Fall 2014 Artificial Intelligence Midterm

Adversary Search. Ref: Chapter 5

Spring 06 Assignment 2: Constraint Satisfaction Problems

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

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

CS 229 Final Project: Using Reinforcement Learning to Play Othello

Adversarial Search (Game Playing)

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

COMP5211 Lecture 3: Agents that Search

Artificial Intelligence Lecture 3

2 person perfect information

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

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

Homework Assignment #1

Game playing. Chapter 5, Sections 1 6

Documentation and Discussion

Game-Playing & Adversarial Search

Q1. [11 pts] Foodie Pacman

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

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

mywbut.com Two agent games : alpha beta pruning

CS 4700: Artificial Intelligence

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

Games (adversarial search problems)

Generalized Game Trees

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

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

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

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

Theory and Practice of Artificial Intelligence

6.034 Quiz 1 October 13, 2005

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

COMP219: Artificial Intelligence. Lecture 13: Game Playing

CS 387/680: GAME AI BOARD GAMES

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

22c:145 Artificial Intelligence

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

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

Artificial Intelligence. Topic 5. Game playing

Game-playing: DeepBlue and AlphaGo

Game Playing AI Class 8 Ch , 5.4.1, 5.5

A Quoridor-playing Agent

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

Announcements. CS 188: Artificial Intelligence Fall Today. Tree-Structured CSPs. Nearly Tree-Structured CSPs. Tree Decompositions*

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

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

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

AIMA 3.5. Smarter Search. David Cline

Homework Assignment #2

6.034 Quiz September 2018

CS188 Spring 2010 Section 3: Game Trees

Adversarial Search Aka Games

Heuristics & Pattern Databases for Search Dan Weld

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

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

Othello/Reversi using Game Theory techniques Parth Parekh Urjit Singh Bhatia Kushal Sukthankar

Programming Project 1: Pacman (Due )

Computer Game Programming Board Games

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

Adversarial Search: Game Playing. Reading: Chapter

Prepared by Vaishnavi Moorthy Asst Prof- Dept of Cse

game tree complete all possible moves

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

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

Adversarial Search 1

Foundations of AI. 5. Board Games. Search Strategies for Games, Games with Chance, State of the Art. Wolfram Burgard and Luc De Raedt SA-1

6.034 Quiz 1 25 September 2013

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

Assignment 2 (Part 1 of 2), University of Toronto, CSC384 - Intro to AI, Winter

Solving Problems by Searching

CS4700 Fall 2011: Foundations of Artificial Intelligence. Homework #2

Transcription:

Written examination TIN175/DIT411, Introduction to Artificial Intelligence Question 1 had completely wrong alternatives, and cannot be answered! Therefore, the grade limits was lowered by 1 point! Tuesday 13 February 2018, 8:30 12:30 Examiner: Peter Ljunglöf This examination consists of 12 questions, each giving 1 point. In total you can get 12 points. Questions 11 12 are slightly more advanced, and they are necessary for getting a higher grade. Grades: 6 To get grade 3/G/pass you need at least 7 points. To get grade 4 you need at least 9 points, including at least 1 point from questions 11 12. To get grade 5 / VG/distinction you need at least 11 points, including at least 2 points from questions 11 12. 10 Note: if you are a student from TIN174 or DIT410 you can only get grade 3 / G / pass. 8 Tools: Paper and pencil. No extra books, papers or calculators. No red pen! Notes: Answer every question directly on the question paper, and write your ID number at the top of every paper. If you have any extra papers with associated calculations, you should hand in them too. Remember to write legibly! https://www.smbc-comics.com/comic/ai-2

Checkers board problem n black checkers pieces occupy the white squares at the bottom row of an 2n 2n checkers board. The pieces must be moved to the top row but in reverse order; so that piece i that starts in square (2i, 1) must end up in square (2n 2i+1, 2n). At each time step, all n pieces move simultaneously. A piece can move one square diagonally, or stay where it is. Two pieces cannot occupy the same square. 1. State space and branching factor Note: This question has the wrong answer suggestions, so the pass limit of the exam was reduced What is the size of the state space (approximately)? n n 2 n 3 n 4 2 n n + n 2 Correct answer is approximately n 2n What is the branching factor (approximately)? 5 n 5n 5 + n n 2 5n 2 Correct answer is approximately 5 n 2. Dominating and admissible heuristics If we assume that there are no other pieces on the board, then the following is a nontrivial admissible heuristic for moving piece i to its goal location (2n 2i+1, 2n): h i = 2n y i = the number of vertical rows between the piece's current row and the top row Describe an admissible heuristic h for the complete problem with n pieces, which dominates every heuristics h i (1 i n).

Heuristic search The following search problem has only three states, and three directed edges. S is the start node and G is the goal node. To the right, three different heuristic functions are defined, h 1, h 2 and h 3. S 4 2 1 B 2 6 3 G h 1 h 2 h 3 S 8 7 3 A 3 4 0 A 4 C B 7 5 4 C 2 2 0 G 0 0 0 3. Which heuristics is admissible? Which (if any) of the heuristics are admissible? Check all that apply. h 1 h 2 h 3 none 4. What path is returned? What solutions will be returned by (a) breadth-first tree search, and (b) A* tree search using the h 3 heuristics? Breadth-first tree search A* tree search using using h 3 Final solotion path found Cost of final path

Heuristic search (cont.) 5 6. What would a search algorithm do? The generic search algorithm uses a frontier of nodes that are waiting to be expanded. At each iteration, one node is removed from the frontier, and its neighbors are added to the frontier. Fill the table below, for (a) A* tree search using the h 1 heuristics, and (b) for uniform-cost tree search. Important: Write the frontier in order with the head to the left, and write the f-values together with the nodes in the frontier, like this: "X(3) Y(3) Z(7)". Break all ties in the frontier alphabetically (this is why X came before Y in the example before). Question 5. A* tree search using h 1 Question 6. Uniform-cost tree search Initial frontier S(8) S(0) Node removed from frontier S S Nodes added to frontier A, B A, B Frontier after one iteration Node removed from frontier Nodes added to frontier Frontier after two iterations Node removed from frontier Nodes added to frontier Frontier after three iterations Node removed from frontier

Map colouring The map to the right shows the Baltic countries with their neighbours. We want to paint them using only the colours red, green, blue and yellow, so that no bordering countries have the same colour. Russia has already decided that it wants to be red, and since is is bordering every other country, noone else can be red. This leaves us with the possible colours (G)reen, (B)lue and (Y)ellow for the variables EST, LAT, LIT, BEL and POL. Furthermore, Estonia does not want to be yellow, and Belarus does not want to be blue! (Don't ask why, but it might be because of some people's fondness of constrait satisfaction problems). Russia (Kaliningrad) Poland Estonia Lativa Lithuania Russia Belarus 7. Formulate this problem as a CSP Draw the constraint graph below, and write the constraints at the graph edges. Enforce all unary constraints by reducing the initial domains. Circle every graph node and write the resulting domain inside the circle.

Map colouring (cont.) 8. Which variable should we choose next? Now we want to colour the rest of the countries using the backtracking algorithm. We need to select a variable which we can assign a value. Which one should we choose? a) Which variable(s) does the Minimum Remaining Values* heuristic suggest that you try next? (*i.e, choose the variable with the fewest legal values). Check all that apply: BEL EST LAT LIT POL b) Which variable(s) does the Degree Heuristic* suggest that you try next? (*i.e, choose the variable with most constraints on remaining variables). Check all that apply: BEL EST LAT LIT POL 9. Make the graph arc consistent Assume that we colour Poland yellow. What are the resulting domains after enforcing arc consistency on the graph? (If you want you can show your calculations here). Variable Domain after arc consistency EST LAT LIT BEL POL Y

Minimax search In the following minimax game tree, are maximising nodes, and are minimising nodes. Note that two leaves are unspecified and marked x and y. a 3 x 4 7 y 6 5 1 3 3 1 10. When will the minimax value be x or y? a) For which values of x will the minimax value of the topmost node be x? (Assuming that y = 0) b) For which values of y will the minimax value of the topmost node be y? (Assuming that x = 0) 11.* When will alpha-beta prune a branch? For which values of x and y will minimax with α-β pruning not consider branch a? (In other words: For which values of x and y will branch a be pruned away?)

Non-consistent heuristics 12.* Create an admissible but non-consistent heuristics Below is a search graph with starting state S and goal state G. It also has a heuristics h, but unfortunately it is not specified in all places. For which values of h(a) and h(b) will the heuristics be admissible but not consistent? S h: 5 4 2 C h: 3 2 1 B h:? 4 3 A h:? G h: 0