Lect 9 10
Lect 9 10
Where, g(n)= cost from start node to node n, and h(n) is the estimated cost
from node n to goal
What will be value of g(n) and h(n) at start and goal state
Environment Type In coming Lecture
Fully
Observable Static Environment
yes
Deterministic
yes
Sequential
yes no
Discrete no
yes Discrete
no
yes
Planning, Control, Vector Search: Continuous Function
heuristic cybernetics Constraint Optimization
search Satisfaction
Outline
• Best-first search
• A* search
• Local search algorithms
• Hill-climbing search
• Simulated annealing search
• Local beam search
G
h(n) = 0
A to G heuristics 1<4, B to G
5<=5, from S (SBAG)<=7. That
means we can verify that it is
admissible
Lets construct the search tree and search graph for this to see if being
admissible is sufficient for graph search
Artificial Intelligence
DSE 313 –Lecture 10
G
A to G heuristics 1<4, B to G h(n) = 0
Lets construct the search tree and search graph for this to see if being
admissible is sufficient for graph search
Optimality of A* (tree) (proof)
• Suppose h() is admissible
• Suppose some suboptimal goal path G2 has been generated and is in the
frontier. Let n be an unexpanded node in the frontier such that n is on a
shortest path to an optimal goal G.
Focus on G2
• f(G2) = g(G2) since h(G2) = 0
• g(G2) > g(G) since G2 is suboptimal, cost of reaching G is less.
Focus on G
• f(G) = g(G) since h(G) = 0
• f(G2) > f(G) from above
Optimality of A* (tree) (proof)
f(G2) = g(G2) since h(G2) = 0 because h is admissible
g(G2) > g(G) since G2 is suboptimal, cost of reaching G is less.
f(G) = g(G) since h(G) = 0
f(G2) > f(G) from above (1)
• Complete? Yes unless there are infinitely many nodes with f < f(G)
• Time? Exponential (can be converted to polynomial
with good heuristics)
• Space? Keeps all nodes in memory
• Optimal? Yes
The effect of heuristic accuracy on
performance
e.g., for the 8-puzzle:
• h1(S) = ?
• h2(S) = ?
e.g., for the 8-puzzle:
Q
Incremental formulation
Q Q Q Q Q
Q Q Q Q Q
Q Q Q Q Q
Q Q
Q Q Q Q Q
Q Q
Q Q Q Q Q
Pose Estimation Example (Do you
have a goal state?)
• Given a geometric model of a 3D object and a 2D image of
the object.
• Determine the position and orientation of the object w.r.t.
the camera that snapped the image.
• Large (infinite) continuous search spaces (is systematic
search a good technique)
image 3D object