Problem Solving: Informed Search
|
|
- Warren Rich
- 5 years ago
- Views:
Transcription
1 Problem Solving: Informed Search References Russell and Norvig, Artificial Intelligence: A modern approach, 2nd ed. Prentice Hall, 2003 (Chapters 1,2, and 4) Nilsson, Artificial intelligence: A New synthesis. McGraw Hill, 2001
2 Outline Best first search - Greedy search - A* search - Dijkstra's algorithm More on best first search - Dominance - Relaxed problems Iterative improvement - Hill climbing - Simulated annealing
3 Informed (heuristic) Search or blind uninformed non-adversary search informed adversary or heuristic
4 heuristic search Informed (heuristic) Search Informed search strategies, other than the information available in the problem definition, use other information, such as heuristics to guide search towards a good solution
5 Heuristic search: Best first search heuristic search: best first search Best first search - Greedy search - A* search - Dijkstra's algorithm More on best first search - Dominance - Relaxed problems Iterative improvement - Hill climbing - Simulated annealing
6 heuristic search: best first search Recall the general tree search algorithm defun TREE-SEARCH (problem, fringe) returns solution state INITIAL-STATE(problem) fringe.insert(make-node(state)) loop do if EMPTY?(fringe) then return *FAILURE* node fringe.remove() if problem.goal-test?(state(node)) then return SOLUTION(node) children problem.expand(node) for each node in children do fringe.insert(node) The search strategy is defined by the order of node expansion!
7 heuristic search: best first search Recall the general tree search algorithm defun EXPAND(problem, node) returns successors successors {} --- set of NODES, initially empty for each action, state in problem.successors(state(node)) do child new NODE, child.parent node child.action action, child.state state step-cost problem.step-cost(state(node), action, state) child.cost COST(node) + step-cost child.depth DEPTH(node) + 1 successors.add(child) return successors
8 heuristic search: best first search Best-first search Idea: For each node use an evaluation function, able to estimate the goodness of the node The goodness of a node says how promising is the node towards the solution Expand the best unexpanded node Implementation: fringe is a queue sorted in decreasing order of goodness Special cases: Greedy search A* search
9 Romania with step costs in kms heuristic search: best first search Straight line distance (SLD) to Bucharest
10 Best first search: Greedy search Best first search - Greedy search - A* search - Dijkstra's algorithm More on best first search - Dominance - Relaxed problems Iterative improvement - Hill climbing - Simulated annealing heuristic search: best first search: greedy search
11 heuristic search: best first search: greedy search Greedy search Idea: greedy search expands the node that appears to be closest to the goal Evaluation function f(n) = h(n) The cost for attaining the current node is not taken into account Only an estimation about how far (in terms of cost) is the node from the goal is considered (e.g. h SLD (n) = straightline distance from the current node n to Bucharest)
12 heuristic search: best first search: greedy search Greedy search Implementation: The intended behavior can be ensured by using an ordered queue in which nodes are inserted according to the value returned by the function f(n) = h(n) defun GREEDY-SEARCH(problem) returns solution return TREE-SEARCH ( problem, ordered-queue )
13 Greedy search: An example heuristic search: best first search: greedy search
14 Greedy search: An example heuristic search: best first search: greedy search
15 Greedy search: An example heuristic search: best first search: greedy search
16 heuristic search: best first search: greedy search Greedy search Completeness: NO it can get stuck in loops, e.g. if Oradea is a goal, loop Lasi Neamt Lasi Neamt It is complete only under the assumption that state space is finite and that we check for repeated states Time complexity: O(b m ) --- recall that m = max depth of the search space A good heuristic can improve it tremendously Space complexity: O(b m ) Optimality: No --- keeps all nodes in memory
17 Best first search: A* search Best first search - Greedy search - A* search - Dijkstra's algorithm More on best first search - Dominance - Relaxed problems Iterative improvement - Hill climbing - Simulated annealing heuristic search: best first search: A-star search
18 heuristic search: best first search: A-star search A* search Idea: avoid expanding paths that are already expensive Evaluation function f(n) = g(n) + h(n) g(n) actual cost spent so far to reach n (from the initial state) h(n) estimated cost to reach the goal (from the current node n) In practice, uniform-cost search and greedy search are put together to give rise to the most powerful algorithm in this category
19 heuristic search: best first search: A-star search A* search A* search uses an admissible heuristic h(n) In other words, 0 h(n) h*(n), where h*(n) is the true cost from n to the goal (e.g. h SLD (n) never overestimates the actual driving distance) By definition, h(g)=0 for any state G that satisfies the goal
20 heuristic search: best first search: A-star search A* search Implementation: The intended behavior can be ensured by using an ordered queue in which nodes are inserted according to the function f(x) = g(x) + h(x) defun A-STAR-SEARCH(problem) returns solution return TREE-SEARCH ( problem, ordered-queue )
21 A* search: An example heuristic search: best first search: A-star search
22 A* search: An example heuristic search: best first search: A-star search
23 A* search: An example heuristic search: best first search: A-star search
24 A* search: An example heuristic search: best first search: A-star search
25 A* search: An example heuristic search: best first search: A-star search
26 A* search: Optimality Theorem: A* search is optimal Proof: heuristic search: best first search: A-star search Suppose some suboptimal node G2, which embeds a state that satisfies the goal, has been generated and is in the queue Let n be an unexpanded node on a shortest path to a node G that embeds an optimal state f(g2) = g(g2) + h(g2) = g(g2) since h(g2)=0 g(g) < g(g2) since G2 is suboptimal; thus g(g) < f(g2) f(n) = g(n) + h(n) g(g) since h is admissible A* will never choose G2 for expansion since f(n) < f(g2)
27 heuristic search: best first search: A-star search A* search: Optimality (another way) Lemma: A* expands nodes in increasing order of f value It gradually adds f-contours of nodes Contour k contains all nodes with f = f k with f k < f k+1 If C* is an optimal-path cost: A* expands all nodes with f(n) < C* A* expands some nodes with f(n) = C* A* does not expand nodes with f(n) > C*
28 A* search: Optimality (another way) f-contours of nodes... (an example) heuristic search: best first search: A-star search
29 Proof of lemma: Consistency A heuristic h is consistent if h(n) c(n,a,n') + h(n') If h is consistent, then f(n') f(n) f(n') = g(n') + h(n') f(n') = g(n) + c(n,a,n') + h(n') g(n) + h(n) f(n') = g(n) + c(n,a,n') + h(n') f(n) Hence, f(n) is non-decreasing along any path (cf. triangle inequality) heuristic search: best first search: A-star search Let us assume that the function devised to evaluate the cost of a step (i.e STEP-COST) has a corresponding function c : node x action x node
30 A* search: Properties Completeness: Yes, unless there is an infinite number of nodes with f f(g) Time complexity: O(b d ) --- d = depth of the closest optimal solution A good heuristic (i.e. h(x) very close to h*(x)) can improve it very much Space complexity: O(b d ) Optimality: Yes heuristic search: best first search: A-star search --- keeps all nodes in memory --- it cannot expand f k+1 until f k is finished
31 Best first search Best first search - Greedy search - A* search - Dijkstra's algorithm More on best first search - Dominance - Relaxed problems Iterative improvement - Hill climbing - Simulated annealing heuristic search: best first search: Djikstra's algorithm
32 Dijkstra a algorithm Given a vertex v, what is the length of the shortest path from v to every vertex v' in the graph? A greedy algorithm: choose node that minimized distance from initial state (i,e, use g instead of h) You must know the entire search space to use Dijkstra's algorithm heuristic search: best first search: Djikstra's algorithm
33 A* vs. Dijkstra's Algorithm heuristic search: best first search: Djikstra's algorithm Dijkstra s algorithm is a degenerate case of A*, where h(n) = 0 - A* finds the best path to a particular v - A* will typically use less memory
34 A* vs. Dijkstra's Algorithm heuristic search: best first search: Djikstra's algorithm Dijkstra's is like a puddle of water flooding outwards on a flat floor, whereas A* is like the same puddle expanding on a bumpy and graded floor toward a drain (the target node) at the lowest point in the floor
35 A* vs. Dijkstra's Algorithm Instead of spreading out evenly on all sides, the water seeks the path of least resistance, only trying new paths when something gets in its way The heuristic function is what provides the grade of the hypothetical floor. heuristic search: best first search: Djikstra's algorithm
36 More on best first search Best first search - Greedy search - A* search - Dijkstra's algorithm More on best first search - Dominance - Relaxed problems Iterative improvement - Hill climbing - Simulated annealing heuristic search: best first search: more on...
37 Admissible heuristics: Dominance If h 2 (n) h 1 (n) for all n, and both are admissible, then h 2 dominates h 1 and is better for searching For instance, when d=14, typical search costs are: IDS = nodes A*(h1) = 539 nodes A*(h2) = 113 nodes when d=24, typical search costs are: IDS approx nodes A*(h1) = nodes A*(h2) = nodes Relaxed problems heuristic search: best first search: more on...
38 Admissible heuristics (8-puzzle) Examples of admissible heuristics for the 8- puzzle problem: h 1 (n) = number of misplaced tiles heuristic search: best first search: more on... h 2 (n) = total Manhattan distance (for all tiles, sum the number of squares from tile location to desired location)
39 Admissible heuristics: Relaxation Best first search - Greedy search - A* search - Dijkstra's algorithm More on best first search - Admissible heuristics - Relaxed problems Iterative improvement - Hill climbing - Simulated annealing heuristic search: best first search: more on...
40 heuristic search: best first search: more on... Admissible heuristics: Relaxation One way to obtain admissible heuristics is: Simplify the problem by relaxing some of its constraints Find an exact solution for the relaxed problem (easier than the initial problem) Use the cost of the exact solution for the relaxed problem as the heuristic value Key: the optimal solution cost to the relaxed problem cannot be greater than that of the real problem
41 Relaxed problems: 8-puzzle Relax 8-puzzle rules so that a tile can move to any square heuristic search: best first search: more on... Under this hypothesis, h 1 (n) (number of misplaced tiles) gives the shortest solution Relax 8-puzzle rules so that a tile can move to any adjacent square (even if it is full) Under this hypothesis, h 2 (n) (Manhattan distance) gives the shortest solution
42 More relaxed problems (TSP) heuristic search: best first search: more on... Traveling Salesman Problem (TSP) = find the shortest tour that visits all cities exactly once Relaxation: minimum spanning tree can be computed in O(n 2 ) and it is a lower bound on shortest (open) tour
43 heuristic search: best first search: more on... More relaxed problems (n-queens) n-queens = place n queens on an n x n board such that no two queens are placed on the same row, column or diagonal Strategy: start with any queen distribution on the board. Move a queen at a time to reduce number of conflicting pairs
44 Iterative improvement Best first search - Greedy search - A* search - Dijkstra's algorithm More on best first search - Dominance - Relaxed problems Iterative improvement - Hill climbing - Simulated annealing heuristic search: iterative improvement
45 Iterative improvement heuristic search: iterative improvement In many optimization problems the path to the solution is irrelevant. The goal state itself is the solution (e.g. TSP and n-queen problems) All problems in which a configuration or schedule that meets some constraints must be found satisfy this description In such kind of problems, the state space represents the set of complete configurations and iterative improvement of the solution can be adopted as a strategy to search for a solution
46 Iterative improvement Strategy: Keep a single current state and try to improve it Repair the solution until it meets all constraints Space complexity: constant heuristic search: iterative improvement
47 Iterative improvement (TSP) heuristic search: iterative improvement Start with any complete tour. Perform pairwise exchanges The sequence of steps does not matter. We want the goal state (tour)
48 heuristic search: iterative improvement Iterative improvement (n-queens) Start with any queen distribution on the board Move a queen at a time to reduce the number of conflicting pairs
49 Iterative improvement: Hill climbing Best first search - Greedy search - A* search - Dijkstra's algorithm More on best first search - Dominance - Relaxed problems Iterative improvement - Hill climbing - Simulated annealing heuristic search: iterative improvement
50 heuristic search: iterative improvement: hill climbing Gradient ascent/descent: hill-climbing defun HILL-CLIMBING (problem) returns local-maximum current, neighbor: node current MAKE-NODE(INITIAL-STATE(problem)) loop do neighbor [a max-valued successor of current-node] if VALUE(neighbor) VALUE(current) then return STATE(current) current neighbor
51 heuristic search: iterative improvement: hill climbing Gradient ascent/descent: hill-climbing Can get stuck on local maxima, depending or initial state Value Global maximum Local maximum If space is continuous: problems choosing step size, slow convergence States
52 Simulated Annealing Best first search - Greedy search - A* search - Dijkstra's algorithm More on best first search - Dominance - Relaxed problems Iterative improvement - Hill climbing - Simulated annealing heuristic search: iterative improvement: simulated annealing
53 Simulated annealing heuristic search: iterative improvement: simulated annealing Idea: escape local maxima allowing some bad moves, but gradually reducing their frequency and size
54 Simulated annealing Similar to the annealing process in metalurgics: drop temperature gradually allows crystalline structure reach a minimal energy state If T decreases slowly enough, always reaches the best state heuristic search: iterative improvement: simulated annealing Widely used in VLSI design, flight scheduling, production scheduling, and other large optimization problems
55 Simulated annealing heuristic search: iterative improvement: simulated annealing Each point s of the search space is compared to a state of some physical system, and the function E(s) to be minimized is interpreted as the internal energy of the system in that state The goal is to bring the system, from an arbitrary initial state, to a state with the minimum energy
56 Simulated annealing heuristic search: iterative improvement: simulated annealing At each step, the SA heuristic considers some neighbours of the current state s, and probabilistically decides between moving the system to state s' or staying put in state s The probabilities are chosen so that the system ultimately tends to move to states of lower energy Typically this step is repeated until the system reaches a state which is good enough for the application, or until a given computation budget has been exhausted
57 Simulated annealing heuristic search: iterative improvement: simulated annealing defun SIM-ANNEALING(problem,schedule) returns goal-state current, next: node, T: Temperature current MAKE-NODE ( INITIAL-STATE(problem) ) k 1 loop do T schedule[k] if T = 0 then return STATE(current) next [a randomly selected successor of current] EVAL(next) EVAL(current) if > 0 then current next --- only with probability e /T else current next k k+1 Temperature: controls the probability of downward steps (varies according to schedule)
Problem solving as Search (summary)
Problem solving as Search (summary) References Russell and Norvig, Artificial Intelligence: A modern approach, 2nd ed. Prentice Hall, 2003 (chapter 3) Nilsson, Artificial intelligence: A New synthesis.
More informationArtificial Intelligence
Artificial Intelligence hapter 1 hapter 1 1 Iterative deepening search function Iterative-Deepening-Search( problem) returns a solution inputs: problem, a problem for depth 0 to do result Depth-Limited-Search(
More informationInformed search algorithms. Chapter 4
Informed search algorithms Chapter 4 Material Chapter 4 Section 1 - Exclude memory-bounded heuristic search 3 Outline Best-first search Greedy best-first search A * search Heuristics Local search algorithms
More informationInformed Search and Exploration
Ch. 04 p.1/39 Informed Search and Exploration Chapter 4 Ch. 04 p.2/39 Outline Best-first search A search Heuristics IDA search Hill-climbing Simulated annealing Ch. 04 p.3/39 Review: Tree search function
More informationTDT4136 Logic and Reasoning Systems
TDT4136 Logic and Reasoning Systems Chapter 3 & 4.1 - Informed Search and Exploration Lester Solbakken solbakke@idi.ntnu.no Norwegian University of Science and Technology 18.10.2011 1 Lester Solbakken
More informationInformed Search. Dr. Richard J. Povinelli. Copyright Richard J. Povinelli Page 1
Informed Search Dr. Richard J. Povinelli Copyright Richard J. Povinelli Page 1 rev 1.1, 9/25/2001 Objectives You should be able to explain and contrast uniformed and informed searches. be able to compare,
More informationInformed search algorithms
CS 580 1 Informed search algorithms Chapter 4, Sections 1 2, 4 CS 580 2 Outline Best-first search A search Heuristics Hill-climbing Simulated annealing CS 580 3 Review: General search function General-Search(
More informationEE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS
EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 4, 4/11/2005 University of Washington, Department of Electrical Engineering Spring 2005 Instructor: Professor Jeff A. Bilmes Today: Informed search algorithms
More informationInformed Search. Best-first search. Greedy best-first search. Intelligent Systems and HCI D7023E. Romania with step costs in km
Informed Search Intelligent Systems and HCI D7023E Lecture 5: Informed Search (heuristics) Paweł Pietrzak [Sec 3.5-3.6,Ch.4] A search strategy which searches the most promising branches of the state-space
More informationInformed Search Algorithms. Chapter 4
Informed Search Algorithms Chapter 4 Outline Informed Search and Heuristic Functions For informed search, we use problem-specific knowledge to guide the search. Topics: Best-first search A search Heuristics
More informationArtificial Intelligence p.1/49. n-queens. Artificial Intelligence p.2/49. Initial state: the empty board or a board with n random
Example: n-queens Put n queens on an n n board with no two queens on the same row, column, or diagonal A search problem! State space: the board with 0 to n queens Initial state: the empty board or a board
More informationOutline. Informed search algorithms. Best-first search. Review: Tree search. A search Heuristics. Chapter 4, Sections 1 2 4
Outline Best-first search Informed search algorithms A search Heuristics Chapter 4, Sections 1 2 Chapter 4, Sections 1 2 1 Chapter 4, Sections 1 2 2 Review: Tree search function Tree-Search( problem, fringe)
More informationArtificial Intelligence
Artificial Intelligence Dr Ahmed Rafat Abas Computer Science Dept, Faculty of Computers and Informatics, Zagazig University arabas@zu.edu.eg http://www.arsaliem.faculty.zu.edu.eg/ Informed search algorithms
More informationInformed Search and Exploration for Agents
Informed Search and Exploration for Agents R&N: 3.5, 3.6 Michael Rovatsos University of Edinburgh 29 th January 2015 Outline Best-first search Greedy best-first search A * search Heuristics Admissibility
More informationChapter 3: Informed Search and Exploration. Dr. Daisy Tang
Chapter 3: Informed Search and Exploration Dr. Daisy Tang Informed Search Definition: Use problem-specific knowledge beyond the definition of the problem itself Can find solutions more efficiently Best-first
More informationInformed search algorithms
Informed search algorithms Chapter 4, Sections 1 2 Chapter 4, Sections 1 2 1 Outline Best-first search A search Heuristics Chapter 4, Sections 1 2 2 Review: Tree search function Tree-Search( problem, fringe)
More informationInformed search algorithms. (Based on slides by Oren Etzioni, Stuart Russell)
Informed search algorithms (Based on slides by Oren Etzioni, Stuart Russell) The problem # Unique board configurations in search space 8-puzzle 9! = 362880 15-puzzle 16! = 20922789888000 10 13 24-puzzle
More informationLecture Plan. Best-first search Greedy search A* search Designing heuristics. Hill-climbing. 1 Informed search strategies. Informed strategies
Lecture Plan 1 Informed search strategies (KA AGH) 1 czerwca 2010 1 / 28 Blind vs. informed search strategies Blind search methods You already know them: BFS, DFS, UCS et al. They don t analyse the nodes
More informationARTIFICIAL INTELLIGENCE. Informed search
INFOB2KI 2017-2018 Utrecht University The Netherlands ARTIFICIAL INTELLIGENCE Informed search Lecturer: Silja Renooij These slides are part of the INFOB2KI Course Notes available from www.cs.uu.nl/docs/vakken/b2ki/schema.html
More informationInformed search algorithms. Chapter 4
Informed search algorithms Chapter 4 Outline Best-first search Greedy best-first search A * search Heuristics Memory Bounded A* Search Best-first search Idea: use an evaluation function f(n) for each node
More informationInformed Search and Exploration
Artificial Intelligence Informed Search and Exploration Readings: Chapter 4 of Russell & Norvig. Best-First Search Idea: use a function f for each node n to estimate of desirability Strategy: Alwasy expand
More informationCS 380: Artificial Intelligence Lecture #4
CS 380: Artificial Intelligence Lecture #4 William Regli Material Chapter 4 Section 1-3 1 Outline Best-first search Greedy best-first search A * search Heuristics Local search algorithms Hill-climbing
More informationInformed/Heuristic Search
Informed/Heuristic Search Outline Limitations of uninformed search methods Informed (or heuristic) search uses problem-specific heuristics to improve efficiency Best-first A* Techniques for generating
More informationDr. Mustafa Jarrar. Chapter 4 Informed Searching. Artificial Intelligence. Sina Institute, University of Birzeit
Lecture Notes on Informed Searching University of Birzeit, Palestine 1 st Semester, 2014 Artificial Intelligence Chapter 4 Informed Searching Dr. Mustafa Jarrar Sina Institute, University of Birzeit mjarrar@birzeit.edu
More informationA.I.: Informed Search Algorithms. Chapter III: Part Deux
A.I.: Informed Search Algorithms Chapter III: Part Deux Best-first search Greedy best-first search A * search Heuristics Outline Overview Informed Search: uses problem-specific knowledge. General approach:
More informationCS:4420 Artificial Intelligence
CS:4420 Artificial Intelligence Spring 2018 Informed Search Cesare Tinelli The University of Iowa Copyright 2004 18, Cesare Tinelli and Stuart Russell a a These notes were originally developed by Stuart
More informationDr. Mustafa Jarrar. Chapter 4 Informed Searching. Sina Institute, University of Birzeit
Lecture Notes, Advanced Artificial Intelligence (SCOM7341) Sina Institute, University of Birzeit 2 nd Semester, 2012 Advanced Artificial Intelligence (SCOM7341) Chapter 4 Informed Searching Dr. Mustafa
More informationInformed search algorithms. (Based on slides by Oren Etzioni, Stuart Russell)
Informed search algorithms (Based on slides by Oren Etzioni, Stuart Russell) Outline Greedy best-first search A * search Heuristics Local search algorithms Hill-climbing search Simulated annealing search
More information2006/2007 Intelligent Systems 1. Intelligent Systems. Prof. dr. Paul De Bra Technische Universiteit Eindhoven
test gamma 2006/2007 Intelligent Systems 1 Intelligent Systems Prof. dr. Paul De Bra Technische Universiteit Eindhoven debra@win.tue.nl 2006/2007 Intelligent Systems 2 Informed search and exploration Best-first
More informationRobot Programming with Lisp
6. Search Algorithms Gayane Kazhoyan (Stuart Russell, Peter Norvig) Institute for University of Bremen Contents Problem Definition Uninformed search strategies BFS Uniform-Cost DFS Depth-Limited Iterative
More informationInformed search algorithms. Chapter 4, Sections 1 2 1
Informed search algorithms Chapter 4, Sections 1 2 Chapter 4, Sections 1 2 1 Outline Best-first search A search Heuristics Chapter 4, Sections 1 2 2 Review: Tree search function Tree-Search( problem, fringe)
More informationArtificial Intelligence
Artificial Intelligence Search Marc Toussaint University of Stuttgart Winter 2015/16 (slides based on Stuart Russell s AI course) Outline Problem formulation & examples Basic search algorithms 2/100 Example:
More informationCSE 473. Chapter 4 Informed Search. CSE AI Faculty. Last Time. Blind Search BFS UC-BFS DFS DLS Iterative Deepening Bidirectional Search
CSE 473 Chapter 4 Informed Search CSE AI Faculty Blind Search BFS UC-BFS DFS DLS Iterative Deepening Bidirectional Search Last Time 2 1 Repeated States Failure to detect repeated states can turn a linear
More informationInformed Search and Exploration
Ch. 03 p.1/47 Informed Search and Exploration Sections 3.5 and 3.6 Ch. 03 p.2/47 Outline Best-first search A search Heuristics, pattern databases IDA search (Recursive Best-First Search (RBFS), MA and
More informationInformed Search and Exploration
Ch. 03b p.1/51 Informed Search and Exploration Sections 3.5 and 3.6 Nilufer Onder Department of Computer Science Michigan Technological University Ch. 03b p.2/51 Outline Best-first search A search Heuristics,
More informationArtificial Intelligence
Artificial Intelligence Informed Search and Exploration Chapter 4 (4.1 4.2) A General Search algorithm: Chapter 3: Search Strategies Task : Find a sequence of actions leading from the initial state to
More informationPlanning, Execution & Learning 1. Heuristic Search Planning
Planning, Execution & Learning 1. Heuristic Search Planning Reid Simmons Planning, Execution & Learning: Heuristic 1 Simmons, Veloso : Fall 2001 Basic Idea Heuristic Search Planning Automatically Analyze
More informationIntroduction to Artificial Intelligence. Informed Search
Introduction to Artificial Intelligence Informed Search Bernhard Beckert UNIVERSITÄT KOBLENZ-LANDAU Winter Term 2004/2005 B. Beckert: KI für IM p.1 Outline Best-first search A search Heuristics B. Beckert:
More informationOutline for today s lecture. Informed Search. Informed Search II. Review: Properties of greedy best-first search. Review: Greedy best-first search:
Outline for today s lecture Informed Search II Informed Search Optimal informed search: A* (AIMA 3.5.2) Creating good heuristic functions Hill Climbing 2 Review: Greedy best-first search: f(n): estimated
More informationArtificial Intelligence, CS, Nanjing University Spring, 2018, Yang Yu. Lecture 3: Search 2.
Artificial Intelligence, CS, Nanjing University Spring, 2018, Yang Yu Lecture 3: Search 2 http://cs.nju.edu.cn/yuy/course_ai18.ashx Previously... function Tree-Search( problem, fringe) returns a solution,
More informationArtificial Intelligence: Search Part 2: Heuristic search
Artificial Intelligence: Search Part 2: Heuristic search Thomas Trappenberg January 16, 2009 Based on the slides provided by Russell and Norvig, Chapter 4, Section 1 2,(4) Outline Best-first search A search
More informationLecture 4: Informed/Heuristic Search
Lecture 4: Informed/Heuristic Search Outline Limitations of uninformed search methods Informed (or heuristic) search uses problem-specific heuristics to improve efficiency Best-first A* RBFS SMA* Techniques
More informationInformed search. Soleymani. CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2016
Informed search CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2016 Soleymani Artificial Intelligence: A Modern Approach, Chapter 3 Outline Best-first search Greedy
More informationMustafa Jarrar: Lecture Notes on Artificial Intelligence Birzeit University, Chapter 3 Informed Searching. Mustafa Jarrar. University of Birzeit
Mustafa Jarrar: Lecture Notes on Artificial Intelligence Birzeit University, 2018 Chapter 3 Informed Searching Mustafa Jarrar University of Birzeit Jarrar 2018 1 Watch this lecture and download the slides
More informationOutline. Best-first search
Outline Best-first search Greedy best-first search A* search Heuristics Admissible Heuristics Graph Search Consistent Heuristics Local search algorithms Hill-climbing search Beam search Simulated annealing
More informationPROBLEM SOLVING AND SEARCH IN ARTIFICIAL INTELLIGENCE
Artificial Intelligence, Computational Logic PROBLEM SOLVING AND SEARCH IN ARTIFICIAL INTELLIGENCE Lecture 3 Informed Search Sarah Gaggl Dresden, 22th April 2014 Agenda 1 Introduction 2 Uninformed Search
More informationOutline. Best-first search
Outline Best-first search Greedy best-first search A* search Heuristics Local search algorithms Hill-climbing search Beam search Simulated annealing search Genetic algorithms Constraint Satisfaction Problems
More informationCS 771 Artificial Intelligence. Informed Search
CS 771 Artificial Intelligence Informed Search Outline Review limitations of uninformed search methods Informed (or heuristic) search Uses problem-specific heuristics to improve efficiency Best-first,
More informationCOMP9414/ 9814/ 3411: Artificial Intelligence. 5. Informed Search. Russell & Norvig, Chapter 3. UNSW c Alan Blair,
COMP9414/ 9814/ 3411: Artificial Intelligence 5. Informed Search Russell & Norvig, Chapter 3. COMP9414/9814/3411 15s1 Informed Search 1 Search Strategies General Search algorithm: add initial state to
More informationAdvanced Artificial Intelligence (DT4019, HT10)
Advanced Artificial Intelligence (DT4019, HT10) Problem Solving and Search: Informed Search Strategies (I) Federico Pecora School of Science and Technology Örebro University federico.pecora@oru.se Federico
More informationSolving Problems: Intelligent Search
Solving Problems: Intelligent Search Instructor: B. John Oommen Chancellor s Professor Fellow: IEEE; Fellow: IAPR School of Computer Science, Carleton University, Canada The primary source of these notes
More informationProblem solving and search
Problem solving and search Chapter 3 TB Artificial Intelligence Slides from AIMA http://aima.cs.berkeley.edu 1 /1 Outline Problem-solving agents Problem types Problem formulation Example problems Basic
More information4 INFORMED SEARCH AND EXPLORATION. 4.1 Heuristic Search Strategies
55 4 INFORMED SEARCH AND EXPLORATION We now consider informed search that uses problem-specific knowledge beyond the definition of the problem itself This information helps to find solutions more efficiently
More informationSolving problems by searching
Solving problems by searching Chapter 3 Some slide credits to Hwee Tou Ng (Singapore) Outline Problem-solving agents Problem types Problem formulation Example problems Basic search algorithms Heuristics
More informationInformed search algorithms
Artificial Intelligence Topic 4 Informed search algorithms Best-first search Greedy search A search Admissible heuristics Memory-bounded search IDA SMA Reading: Russell and Norvig, Chapter 4, Sections
More informationInformed search strategies (Section ) Source: Fotolia
Informed search strategies (Section 3.5-3.6) Source: Fotolia Review: Tree search Initialize the frontier using the starting state While the frontier is not empty Choose a frontier node to expand according
More informationCS 331: Artificial Intelligence Informed Search. Informed Search
CS 331: Artificial Intelligence Informed Search 1 Informed Search How can we make search smarter? Use problem-specific knowledge beyond the definition of the problem itself Specifically, incorporate knowledge
More informationDFS. Depth-limited Search
DFS Completeness? No, fails in infinite depth spaces or spaces with loops Yes, assuming state space finite. Time complexity? O(b m ), terrible if m is much bigger than d. can do well if lots of goals Space
More informationProblem Solving and Search
Artificial Intelligence Problem Solving and Search Dae-Won Kim School of Computer Science & Engineering Chung-Ang University Outline Problem-solving agents Problem types Problem formulation Example problems
More informationIntroduction to Computer Science and Programming for Astronomers
Introduction to Computer Science and Programming for Astronomers Lecture 9. István Szapudi Institute for Astronomy University of Hawaii March 21, 2018 Outline Reminder 1 Reminder 2 3 Reminder We have demonstrated
More informationCS 331: Artificial Intelligence Informed Search. Informed Search
CS 331: Artificial Intelligence Informed Search 1 Informed Search How can we make search smarter? Use problem-specific knowledge beyond the definition of the problem itself Specifically, incorporate knowledge
More informationTDDC17. Intuitions behind heuristic search. Recall Uniform-Cost Search. Best-First Search. f(n) =... + h(n) g(n) = cost of path from root node to n
Intuitions behind heuristic search The separation property of GRAPH-SEARCH TDDC17 Seminar III Search II Informed or Heuristic Search Beyond Classical Search Find a heuristic measure h(n) which estimates
More informationInformed search algorithms
Informed search algorithms This lecture topic Chapter 3.5-3.7 Next lecture topic Chapter 4.1-4.2 (Please read lecture topic material before and after each lecture on that topic) Outline Review limitations
More informationArtificial Intelligence Informed search. Peter Antal
Artificial Intelligence Informed search Peter Antal antal@mit.bme.hu 1 Informed = use problem-specific knowledge Which search strategies? Best-first search and its variants Heuristic functions? How to
More informationArtificial Intelligence Informed search. Peter Antal Tadeusz Dobrowiecki
Artificial Intelligence Informed search Peter Antal antal@mit.bme.hu Tadeusz Dobrowiecki tade@mit.bme.hu A.I. 9/17/2018 1 Informed = use problem-specific knowledge Which search strategies? Best-first search
More informationInformed search algorithms. Chapter 3 (Based on Slides by Stuart Russell, Dan Klein, Richard Korf, Subbarao Kambhampati, and UW-AI faculty)
Informed search algorithms Chapter 3 (Based on Slides by Stuart Russell, Dan Klein, Richard Korf, Subbarao Kambhampati, and UW-AI faculty) Intuition, like the rays of the sun, acts only in an inflexibly
More informationInformed Search A* Algorithm
Informed Search A* Algorithm CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2018 Soleymani Artificial Intelligence: A Modern Approach, Chapter 3 Most slides have
More informationInformed Search and Exploration
Informed Search and Exploration Chapter 4 (4.1-4.3) CS 2710 1 Introduction Ch.3 searches good building blocks for learning about search But vastly inefficient eg: Can we do better? Breadth Depth Uniform
More informationInformed (Heuristic) Search. Idea: be smart about what paths to try.
Informed (Heuristic) Search Idea: be smart about what paths to try. 1 Blind Search vs. Informed Search What s the difference? How do we formally specify this? A node is selected for expansion based on
More informationTDDC17. Intuitions behind heuristic search. Best-First Search. Recall Uniform-Cost Search. f(n) =... + h(n) g(n) = cost of path from root node to n
Intuitions behind heuristic search The separation property of GRAPH-SEARCH TDDC17 Seminar III Search II Informed or Heuristic Search Beyond Classical Search Find a heuristic measure h(n) which estimates
More informationInformed search algorithms
Informed search algorithms This lecture topic Chapter 3.5-3.7 Next lecture topic Chapter 4.1-4.2 (Please read lecture topic material before and after each lecture on that topic) Outline Review limitations
More informationInformed Search Algorithms
Informed Search Algorithms CITS3001 Algorithms, Agents and Artificial Intelligence Tim French School of Computer Science and Software Engineering The University of Western Australia 2017, Semester 2 Introduction
More informationInformed search algorithms
Informed search algorithms This lecture topic Chapter 3.5-3.7 Next lecture topic Chapter 4.1-4.2 (Please read lecture topic material before and after each lecture on that topic) Outline Review limitations
More informationArtificial Intelligence
Artificial Intelligence CSC348 Unit 3: Problem Solving and Search Syedur Rahman Lecturer, CSE Department North South University syedur.rahman@wolfson.oxon.org Artificial Intelligence: Lecture Notes The
More informationProblem solving and search
Problem solving and search Chapter 3 Chapter 3 1 Outline Problem-solving agents Problem types Problem formulation Example problems Uninformed search algorithms Informed search algorithms Chapter 3 2 Restricted
More informationInformed Search. CS 486/686 University of Waterloo May 10. cs486/686 Lecture Slides 2005 (c) K. Larson and P. Poupart
Informed Search CS 486/686 University of Waterloo May 0 Outline Using knowledge Heuristics Best-first search Greedy best-first search A* search Other variations of A* Back to heuristics 2 Recall from last
More informationArtificial Intelligence
Artificial Intelligence Information Systems and Machine Learning Lab (ISMLL) Tomáš Horváth 10 rd November, 2010 Informed Search and Exploration Example (again) Informed strategy we use a problem-specific
More informationInformed Search and Exploration
Informed Search and Exploration Berlin Chen 2005 Reference: 1. S. Russell and P. Norvig. Artificial Intelligence: A Modern Approach, Chapter 4 2. S. Russell s teaching materials AI - Berlin Chen 1 Introduction
More informationInformed search methods
Informed search methods Tuomas Sandholm Computer Science Department Carnegie Mellon University Read Section 3.5-3.7 of Russell and Norvig Informed Search Methods Heuristic = to find, to discover Heuristic
More informationHW#1 due today. HW#2 due Monday, 9/09/13, in class Continue reading Chapter 3
9-04-2013 Uninformed (blind) search algorithms Breadth-First Search (BFS) Uniform-Cost Search Depth-First Search (DFS) Depth-Limited Search Iterative Deepening Best-First Search HW#1 due today HW#2 due
More informationChapters 3-5 Problem Solving using Search
CSEP 573 Chapters 3-5 Problem Solving using Search First, they do an on-line search CSE AI Faculty Example: The 8-puzzle Example: The 8-puzzle 1 2 3 8 4 7 6 5 1 2 3 4 5 6 7 8 2 Example: Route Planning
More informationArtificial Intelligence. Informed search methods
Artificial Intelligence Informed search methods In which we see how information about the state space can prevent algorithms from blundering about in the dark. 2 Uninformed vs. Informed Search Uninformed
More informationmywbut.com Informed Search Strategies-I
Informed Search Strategies-I 1 3.1 Introduction We have outlined the different types of search strategies. In the earlier chapter we have looked at different blind search strategies. Uninformed search
More informationWissensverarbeitung. - Search - Alexander Felfernig und Gerald Steinbauer Institut für Softwaretechnologie Inffeldgasse 16b/2 A-8010 Graz Austria
- Search - Alexander Felfernig und Gerald Steinbauer Institut für Softwaretechnologie Inffeldgasse 16b/2 A-8010 Graz Austria 1 References Skriptum (TU Wien, Institut für Informationssysteme, Thomas Eiter
More informationDIT411/TIN175, Artificial Intelligence. Peter Ljunglöf. 23 January, 2018
DIT411/TIN175, Artificial Intelligence Chapters 3 4: More search algorithms CHAPTERS 3 4: MORE SEARCH ALGORITHMS DIT411/TIN175, Artificial Intelligence Peter Ljunglöf 23 January, 2018 1 TABLE OF CONTENTS
More informationArtificial Intelligence Informed search. Peter Antal
Artificial Intelligence Informed search Peter Antal antal@mit.bme.hu 1 Informed = use problem-specific knowledge Which search strategies? Best-first search and its variants Heuristic functions? How to
More informationS A E RC R H C I H NG N G IN N S T S A T T A E E G R G A R PH P S
LECTURE 2 SEARCHING IN STATE GRAPHS Introduction Idea: Problem Solving as Search Basic formalism as State-Space Graph Graph explored by Tree Search Different algorithms to explore the graph Slides mainly
More informationPart I. Instructor: Dr. Wei Ding. Uninformed Search Strategies can find solutions to problems by. Informed Search Strategies
Informed Search and Exploration Part I Instructor: Dr. Wei Ding Fall 2010 1 Motivation Uninformed Search Strategies can find solutions to problems by Systematically generating new states Testing them against
More informationDownloaded from ioenotes.edu.np
Chapter- 3: Searching - Searching the process finding the required states or nodes. - Searching is to be performed through the state space. - Search process is carried out by constructing a search tree.
More informationmywbut.com Informed Search Strategies-II
Informed Search Strategies-II 1 3.3 Iterative-Deepening A* 3.3.1 IDA* Algorithm Iterative deepening A* or IDA* is similar to iterative-deepening depth-first, but with the following modifications: The depth
More informationLast time: Problem-Solving
Last time: Problem-Solving Problem solving: Goal formulation Problem formulation (states, operators) Search for solution Problem formulation: Initial state??? 1 Last time: Problem-Solving Problem types:
More informationSolving problems by searching
Solving problems by searching CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2014 Soleymani Artificial Intelligence: A Modern Approach, Chapter 3 Outline Problem-solving
More informationChapter4. Tree Search (Reviewed, Fig. 3.9) Best-First Search. Search Strategies. Best-First Search (cont.-2) Best-First Search (cont.
Tree Search (Reviewed, Fig. 3.9) Chapter4 Informed Search and Exploration 20070322 chap4 1 20070322 chap4 2 Search Strategies A search strategy is defined by picking the order of node expansion Uninformed
More informationArtificial Intelligence
Artificial Intelligence Information Systems and Machine Learning Lab (ISMLL) Tomáš Horváth 16 rd November, 2011 Informed Search and Exploration Example (again) Informed strategy we use a problem-specific
More informationLecture 5 Heuristics. Last Time: A* Search
CSE 473 Lecture 5 Heuristics CSE AI Faculty Last Time: A* Search Use an evaluation function f(n) for node n. f(n) = estimated total cost of path thru n to goal f(n) = g(n) + h(n) g(n) = cost so far to
More informationSolving problems by searching
Solving problems by searching CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2017 Soleymani Artificial Intelligence: A Modern Approach, Chapter 3 Outline Problem-solving
More informationIterative improvement algorithms. Today. Example: Travelling Salesperson Problem. Example: n-queens
Today See Russell and Norvig, chapters 4 & 5 Local search and optimisation Constraint satisfaction problems (CSPs) CSP examples Backtracking search for CSPs 1 Iterative improvement algorithms In many optimization
More informationOutline. Informed Search. Recall: Uninformed Search. An Idea. Heuristics Informed search techniques More on heuristics Iterative improvement
Outline Informed Search ECE457 Applied Artificial Intelligence Fall 2007 Lecture #3 Heuristics Informed search techniques More on heuristics Iterative improvement Russell & Norvig, chapter 4 Skip Genetic
More informationExpert Systems (Graz) Heuristic Search (Klagenfurt) - Search -
Expert Systems (Graz) Heuristic Search (Klagenfurt) - Search - Institut für Softwaretechnologie Inffeldgasse 16b/2 A-8010 Graz Austria 1 References Skriptum (TU Wien, Institut für Informationssysteme,
More informationInformed Search. Notes about the assignment. Outline. Tree search: Reminder. Heuristics. Best-first search. Russell and Norvig chap.
Notes about the assignment Informed Search Russell and Norvig chap. 4 If it says return True or False, return True or False, not "True" or "False Comment out or remove print statements before submitting.
More information