PART-2 CSC 450-AI by Asma Tabuk 1 CSC 450 - AI Informed Search Algorithms College of Computer and Information Technology Department of Computer.

Slides:



Advertisements
Similar presentations
BEST FIRST SEARCH - BeFS
Advertisements

Artificial Intelligence
Informed search algorithms
Lights Out Issues Questions? Comment from me.
Review: Search problem formulation
Informed Search Algorithms
Notes Dijstra’s Algorithm Corrected syllabus.
Informed search strategies
Informed search algorithms
An Introduction to Artificial Intelligence
A* Search. 2 Tree search algorithms Basic idea: Exploration of state space by generating successors of already-explored states (a.k.a.~expanding states).
Problem Solving: Informed Search Algorithms Edmondo Trentin, DIISM.
Ch 4. Heuristic Search 4.0 Introduction(Heuristic)
Solving Problem by Searching
1 Heuristic Search Chapter 4. 2 Outline Heuristic function Greedy Best-first search Admissible heuristic and A* Properties of A* Algorithm IDA*
Problem Solving by Searching
SE Last time: Problem-Solving Problem solving: Goal formulation Problem formulation (states, operators) Search for solution Problem formulation:
Review: Search problem formulation
Artificial Intelligence
Cooperating Intelligent Systems Informed search Chapter 4, AIMA.
CS 460 Spring 2011 Lecture 3 Heuristic Search / Local Search.
Problem Solving and Search in AI Heuristic Search
CSC344: AI for Games Lecture 4: Informed search
Cooperating Intelligent Systems Informed search Chapter 4, AIMA 2 nd ed Chapter 3, AIMA 3 rd ed.
CS 561, Session 6 1 Last time: Problem-Solving Problem solving: Goal formulation Problem formulation (states, operators) Search for solution Problem formulation:
Informed search algorithms
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
Informed search algorithms
Informed search algorithms
Informed search algorithms Chapter 4. Outline Best-first search Greedy best-first search A * search Heuristics.
1 Shanghai Jiao Tong University Informed Search and Exploration.
Informed search algorithms Chapter 4. Best-first search Idea: use an evaluation function f(n) for each node –estimate of "desirability"  Expand most.
ISC 4322/6300 – GAM 4322 Artificial Intelligence Lecture 3 Informed Search and Exploration Instructor: Alireza Tavakkoli September 10, 2009 University.
Informed search strategies Idea: give the algorithm “hints” about the desirability of different states – Use an evaluation function to rank nodes and select.
Informed searching. Informed search Blind search algorithms do not consider any information about the states and the goals Often there is extra knowledge.
Informed Search Strategies Lecture # 8 & 9. Outline 2 Best-first search Greedy best-first search A * search Heuristics.
HEURISTIC SEARCH.
Chapter 4 Informed/Heuristic Search
Review: Tree search Initialize the frontier using the starting state While the frontier is not empty – Choose a frontier node to expand according to search.
CSC3203: AI for Games Informed search (1) Patrick Olivier
1 Kuliah 4 : Informed Search. 2 Outline Best-First Search Greedy Search A* Search.
Informed Search Reading: Chapter 4.5 HW #1 out today, due Sept 26th.
Informed Search and Heuristics Chapter 3.5~7. Outline Best-first search Greedy best-first search A * search Heuristics.
4/11/2005EE562 EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 4, 4/11/2005 University of Washington, Department of Electrical Engineering Spring 2005.
A General Introduction to Artificial Intelligence.
Feng Zhiyong Tianjin University Fall  Best-first search  Greedy best-first search  A * search  Heuristics  Local search algorithms  Hill-climbing.
Best-first search Idea: use an evaluation function f(n) for each node –estimate of "desirability"  Expand most desirable unexpanded node Implementation:
Pengantar Kecerdasan Buatan 4 - Informed Search and Exploration AIMA Ch. 3.5 – 3.6.
Informed Search II CIS 391 Fall CIS Intro to AI 2 Outline PART I  Informed = use problem-specific knowledge  Best-first search and its variants.
Informed Search CSE 473 University of Washington.
Heuristic Search Foundations of Artificial Intelligence.
1 HEURISTIC SEARCH ( INFORMED SEARCH). 2  From Greek heuriskein, “to find”.  Of or relating to a usually speculative formulation serving as a guide.
Chapter 3.5 and 3.6 Heuristic Search Continued. Review:Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
1 HEURISTIC SEARCH ( INFOREMD SEARCH). 2  From Greek heuriskein, “to find”.  Of or relating to a usually speculative formulation serving as a guide.
Artificial Intelligence Lecture No. 8 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
CPSC 420 – Artificial Intelligence Texas A & M University Lecture 5 Lecturer: Laurie webster II, M.S.S.E., M.S.E.e., M.S.BME, Ph.D., P.E.
For Monday Read chapter 4 exercise 1 No homework.
Chapter 3 Solving problems by searching. Search We will consider the problem of designing goal-based agents in observable, deterministic, discrete, known.
Chapter 3.5 Heuristic Search. Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
Review: Tree search Initialize the frontier using the starting state
Heuristic Search Introduction to Artificial Intelligence
Artificial Intelligence Problem solving by searching CSC 361
Discussion on Greedy Search and A*
Discussion on Greedy Search and A*
CS 4100 Artificial Intelligence
Informed search algorithms
Informed search algorithms
Artificial Intelligence
Artificial Intelligence
Informed Search.
Presentation transcript:

