Informed Search methods 5 주 강의. Best-first Search Evaluation function ::: a number purporting to described the desirability of expanding the node Best-first.

Slides:



Advertisements
Similar presentations
Informed search algorithms
Advertisements

Informed search algorithms
An Introduction to Artificial Intelligence
Optimality of A*(standard proof) Suppose suboptimal goal G 2 in the queue. Let n be an unexpanded node on a shortest path to optimal goal G. f(G 2 ) =
Heuristic search, page 1 CSI 4106, Winter 2005 Heuristic search Points Definitions Best-first search Hill climbing Problems with hill climbing An example:
Problem Solving by Searching
CSC344: AI for Games Lecture 5 Advanced heuristic search Patrick Olivier
Review: Search problem formulation
Informed (Heuristic) Search Evaluation Function returns a value estimating the desirability of expanding a frontier node Two Basic Approaches –Expand node.
Informed Search Methods Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 4 Spring 2008.
Artificial Intelligence
Informed Search Methods Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 4 Spring 2005.
Cooperating Intelligent Systems Informed search Chapter 4, AIMA.
Informed Search CSE 473 University of Washington.
Informed Search Methods How can we make use of other knowledge about the problem to improve searching strategy? Map example: Heuristic: Expand those nodes.
Problem Solving and Search in AI Heuristic Search
CSC344: AI for Games Lecture 4: Informed search
Rutgers CS440, Fall 2003 Heuristic search Reading: AIMA 2 nd ed., Ch
Heuristic Search Heuristic - a “rule of thumb” used to help guide search often, something learned experientially and recalled when needed Heuristic Function.
Informed Search Methods
Informed Search Strategies
Vilalta&Eick: Informed Search Informed Search and Exploration Search Strategies Heuristic Functions Local Search Algorithms Vilalta&Eick: Informed Search.
INTRODUÇÃO AOS SISTEMAS INTELIGENTES Prof. Dr. Celso A.A. Kaestner PPGEE-CP / UTFPR Agosto de 2011.
Informed Search Uninformed searches easy but very inefficient in most cases of huge search tree Informed searches uses problem-specific information to.
Informed Search Methods How can we make use of other knowledge about the problem to improve searching strategy? Map example: Heuristic: Expand those nodes.
Informed search algorithms
Informed search algorithms
January 31, 2006AI: Chapter 4: Informed Search and Exploration 1 Artificial Intelligence Chapter 4: Informed Search and Exploration Michael Scherger Department.
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.
Informed Search Methods Heuristic = “to find”, “to discover” “Heuristic” has many meanings in general How to come up with mathematical proofs Opposite.
Informed Search Include specific knowledge to efficiently conduct the search and find the solution.
For Wednesday Read chapter 6, sections 1-3 Homework: –Chapter 4, exercise 1.
For Wednesday Read chapter 5, sections 1-4 Homework: –Chapter 3, exercise 23. Then do the exercise again, but use greedy heuristic search instead of A*
Princess Nora University Artificial Intelligence Chapter (4) Informed search algorithms 1.
Artificial Intelligence for Games Informed Search (2) Patrick Olivier
Lecture 5-1CS250: Intro to AI/Lisp “If I Only had a Brain” Search Lecture 5-1 October 26 th, 1999 CS250.
Search (continued) CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Informed Search Reading: Chapter 4.5 HW #1 out today, due Sept 26th.
Course Outline 4.2 Searching with Problem-specific Knowledge Presented by: Wing Hang Cheung Paul Anh Tri Huynh Mei-Ki Maggie Yang Lu Ye CPSC 533 January.
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:
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.
Chapter 3.5 and 3.6 Heuristic Search Continued. Review:Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
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.
Informed Search. S B AD E C F G straight-line distances h(S-G)=10 h(A-G)=7 h(D-G)=1 h(F-G)=1 h(B-G)=10 h(E-G)=8 h(C-G)=20 The graph above.
CMPT 463. What will be covered A* search Local search Game tree Constraint satisfaction problems (CSP)
Chapter 3.5 Heuristic Search. Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
Eick: Informed Search Informed Search and Exploration Search Strategies Heuristic Functions Local Search Algorithms Vilalta&Eick: Informed Search.
Informed Search Methods
Last time: Problem-Solving
For Monday Chapter 6 Homework: Chapter 3, exercise 7.
Department of Computer Science
HW #1 Due 29/9/2008 Write Java Applet to solve Goats and Cabbage “Missionaries and cannibals” problem with the following search algorithms: Breadth first.
Discussion on Greedy Search and A*
Discussion on Greedy Search and A*
Heuristic search INT 404.
Heuristics Local Search
Informed search algorithms
More on Search: A* and Optimization
Heuristics Local Search
Lecture 9 Administration Heuristic search, continued
Russell and Norvig: Chapter 4
Heuristic Search Generate and Test Hill Climbing Best First Search
Midterm Review.
Reading: Chapter 4.5 HW#2 out today, due Oct 5th
Informed Search.
Presentation transcript:

