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

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

COMP9414: Artificial Intelligence Problem Solving and Search

ARTIFICIAL INTELLIGENCE (CS 370D)

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

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

Artificial Intelligence Lecture 3

Unit 12: Artificial Intelligence CS 101, Fall 2018

CMPUT 396 Tic-Tac-Toe Game

: Principles of Automated Reasoning and Decision Making Midterm

mywbut.com Two agent games : alpha beta pruning

Adversary Search. Ref: Chapter 5

COMP5211 Lecture 3: Agents that Search

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

Problem. Operator or successor function - for any state x returns s(x), the set of states reachable from x with one action

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

UMBC 671 Midterm Exam 19 October 2009

CSC 396 : Introduction to Artificial Intelligence

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

COMP9414: Artificial Intelligence Adversarial Search

16.410/413 Principles of Autonomy and Decision Making

UNIT 13A AI: Games & Search Strategies. Announcements

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

UNIT 13A AI: Games & Search Strategies

Monday, February 2, Is assigned today. Answers due by noon on Monday, February 9, 2015.

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

Adversarial Search 1

CS 771 Artificial Intelligence. Adversarial Search

CS 730/730W/830: Intro AI

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

CS 188: Artificial Intelligence Spring 2007

Tutorial 1. (ii) There are finite many possible positions. (iii) The players take turns to make moves.

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

The Hex game and its mathematical side

Foundations of AI. 3. Solving Problems by Searching. Problem-Solving Agents, Formulating Problems, Search Strategies

Artificial Intelligence

Rules of the game. chess checkers tic-tac-toe...

2 person perfect information

Solving Problems by Searching

Adversarial Search (Game Playing)

Game-Playing & Adversarial Search

AI Approaches to Ultimate Tic-Tac-Toe

Determining the Cost Function In Tic-Tac-Toe puzzle game by Using Branch and Bound Algorithm

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

CS 4700: Foundations of Artificial Intelligence

Foundations of AI. 3. Solving Problems by Searching. Problem-Solving Agents, Formulating Problems, Search Strategies

Game Playing AI. Dr. Baldassano Yu s Elite Education

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

Artificial Intelligence Search III

6.034 Quiz 1 October 13, 2005

Wednesday, February 1, 2017

Artificial Intelligence Adversarial Search

Adversarial Search Aka Games

Lecture 33: How can computation Win games against you? Chess: Mechanical Turk

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

Introduction Solvability Rules Computer Solution Implementation. Connect Four. March 9, Connect Four 1

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

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

Artificial Intelligence. Minimax and alpha-beta pruning

Game-playing AIs: Games and Adversarial Search I AIMA

Tac Due: Sep. 26, 2012

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

Game Playing AI Class 8 Ch , 5.4.1, 5.5

Spring 06 Assignment 2: Constraint Satisfaction Problems

Intelligent Agents & Search Problem Formulation. AIMA, Chapters 2,

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

Rules of the game. chess checkers tic-tac-toe...

Aja Huang Cho Chikun David Silver Demis Hassabis. Fan Hui Geoff Hinton Lee Sedol Michael Redmond

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

Heuristics & Pattern Databases for Search Dan Weld

Problem Solving and Search

Math 152: Applicable Mathematics and Computing

Foundations of Artificial Intelligence

Practice Session 2. HW 1 Review

CSC 110 Lab 4 Algorithms using Functions. Names:

Artificial Intelligence

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

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

Midterm Examination. CSCI 561: Artificial Intelligence

CS 188 Introduction to Fall 2014 Artificial Intelligence Midterm

Using Artificial intelligent to solve the game of 2048

ADVERSARIAL SEARCH. Chapter 5

PUTNAM PROBLEMS FINITE MATHEMATICS, COMBINATORICS

CS103 Handout 25 Spring 2017 May 5, 2017 Problem Set 5

Combined Games. Block, Alexander Huang, Boao. icamp Summer Research Program University of California, Irvine Irvine, CA

! HW5 now available! ! May do in groups of two.! Review in recitation! No fancy data structures except trie!! Due Monday 11:59 pm

CS 188: Artificial Intelligence

Free Cell Solver. Copyright 2001 Kevin Atkinson Shari Holstege December 11, 2001

Lecture 2: Problem Formulation

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

COMP219: Artificial Intelligence. Lecture 13: Game Playing

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

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

Games and Adversarial Search II

Spring 06 Assignment 2: Constraint Satisfaction Problems

5.4 Imperfect, Real-Time Decisions

Tic-tac-toe. Lars-Henrik Eriksson. Functional Programming 1. Original presentation by Tjark Weber. Lars-Henrik Eriksson (UU) Tic-tac-toe 1 / 23

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

Using Neural Network and Monte-Carlo Tree Search to Play the Game TEN

ADVERSARIAL SEARCH. Today. Reading. Goals. AIMA Chapter , 5.7,5.8

Midterm. CS440, Fall 2003

Transcription:

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

Physical Symbol System Hypothesis Intelligent Activity is achieved through the use of : Symbol patterns to represent significant aspects of a problem domain (eg. How do we describe a human being?) Operations on these patterns to generate potential solutions to problems. Search to select a solution from among these possibilities The physical symbol system hypothesis (Newell & Simon) implicitly distinguishes between pattern formed by an arrangement of symbols and the medium used to implement them. If intelligence derives only from the structure of a symbol system, then any medium that successfully implements the correct patterns and processes will achieve intelligence, regardless of whether it is composed of neurons or logic circuits.