PART-2 CSC 450-AI by Asma Tabuk 1 CSC AI Informed Search Algorithms College of Computer and Information Technology Department of Computer Science

Key Terms CSC 450-AI by Asma Tabuk 2 Asymptotic Notation  The O() notation gives us what is called Asymptotic Analysis. NP  Non deterministic Polynomial  NP-Complete  Complete means most extreme  Hardest problems in the class NP Toy Problem – e.g. Vaccum Cleaner World  Intended to illustrate or exercise various problem-solving methods.  It can be given a concise, exact description and hence is usable by different researchers to compare the performance of algorithms. Real Life Problem – e.g. Chess  one whose solutions people actually care about.  Such problems tend not to have a single agreed-upon description, but we can give the general flavor of their formulations.

HEURISTICS  From Greek heuriskein, “to find”.  Of or relating to a usually speculative formulation serving as a guide in the investigation or solution of a problem.  Computer Science: Relating to or using a problem-solving technique in which the most appropriate solution, of several found by alternative methods, is selected at successive stages of a program for use in the next step of the program. 3 CSC 450-AI by Asma Tabuk

HEURISTIC SEARCH Introduction: Al problem solvers employ heuristics in two situations:- – First: A problem may not have an exact solution, because of inherent ambiguities in the problem statement or available data. Medical diagnosis is an example of this. A given set of symptoms may have several possible causes. Doctors use heuristics to chose the most likely diagnosis and formulate a plan of treatment. 4 CSC 450-AI by Asma Tabuk

HEURISTIC SEARCH Introduction : Al problem solvers employ heuristics in two situations:- – First: A problem may not have an exact solution, because of inherent ambiguities in the problem statement or available data. Vision is another example of an inherently inexact problem. Visual scenes are often ambiguous, allowing multiple interpretations of the connectedness, extent and orientation of objects. 5 CSC 450-AI by Asma Tabuk

HEURISTIC SEARCH Introduction: ALL problem solvers employ heuristics in two situations:- – First: A problem may not have an exact solution, because of inherent ambiguities in the problem statement or available data. Optical illusions exemplify these ambiguities. Vision systems use heuristics to select the most likely of several possible interpretations of a given scene. 6 CSC 450-AI by Asma Tabuk

HEURISTIC SEARCH Introduction: Al problem solvers employ heuristics in two situations:- – Second: A problem may have an exact solution, but the computational cost of finding it may be prohibitive. In many problems, state space growth is combinatorially explosive, with the number of possible states increasing exponentially or factorially with the depth of the search. 7 CSC 450-AI by Asma Tabuk

HEURISTIC SEARCH Introduction: Al problem solvers employ heuristics in two situations:- – Second: A problem may have an exact solution, but the computational cost of finding it may be prohibitive. Heuristic search handles above problem by guiding the search along the most “promising” path through the space. 8 CSC 450-AI by Asma Tabuk

HEURISTIC SEARCH Introduction: Al problem solvers employ heuristics in two situations:- – Second: A problem may have an exact solution, but the computational cost of finding it may be prohibitive. By eliminating unpromising states and their descendants from consideration, a heuristic algorithm can defeat this combinatorial explosion and find an acceptable solution. 9 CSC 450-AI by Asma Tabuk