Informed Search methods 5 주 강의

Best-first Search Evaluation function ::: a number purporting to described the desirability of expanding the node Best-first search ::: a node with the best evaluation is expanded first 자료구조가 중요 !!! Queue 를 사용하되 linked list 로 구현 ???

Greedy search heuristic function h(n) h(n) = estimated cost of the cheapest path from the state at node n to a goal state 현재부터 가장 가까운 거리에 있는 것 Hill climbing method

Iterative improvement algorithm Hill climbing method Simulated annealing Neural networks Genetic algorithm

Hill climbing Method Simple hill climbing method ::: 연산을 적용한 결과가 goal 인지 검사 후, 아니면 기존보다 좋으면 무조건 선택, 아니면 다른 연산 적용, 더 이상 적용할 연산이 없으 면 실패  선택한 노드에서 다시 탐색 Steepest-ascent hill climbing method ::: 현재 노드 ( 상태 ) 에 모든 가능한 연산을 적용한 결과 에 goal 이 있으면 성공, 아니면 제일 좋은 것을 선택하여, 기존보다 좋으면 그 노드에서 다시 탐색, 아니면 실패 Complete 하지 못함

예제 A H G F E D C B H G F E D C B A 

First move H G F E D C B A

Second move(Three possible moves) A H G F E D C B G F E D C B G F E D C B H A AH (a) (b) (c)

Two heuristics Local : Add one point for every block that is resting on the thing it is supposed to be resting on. Subtract one point for every block that is sitting on the wrong thing goal : 8 initial state : 4 first move : 6 second move: (a) 4, (b) 4, (c) 4 Global : For each block that has the correct support structure, add one point for every block in the support structure. For each block that has an incorrect support structure, subtract one point for every block in the existing support structure goal : 28, initial : -28; first move : -21; second move: (a) – 28, (b) – 16, (c)-15

Hill climbing method 의 약점 Local maxima Plateau Ridges Random-restart hill climbing Simulated annealing

알고리즘 for t  1 to ∞ do T  schedule[t] if T=0 then return current next  a randomly selected successor of current ∆E  Value[next]-Value[current] if ∆E>0 then current  next else current  next only with probability e ∆E /T 이동성 P=e ∆E /T (P=e- ∆E /kT 일반적으로 에너지가 낮은 방향으로 물리현상은 일어나지만 높은 에너지 상황으로 변하는 확률이 존재한다. ∆E : positive change in energy level T : Temperature k : Boltzmann ’ s constant

f(n)=g(n)+h(n) f(n) = estimated cost of the cheapest solution through n Best-first search Heuristic Search

Admissible heuristics ::: an h function that never overestimates the cost to reach the goal If h is a admissible, f(n) never overestimates the actual cost of the best solution through n Minimizing the total path cost (A * algorithm)

The behavior of A * search Monontonicity ::: along any path from the root, the f-cost never decreases -- underestimate 하면 non-monotonic 할 수 있음 Complete and optimal f(n ’ ) = max(f(n),g(n ’ )+h(n ’ )) (n 이 n ’ 의 parent node) optimality 와 completeness 를 증명한다

A * Algoritmd 의 예 8(16)-puzzle 에서 City block distance (Manhattan distance) 를 사용 : 절대 overestimate 하지 않는다 … h1 ::: the number of titles in wrong position h2 ::: Manhattan distance 결과비교 dIDSA*(h1)A*(h2) (2.83)539(1.42)73(1.24) 24 불가능 39135(1.48)1641(1.26)

Inventing heuristic functions Relaxed problem (a) 타일은 인접한 장소로 움직일 수 있다 (b) 타일은 빈자리로 이동할 수 있다 (c) 타일은 다른 위치로 이동할 수 있다 h(n)=max(h 1 (n), …,h n (n))  실제 값과 가 장 가까이 예측하는 함수가 좋다

Heuristics for CSPs Most-constrained-variable heuristics :: forward checking  the variable with fewest possible values is chosen to have a value assigned Most-constraining-variable heuristics :: assigning a value to the variable that is involved in the largest number of constraints on the unassigned variables (reducing the branching factor)

Example

Memory Bounded Search Simplified Memory-Bound A *