And-Or Graphs CSCE 580 Spr03 Instructor: Marco Valtorta Hrishikesh J. Goradia Seang-Chan Ryu.

Slides:



Advertisements
Similar presentations
Adversarial Search Chapter 6 Section 1 – 4. Types of Games.
Advertisements

Artificial Intelligence By Mr. Ejaz CIIT Sahiwal.
An Introduction to Artificial Intelligence
CPSC 322, Lecture 5Slide 1 Uninformed Search Computer Science cpsc322, Lecture 5 (Textbook Chpt 3.5) Sept, 14, 2012.
State Space Representation and Search
PROBLEM SOLVING AND SEARCH
Review Binary Search Trees Operations on Binary Search Tree
Artificial Intelligence Adversarial search Fall 2008 professor: Luigi Ceccaroni.
ICS-271:Notes 6: 1 Notes 6: Game-Playing ICS 271 Fall 2008.
Game Playing (Tic-Tac-Toe), ANDOR graph By Chinmaya, Hanoosh,Rajkumar.
Part2 AI as Representation and Search
Game Playing Games require different search procedures. Basically they are based on generate and test philosophy. At one end, generator generates entire.
Graphs Graphs are the most general data structures we will study in this course. A graph is a more general version of connected nodes than the tree. Both.
Uninformed Search Jim Little UBC CS 322 – Search 2 September 12, 2014
UNINFORMED SEARCH Problem - solving agents Example : Romania  On holiday in Romania ; currently in Arad.  Flight leaves tomorrow from Bucharest.
Adversarial Search Chapter 5.
Adversarial Search CSE 473 University of Washington.
10/19/2004TCSS435A Isabelle Bichindaritz1 Game and Tree Searching.
Games with Chance Other Search Algorithms CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 3 Adapted from slides of Yoonsuck Choe.
Game Playing CSC361 AI CSC361: Game Playing.
UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering CSCE 580 Artificial Intelligence Ch.6: Adversarial Search Fall 2008 Marco Valtorta.
Structures and Strategies for State Space Search
1 search CS 331/531 Dr M M Awais A* Examples:. 2 search CS 331/531 Dr M M Awais 8-Puzzle f(N) = g(N) + h(N)
ICS-271:Notes 6: 1 Notes 6: Game-Playing ICS 271 Fall 2006.
Using Search in Problem Solving
Game Tree Search based on Russ Greiner and Jean-Claude Latombe’s notes.
Adversarial Search and Game Playing Examples. Game Tree MAX’s play  MIN’s play  Terminal state (win for MAX)  Here, symmetries have been used to reduce.
Adversarial Search: Game Playing Reading: Chess paper.
Solving problems by searching
Artificial Intelligence Course outline Introduction Problem solving Generic algorithms Knowledge Representation and Reasoning Expert Systems Uncertainty.
1 Adversary Search Ref: Chapter 5. 2 Games & A.I. Easy to measure success Easy to represent states Small number of operators Comparison against humans.
3.0 State Space Representation of Problems 3.1 Graphs 3.2 Formulating Search Problems 3.3 The 8-Puzzle as an example 3.4 State Space Representation using.
Logic Programming Lecture 7: Search Strategies: Problem representations Depth-first, breadth-first, and AND/OR search.
Game Playing. Introduction Why is game playing so interesting from an AI point of view? –Game Playing is harder then common searching The search space.
Game Playing.
1 Computer Group Engineering Department University of Science and Culture S. H. Davarpanah
AND/OR Graphs Ivan Bratko Faculty of Information and Computer Sc. University of Ljubljana Useful for solving problems by problem decomposition Searching.
Games. Adversaries Consider the process of reasoning when an adversary is trying to defeat our efforts In game playing situations one searches down the.
1 Adversarial Search CS 171/271 (Chapter 6) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Game Playing. Introduction One of the earliest areas in artificial intelligence is game playing. Two-person zero-sum game. Games for which the state space.
Problem Representation
CSCI 4310 Lecture 6: Adversarial Tree Search. Book Winston Chapter 6.
Adversarial Search Chapter Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent reply Time limits.
Lecture 3: 18/4/1435 Searching for solutions. Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
ARTIFICIAL INTELLIGENCE (CS 461D) Princess Nora University Faculty of Computer & Information Systems.
Introduction to State Space Search
Implementation: General Tree Search
Adversarial Search. Regular Tic Tac Toe Play a few games. –What is the expected outcome –What kinds of moves “guarantee” that?
Adversarial Search and Game Playing Russell and Norvig: Chapter 6 Slides adapted from: robotics.stanford.edu/~latombe/cs121/2004/home.htm Prof: Dekang.
CPSC 322, Lecture 5Slide 1 Uninformed Search Computer Science cpsc322, Lecture 5 (Textbook Chpt 3.5) Sept, 13, 2013.
Logic Programming Lecture 7: Search Strategies:
Adversarial Search In this lecture, we introduce a new search scenario: game playing 1.two players, 2.zero-sum game, (win-lose, lose-win, draw) 3.perfect.
Chapter 5 Adversarial Search. 5.1 Games Why Study Game Playing? Games allow us to experiment with easier versions of real-world situations Hostile agents.
Lecture 20. Graphs and network models 1. Recap Binary search tree is a special binary tree which is designed to make the search of elements or keys in.
Artificial Intelligence Solving problems by searching.
Adversarial Search and Game-Playing
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Games with Chance Other Search Algorithms
Games with Chance Other Search Algorithms
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Artificial Intelligence
Chapter 6 : Game Search 게임 탐색 (Adversarial Search)
Artificial Intelligence
Principles of Computing – UFCFA3-30-1
Search Exercise Search Tree? Solution (Breadth First Search)?
Problem Spaces & Search
Search.
Search.
Games with Chance Other Search Algorithms
Tutorial - 1 Course: CS60045 Pallab Dasgupta Professor,
Presentation transcript:

