CSC 396 : Introduction to Artificial Intelligence

Similar documents
mywbut.com Two agent games : alpha beta pruning

Midterm Examination. CSCI 561: Artificial Intelligence

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

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

ARTIFICIAL INTELLIGENCE (CS 370D)

2 person perfect information

6.034 Quiz 1 October 13, 2005

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

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

Artificial Intelligence Lecture 3

Written examination TIN175/DIT411, Introduction to Artificial Intelligence

CS188 Spring 2010 Section 3: Game Trees

CS 4700: Artificial Intelligence

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

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

CS 229 Final Project: Using Reinforcement Learning to Play Othello

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

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

: Principles of Automated Reasoning and Decision Making Midterm

CS188 Spring 2010 Section 3: Game Trees

More on games (Ch )

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

Programming Project 1: Pacman (Due )

Games (adversarial search problems)

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

Adversarial Search (Game Playing)

Game Playing for a Variant of Mancala Board Game (Pallanguzhi)

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

Artificial Intelligence Search III

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

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

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

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:

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

COMP9414: Artificial Intelligence Adversarial Search

isudoku Computing Solutions to Sudoku Puzzles w/ 3 Algorithms by: Gavin Hillebrand Jamie Sparrow Jonathon Makepeace Matthew Harris

game tree complete all possible moves

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

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

CS510 \ Lecture Ariel Stolerman

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

Foundations of Artificial Intelligence

More on games (Ch )

Local Search. Hill Climbing. Hill Climbing Diagram. Simulated Annealing. Simulated Annealing. Introduction to Artificial Intelligence

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

CMPUT 396 Tic-Tac-Toe Game

Solving Problems by Searching: Adversarial Search

Unit 12: Artificial Intelligence CS 101, Fall 2018

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

A Quoridor-playing Agent

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

Adversary Search. Ref: Chapter 5

CSE : Python Programming

MAT 409 Semester Exam: 80 points

CS188 Spring 2014 Section 3: Games

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

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

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

SF2972 Game Theory Written Exam March 17, 2011

CSC384: Introduction to Artificial Intelligence. Game Tree Search

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

16.410/413 Principles of Autonomy and Decision Making

CS 188 Fall Introduction to Artificial Intelligence Midterm 1

Adversarial Search Aka Games

CS 188 Introduction to Fall 2014 Artificial Intelligence Midterm

CS 188: Artificial Intelligence Spring 2007

CPS331 Lecture: Genetic Algorithms last revised October 28, 2016

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

Announcements. CS 188: Artificial Intelligence Fall Local Search. Hill Climbing. Simulated Annealing. Hill Climbing Diagram

6.034 Quiz 2 20 October 2010

Homework Assignment #2

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

Spring 06 Assignment 2: Constraint Satisfaction Problems

Adaptive Hybrid Channel Assignment in Wireless Mobile Network via Genetic Algorithm

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

Homework Assignment #1

INF September 25, The deadline is postponed to Tuesday, October 3

CS 540: Introduction to Artificial Intelligence

Chapter 4 Heuristics & Local Search

COMP219: Artificial Intelligence. Lecture 13: Game Playing

CSE 473 Midterm Exam Feb 8, 2018

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

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

Introduction to Genetic Algorithms

Last-Branch and Speculative Pruning Algorithms for Max"

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

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

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

An Intelligent Othello Player Combining Machine Learning and Game Specific Heuristics

Evolutionary Computation for Creativity and Intelligence. By Darwin Johnson, Alice Quintanilla, and Isabel Tweraser

Adversarial Search 1

Generalized Game Trees

This paper presents a new algorithm of search of the best move in computer games like chess, the estimation of its complexity is obtained.

COMP5211 Lecture 3: Agents that Search

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

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

Prepared by Vaishnavi Moorthy Asst Prof- Dept of Cse

CS 188: Artificial Intelligence Spring Announcements

Adversarial Search and Game Playing. Russell and Norvig: Chapter 5

