Two – One Problem Legal Moves: Slide Rules: 1s’ move right Hop

Slides:



Advertisements
Similar presentations
Basic Search Methods How to solve the control problem in production-rule systems? Basic techniques to find paths through state- nets. For the moment: -
Advertisements

Part2 AI as Representation and Search
Alford Academy Business Education and Computing1 Advanced Higher Computing Based on Heriot-Watt University Scholar Materials Problem abstraction and symbolic.
CMPS 2433 Discrete Structures Chapter 5 - Trees R. HALVERSON – MIDWESTERN STATE UNIVERSITY.
1 Section 9.1 Introduction to Trees. 2 Tree terminology Tree: a connected, undirected graph that contains no simple circuits –must be a simple graph:
CS 171: Introduction to Computer Science II
Data Structures: Trees i206 Fall 2010 John Chuang Some slides adapted from Marti Hearst, Brian Hayes, or Glenn Brookshear.
AVL Trees / Slide 1 Delete Single rotation Deletion.
Structures and Strategies for State Space Search
Quiz Oct “Solving” a Jiggsaw puzzle We want to build a “jigsaw puzzle solver”. You are given 3 jigsaw puzzle pieces, A,B,C and a template. Your.
Using Search in Problem Solving
Trees. 2 Definition of a tree A tree is a node with a value and zero or more children Depending on the needs of the program, the children may or may not.
Trees Chapter 23 Copyright ©2012 by Pearson Education, Inc. All rights reserved.
1 Structures and Strategies for State Space Search 3 3.0Introduction 3.1Graph Theory 3.2Strategies for State Space Search 3.3Using the State Space to Represent.
CSC 2300 Data Structures & Algorithms February 6, 2007 Chapter 4. Trees.
Chapter 18 - basic definitions - binary trees - tree traversals Intro. to Trees 1CSCI 3333 Data Structures.
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.
1 Trees Tree nomenclature Implementation strategies Traversals –Depth-first –Breadth-first Implementing binary search trees.
Introduction Of Tree. Introduction A tree is a non-linear data structure in which items are arranged in sequence. It is used to represent hierarchical.
Tree A connected graph that contains no simple circuits is called a tree. Because a tree cannot have a simple circuit, a tree cannot contain multiple.
CS 415 – A.I. Slide Set 5. Chapter 3 Structures and Strategies for State Space Search – Predicate Calculus: provides a means of describing objects and.
Data Structures TREES.
Problem Representation
DATA STRUCTURE Presented By: Mahmoud Rafeek Alfarra Using C# MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.
1 5. Abstract Data Structures & Algorithms 5.1 Data Structure Fundamentals.
Trees : Part 1 Section 4.1 (1) Theory and Terminology (2) Preorder, Postorder and Levelorder Traversals.
CSCI 4310 Lecture 2: Search. Search Techniques Search is Fundamental to Many AI Techniques.
Artificial Intelligence Lecture No. 6 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Data Structures Lakshmish Ramaswamy. Tree Hierarchical data structure Several real-world systems have hierarchical concepts –Physical and biological systems.
Introduction to State Space Search
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
G5AIAI Introduction to AI
Trees A non-linear implementation for collection classes.
Tree Representation and Terminology Binary Trees Binary Search Trees Pointer-Based Representation of a Binary Tree Array-Based Representation of a Binary.
Section10.1: Introduction to Trees
Slide 1 Structured Naming. Slide 2 Given Credit Where It Is Due The following slides are borrowed from Dr. Katerina Goseva-Popstojanova at West Virginia.
ADT description Implementations
CSCE 210 Data Structures and Algorithms
Source Code for Data Structures and Algorithm Analysis in C (Second Edition) – by Weiss
Objective: Understand Concepts related to trees.
Binary Trees "A tree may grow a thousand feet tall, but its leaves will return to its roots." -Chinese Proverb.
Introduction to Trees Section 11.1.
Section 8.1 Trees.
Artificial Intelligence Lecture No. 6
Trees.
Trees.
هوش مصنوعی فصل سوم: حل مسئله با جستجو
Quiz Oct
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 10 Trees Slides are adopted from “Discrete.
Thinking about grammars
Trees Definitions Implementation Traversals K-ary Trees
Trees (Part 1, Theoretical)
Lecture 36 Section 12.2 Mon, Apr 23, 2007
CSE (c) S. Tanimoto, 2001 Search-Introduction
Copyright ©2012 by Pearson Education, Inc. All rights reserved
Trees 11.1 Introduction to Trees Dr. Halimah Alshehri.
Tree.
CSE (c) S. Tanimoto, 2002 State-Space Search
Chapter 20: Binary Trees.
Chapter 11 Trees © 2011 Pearson Addison-Wesley. All rights reserved.
Binary Trees.
Two – One Problem Legal Moves: Slide Rules: 1s’ move right Hop
CSE (c) S. Tanimoto, 2004 State-Space Search
Tree and its terminologies
Thinking about grammars
Generating Function and Applications
Solving Problems by Searching
Trees.
Data Structures – Binary Tree
Cs212: Data Structures Lecture 7: Tree_Part1
Presentation transcript:

Two – One Problem Legal Moves: Slide Rules: 1s’ move right Hop Start Goal 1 1 ? 2 2 2 2 ? 1 1 Legal Moves: Slide Hop Rules: 1s’ move right 2s’ move left Only one move at a time No backing up

Two – One Problem Trials to solve the problem Trial One Trial Two 1 1 ? 2 2 1 1 ? 2 2 1 1 2 ? 2 1 ? 1 2 2 1 ? 2 1 2 ? 1 1 2 2 1 2 ? 1 2 Stuck!!! 1 2 2 1 ? 1 2 2 ? 1 Stuck!!!

Two – One Problem Five States

Two – One Problem Solution Space H H ? 1 1 2 2 1 1 ? 2 2 1 1 2 2 ? S S 1 ? 1 2 2 1 1 2 ? 2 S H H S ? 1 1 2 2 1 2 1 ? 2 1 ? 2 1 2 1 1 2 2 ? S S S S 1 2 1 2 ? 1 2 ? 1 2 ? 1 2 1 2 H H H H 1 2 ? 2 1 ? 2 1 1 2 1 2 2 1 ? 2 1 ? 1 2 S H S S H S 1 2 2 ? 1 ? 2 1 2 1 2 ? 1 1 2 1 2 2 ? 1 2 1 1 2 ? 2 ? 1 1 2 S S 2 ? 1 2 1 2 1 2 ? 1 H H 2 2 1 ? 1 2 ? 2 1 1 S S 2 2 ? 1 1

Solution to Problem Solving : Searching 1 1 ? 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 2 1 ? 1 1 2 2 2 1 2 1 2 1 2 1 2 2 1 1 2 1 2 2 1 2 1 2 1 2 1 2 2 1 2 1 1 H S

Tree and Graph Terminology B C D E F G H I J “A” is the “root node” “A, B, C …. J” are “nodes” “B” is a “child” of “A” “A” is ancestor of “D” “D” is a descendant of “A” “D, E, F, G, I, J” are “leaf nodes” Arrows represent “edges” or “links”

Examples of Graphs However, graphs can also be much more abstract. Think of the graph defined as follows: the nodes denote descriptions of a state of the world, e.g. which blocks are on top of what in a blocks scene, and where the links represent actions that change from one state to the other. A path through such a graph (from a start node to a goal node) is a "plan of action" to achieve some desired goal state from some known starting state. It is this type of graph that is of more general interest in AI.

Problem Formulation using Graphs The search methods we’ll be dealing with are defined on trees and graphs S G F E C B D A 2 3 1 4 Comment on it from Winston Figure 4.1

Tree Search Graph search is really tree search 3 3 A B C 2 4 4 S G 3 2 D 2 B D A E 4 4 S G C E E B B F 3 2 D E F D F B F C E A C G 1 3 G C G F G