Physical Symbol System Hypothesis (cont ) Problem solving as search Problems are solved by searching amongst alternative choices Eg. consider a game of tic-tac-toe: Given any board situation there are only a finite number of moves that a player can make. Starting with empty board there are 9 moves, then iteratively one less until we reach 0 Each board configuration is a node in a graph. The links in the graph represent legal moves. The different nodes are the different states (configurations) the board can be in. The resulting structure is referred to as the state space graph.

State Space Graph pg 43 Luger for diagram The significance of this structure is that by starting at the node representing a new board and moving along arcs until we get to a state representing a win or a tie, it is possible to trace the sequence of moves in any potential game. All possible games of tic-tac-toe are essentially all the different paths through the state graph.

State Space Search Therefore one effective game strategy would be to search for paths that lead to the most wins and fewest loses and play in a way that always tries to force the game along one of these paths. Graph = { set of nodes S } + { transition relation SxS} Graph theory is our best tool for reasoning about the structure of objects and relations.

Leonhard Euler Konigsberg Bridge problem Problem : Is there a walk around the city that crosses each bridge exactly once? Euler noted that unless a graph contained exactly zero or two nodes of odd degree, the walk was impossible!!

Graph Theory ( basic definitions ) A graph is a set of nodes and arcs that connect them. The nodes and arcs may be labelled. Arc labels are used to indicate that an arc represents a named relationship or to attach weights to an arc (as in TSP). A graph is directed if arcs have an associated directionality. A path through a graph connects a sequence of nodes through successive arcs. A rooted graph has a unique node denoted the root node, such that there is a path from the root to all nodes within the graph. Eg. The initial board configuration of a game is usually represented by the root node. From it all possible games can be played. A tree is a graph in which two nodes have at most one path between them. Loop/cycle free graph

State Space ( four-tuple [N,A,S,GD] ) N is a set of nodes or states of the graph. These correspond to the states in a problem-solving process. A is a set of arcs between nodes. These correspond to the steps in a problem-solving process. S, a nonempty subset of N, contains the start state(s) of the problem GD, a nonempty subset of N, contains the goal state(s) of the problem. The states in GD are described using either: A measurable property of the states encountered in the search A property of the path developed in the search, for example, the transition costs for the arcs of the paths. A solution path (what we want!!!) is a path through this graph from a node S to a node in GD

Problem 1 : Tic-Tac-Toe (State Space)

Problem 1 : Tic-Tac-Toe ( search) GD = { N board state has 3 Xs in a row,column or diagonal } assuming we are playing for X Note that there are 3 9 ways to arrange {blank,x,o} however The transition function (A) will actually give you a subset of these. We have a graph here and not a tree really why? Because some states can be reached by different paths (level three and deeper), however There are no cycles in the state space, because the directed arcs of the graph do not allow a move to be undone. Directed Acyclic Graph (DAG) 9! different paths for chess we have 10 120 paths while checkers 10 40 paths. For these spaces we need hueristics.

Problem 2 : The 8-puzzle (State Space)

Problem 2 : The 8-puzzle ( search) 15 (or 8) different numbered tiles are fitted into 16 (or 9) spaces on a grid. One space is left blank so that tiles can be moved around to form different patterns. The goal is to find a series of moves of tiles into the blank space that places the board in a goal configuration. How do I represent the board? It is much simpler to think in terms of moving the blank space in order to simplify the definition of legal move rules, which are: Move the blank up or right or down or left without moving it off the board.

Problem 2 : The 8-puzzle ( cont) As with tic-tac-toe, the state space is a graph with most states having multiple parents, however Cycles are possible!!! (implications??) The GD (goal description) of the state space is a particular state or board configuration. Search terminates when this board is found (unique) Then path from the start to the goal is the desired series of moves (multiple ones) Translate to decision problems does there exist a path with a maximum of N transitions

Problem 3 : Travelling Salesman Problem Definition: Suppose a salesperson has N cities to visit and then must return home. What is the shortest path for the salesperson to travel, visiting each city, and then returning to the home city. The arcs are labelled with the distance between the cities it connects. The GD requires a complete circuit with minimum cost. This is different from what we ve seen so far because the GD is a property of the entire path rather than a single state!

Problem 3 : Travelling Salesman Problem (Search)

Problem 3 : Travelling Salesman Problem

Problem 3 : Travelling Salesman Problem (a simple heuristic) Rule go to the closest unvisited city Rule go to nearest neighbour Very efficient but will not give you the optimal path!!

Strategies (Data vs Goal driven search) Data-Driven search (forward chaining): problem solver begins with the given facts of the problem and a set of legal moves or rules for changing state Goal-Driven search (backward chaining): take the goal that we want to solve, then see what rules or legal moves could be used to generate this goal and determine what conditions must be true to use them.

Depth / Breadth First Searches (describe using 8-puzzle game)

Best First Search (start using heuristics) Hill climbing strategies expand the current state in the search and evaluate its children. The best child is selected for further expansion. Search halts when it reaches a state that is better than an of its children. Problem of become stuck in a local maxima!! Eg Genetic algorithms