Transcription:

CSC 396 : Introduction to Artificial Intelligence Exam 1 March 11th - 13th, 2008 Name Signature - Honor Code This is a take-home exam. You may use your book and lecture notes from class. You many not use the internet or other resources. You may not talk with any other students about this exam. This exam is due at 11:00 am on March 13th. Place it under my office door when you have finished the exam. You may use other sheets of paper as necessary. You must show your work for full credit. 1

1 Searching 1 2 3 4 5 6 7 8 9 10 11 12 A variant of the solitaire puzzle Lights Out has the state space above, with all symmetrical game states compressed into one. State 1 is the initial state, and state 10 is the goal state. An action is to select one i, j position, and reverse the state of each square in the ith row and jth column. 1.1 What is the order of nodes expanded in Breadth First Search? If there is a tie, order the nodes based on their numbering above. 1.2 You are given an heuristic function h(x) = 9 - number of black squares. What is the order of nodes expanded in Best First Search using this heuristic? If there is a tie, order the nodes based on their numbering above. 1.3 Is this heuristic admissible? Why or why not? 2

2 Abstract Game Playing MAX MIN 2 9 12 5 8 7 16 3 5 9 7 1 Perform alpha-beta pruning on the above game tree, searching from left to right. Clearly mark all pruned paths and nodes, and report the optimal path. 3

3 Local Search 3.1 You are solving a minimization problem using Simulated Annealing. Our current node c has a score of 45. You randomly select a neighbor r with score 52. What is the probability of replacing c with r when the temperature is 47? 3.2 We are using an Evolutionary Algorithm for a maximization problem, and have the following population and evaluation scores: Individual Score C 5 D 25 E 16 F 44 G 10 3.2.1 What is the probability of B being selected to reproduce during one round of Proportional Fitness Selection? 3.2.2 What is the probability of B being selected to reproduce during one round of Tournament Selection? 3.3 You are solving the Traveling Salesperson Problem with 7 cities, and have the following two solutions: A = 1 2 3 4 5 6 7 B = 1 3 2 7 5 4 6 4

3.3.1 If we choose cut points after the first city and before the fifth city, what would be the result of using the OX crossover? 3.3.2 Generate one child using the ER crossover method. 5

4 Economic Game Theory Two players A and B are playing a game with the following payoff matrix for player A: A1 A2 B1 4-1 B2-2 3 4.1 What is the optimal mixed strategy for player A? 4.2 What is the expected value for this optimal strategy? 6

5 The Bin-Packing Problem The bin-packing problem is defined as follows: Suppose that we are given a set of n objects, where the size s i of the ith object satisfies 0 < s i < 1. We wish to pack all the objects into the minimum number of unit-size bins. Each bin can hold any subset of the objects whose total size does not exceed 1. (From Cormen, et al.) For example, with n = 8 and object sizes {.35,.67,.2,.17,.84,.45,.55,.04 }, A = 2, 3 1 4, 6 5, 8 7 B = 1, 3 2 4, 6, 8 5 7 represent legal solutions with 5 bins where each bin is delimited by the symbol. An illegal solution of 4 bins would be C = 1, 3, 7 2, 4 5 6, 8 since the total size of subset 1, 3, 7 in the first bin is.35 +.2 +.55 = 1.1. In this problem you will design an Evolutionary Algorithm to solve the bin-packing problem, namely the evaluation function, mutation operator, and crossover operator. Your solution will be graded on the legality of your functions and operators as well as how well they work in coordination to solve the bin-packing problem. 5.1 Describe an evaluation function for this representation. Your function must distinguish between the solutions A and B in the example above. 5.2 What are the evaluation scores for A and B? 5.3 Describe a mutation operator that generates legal solutions for this representation. 7

5.4 Calculate the size of the neighborhood for your operator. 5.5 Demonstrate your operator by showing two possible neighbors of solution A. 5.6 Describe a legal crossover operator for this representation. 5.7 Demonstrate your operator on A and B. 8