HEURISTIC SEARCH Introduction: Heuristics and the design of algorithms to implement heuristic search have been an important part of artificial intelligence research. Game playing and theorem proving require heuristics to reduce search space to simplify the solution finding. 10 CSC 450-AI by Asma Tabuk

HEURISTIC SEARCH Introduction: Heuristics are fallible. – A heuristics is only an informed guess of the next step to be taken in solving a problem. It is often based on experience or intuition. – Heuristics use limited information, such as the descriptions of the states currently on the OPEN List. 11 CSC 450-AI by Asma Tabuk

HEURISTIC SEARCH Introduction: Heuristics are fallible. – Heuristics are seldom able to predict the exact behavior of the state space farther along in the search. – A heuristics can lead a search algorithm to a sub optimal solutions. – At times a heuristic method may fail to find any solution at all. 12 CSC 450-AI by Asma Tabuk

ALGORITHM FOR HEURISTICS SEARCH Best-First-Search (Revision) Best first search uses lists to maintain states:  OPEN LIST to keep track of the current fringe of the search.  CLOSED LIST to record states already visited. Algorithm orders the states on OPEN according to some heuristics estimate of their closeness to a goal. 13 CSC 450-AI by Asma Tabuk

ALGORITHM FOR HEURISTICS SEARCH Best-First-Search Each iteration of the loop consider the most promising state on the OPEN list. Example algorithm sorts and rearrange OPEN in precedence of lowest heuristics value. 14 CSC 450-AI by Asma Tabuk

BEST-FIRST-SEARCH 15

BEST-FIRST-SEARCH A HYPOTHETICAL SEARCH SPACE 16 CSC 450-AI by Asma Tabuk

BEST-FIRST-SEARCH TRACES OF OPEN AND CLOSED LISTS 17 CSC 450-AI by Asma Tabuk

Heuristic search of a hypothetical state space with OPEN and CLOSED states highlighted. BEST-FIRST-SEARCH 18 CSC 450-AI by Asma Tabuk

BEST-FIRST-SEARCH The goal of best–first search is to find the goal state by looking at as few states as possible: the more informed the heuristic, the fewer states are processed in finding the goal. The best-first search algorithm always selects the most promising states on OPEN for further expansion. It does not abandon all the other states but maintains them on OPEN. 19 CSC 450-AI by Asma Tabuk

BEST-FIRST-SEARCH In the event when a heuristic leads the search down a path that proves incorrect, the algorithm will eventually retrieve some previously generated next best state from OPEN and shift its focus to another part of the space. In the example after the children of state B were found to have poor heuristic evaluations, the search shifted its focus to state C. In best-first-search the OPEN list allows backtracking from paths that fail to produce a goal. 20 CSC 450-AI by Asma Tabuk

Admissible heuristics A heuristic h(n) is admissible if for every node n, h(n) ≤ h * (n), where h * (n) is the true cost to reach the goal state from n. An admissible heuristic never overestimates the cost to reach the goal, i.e., it is optimistic Example: h SLD (n) (never overestimates the actual road distance) Theorem: If h(n) is admissible, A * using TREE-SEARCH is optimal 21 CSC 450-AI by Asma Tabuk

Properties of A* Complete? Yes (unless there are infinitely many nodes with f ≤ f(G) ) Time? Exponential Space? Keeps all nodes in memory Optimal? Yes 22 CSC 450-AI by Asma Tabuk

Admissible heuristics E.g., for the 8-puzzle: h 1 (n) = number of misplaced tiles h 2 (n) = total Manhattan distance (i.e., no. of squares from desired location of each tile) h 1 (S) = ? h 2 (S) = ? 23 CSC 450-AI by Asma Tabuk

Admissible heuristics E.g., for the 8-puzzle: h 1 (n) = number of misplaced tiles h 2 (n) = total Manhattan distance (i.e., no. of squares from desired location of each tile) h 1 (S) = ? 8 h 2 (S) = ? = CSC 450-AI by Asma Tabuk

Relaxed problems A problem with fewer restrictions on the actions is called a relaxed problem The cost of an optimal solution to a relaxed problem is an admissible heuristic for the original problem 25 CSC 450-AI by Asma Tabuk