And-Or Graphs CSCE 580 Spr03 Instructor: Marco Valtorta Hrishikesh J. Goradia Seang-Chan Ryu

And-Or Graphs Technique for solving problems that can be decomposed into sub problems Links between nodes indicates relations between problems Or node: one of its successor node has to be solved And node: all of its successor node has to be solved Problem can be specified by two thinks: start node, goal nodes. Goal nodes: trivial (or primitive) problems Cost can be attached to arcs or nodes

And-Or Graphs Difference between state-state representation and and or representation. solution: path vs. tree

Search in and-or graphs a b c e hi dgf

Use Prolog’s own search mechanism –Only get answer yes or no not solution graph. –Hard to extend to use cost as well –Infinite loop if there is a cycle a :- b. a :- c. b :- d, e. e :- h. c :- f, g. f :- h, i. d. g. h.

Search in and-or graphs Other representation :- op (600, xfx, --->). :- op (500, xfx, :). a ---> or : [b,c]. b ---> and : [d,e]. c ---> and : [f,g]. e ---> or : [h]. f ---> or : [h,i]. goal( d). goal( g). goal( h).

Search in and-or graphs Depth first search. Modification of depth first search (restricting with maximum depth) – andor.pl Iterative deepening. (increase the maximum depth as the search goes along).

Applying and-or graphs Adversarial situations, such as game playing, can often be represented as and-or trees –Nodes represent the situation –Arcs represent possible actions for each player –Each path represents the sequence of choices made alternately by the two opponents In the case of game trees, one is interested in a winning strategy.

Tic-tac-toe game Max size of the state space for a complete solution = 9!

Tic-tac-toe game For pragmatic reasons, we will consider a subset of the tic-tac-toe problem. The adjacent figure shows the initial state of our tic-tac-toe program. Max. state space for our new problem = 4!

Tic-tac-toe game The winning positions (shown in red) are the goal states. tictactoe.pl shows the complete Prolog code for our problem. tictactoe.pl

Final comments… For use in real-world applications, the AND-OR graphs technique computes the best state instead of a complete path to the terminal state. These graphs use minmax search and are called game trees. The AND-OR technique for searching can be easily extended to accommodate cost in the graph problems