SlideShare a Scribd company logo
1 of 31
Download to read offline
By
Prof. Amira Yassien
1 2 3
4 6
7 8
5
goal
Best first search
Combining cost-so-far and heuristic function
• Since what we're really looking for is the optimal path
between the initial state, and some goal state, a better
measure of how promising a state is, is the sum of the
cost-so-far, and our best estimate of the cost from there to
the nearest goal state.
• For a state n, with a cost-so-far g(n), and a heuristic
estimate of the cost to goal of h(n), what we want is:
• f(n) = g(n) + h(n)
6
Algorithm A*
•Idea: avoid expanding paths that are already expensive.
•
•Evaluation function f(n) = g(n) + h(n)
•
• g(n) = cost so far to reach n
• h(n) = estimated cost from n to goal
• f(n) = estimated total cost of path through n to goal
•
•This proves to be a very effective strategy for controlling
state-space search. When used with best-first search, as a way
of sorting the agenda where the agenda is sorted so that the
states with the lowest values of f(n) come first, and are
therefore expanded first-> this is known as Algorithm A*.
A* Algorithm
 H.C. and B.F. (given heuristics) can find solutions faster
than exhaustive searches.
 However, it can’t tell whether the found solution is the
best one.
 Problem:
 The heuristic guides us to the good nodes but doesn’t give
enough information to guarantee we’ve found the optimum.
 Solution: Branch and bound method
 The cost of the path to a node serves as a lower bound on the
cost of the nodes below it.
 We need a heuristic function ev(n,p) with this property to
guarantee optimum solution.
+
178
A* search and admissibility
• The choice of an appropriate heuristic evaluation
function, h(n), is still crucial to the behaviour of the
search algorithm.
• In general, we want to choose a heuristic evaluation
function h(n) which is as close as possible to the
actual cost of getting to a goal state.
• A heuristic is admissible if it never overestimates the
cost to the goal.
• The A* algorithm always finds the optimal solution
path whenever a path from the start to a goal state
exists.
• When the agenda is sorted according to the function
f(n) = g(n) + h(n) and where the function h(n) is
admissible, can be proven to always find an optimal
solution.
Dominance
• We say that a search strategy which searches less of the
state-space in order to find a goal state is more informed.
Ideally, we'd like a search strategy which is both admissible
(so it will find us an optimal path to the goal state), and
informed (so it will find the optimal path quickly.)
• Admissibility requires that the heuristic evaluation function,
h(n) doesn't overestimate, but we do want a function which
is as close as possible to the actual cost of getting to the
goal.
Admissible
Heuristics
• Finding heuristics:
• Relaxing the problem restrictions (simplifying the problem), e.g. the
rules for moving tiles.
• Learning heuristics from experience: learning a function as weighted
sum of features (quantitative properties of the states).
• e.g. 8’s puzzle
• Number of tiles out of place
• h1= the number of tiles that are in the wrong position. This is
admissible because any tile that is out of place must be moved
at least once.
2 8
1 6 4
7 5
1 2 3
8 4
7 6 5
(4)
3
Different
heuristic
s applied
to states
The heuristic f applied to states in the 8-
puzzle
Inexact Search
When all leaf nodes are feasible(even some are
better than others), H.C. needs no backtracking.
We then must use Forgetful H.C.
Forgetful H.C.: keeps track of current node
and forget where we’ve been [no open list].
Why Inexact Search
• As the search space become very large
(exhaustive) even when guided by
heuristics it’ll be impractical.
Blind Search VS Heuristic Search
• Blind Search:
Very basic. Follow an algorithm, taking no
account of how close we might be to a
solution.
• Informed (Heuristic) Search:
Uses guesses, rules to aid the search.
It involves making an estimate of how far we
are from a solution after each possible next
move & going to the move with the lowest
estimate.
Informed Search Summary
• Best-first search
Is general search where the minimum cost nodes (according to some measure)
are expanded first.
• Hill-climbing search
• When chose to follow a node, it continues to do so in depth first way.
• Even though the children of the node(say a) has heuristic information worst
than that for a node in the same level of node (say a).
• Forgetful Hill-climbing search
keep only a single state in memory, but can get stuck on local optima.
A* search
• A* algorithm is a modified form of best first algorithm.
• It is a branch and bound method with cost associated by path.
• It’s used in path problems where the cost of a path is the sum of the costs of the
moves.
• Guarantee to find best solution.
• f(n) = g(n) + h(n) and handles state repetitions and h(n) never overestimates.
• A* is complete, optimal and optimally efficient but its space complexity is still bad.

More Related Content

Similar to lecture 6 AI - A star.pdf

AI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdf
AI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdfAI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdf
AI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdfAsst.prof M.Gokilavani
 
What is A * Search? What is Heuristic Search? What is Tree search Algorithm?
What is A * Search? What is Heuristic Search? What is Tree search Algorithm?What is A * Search? What is Heuristic Search? What is Tree search Algorithm?
What is A * Search? What is Heuristic Search? What is Tree search Algorithm?Santosh Pandeya
 
Heuristis search
Heuristis searchHeuristis search
Heuristis searchsajidktk96
 
Introduction to artificial intelligence
Introduction to artificial intelligenceIntroduction to artificial intelligence
Introduction to artificial intelligencerishi ram khanal
 
Heuristic search
Heuristic searchHeuristic search
Heuristic searchNivethaS35
 
Search problems in Artificial Intelligence
Search problems in Artificial IntelligenceSearch problems in Artificial Intelligence
Search problems in Artificial Intelligenceananth
 
2-Heuristic Search.ppt
2-Heuristic Search.ppt2-Heuristic Search.ppt
2-Heuristic Search.pptMIT,Imphal
 
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttktshamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttktPEACENYAMA1
 
Lecture 11 Informed Search
Lecture 11 Informed SearchLecture 11 Informed Search
Lecture 11 Informed SearchHema Kashyap
 
Informed search (bst)
Informed search (bst)Informed search (bst)
Informed search (bst)radhika puri
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}FellowBuddy.com
 
hill climbing algorithm.pptx
hill climbing algorithm.pptxhill climbing algorithm.pptx
hill climbing algorithm.pptxMghooolMasier
 
Artificial Intelligence_Anjali_Kumari_26900122059.pptx
Artificial Intelligence_Anjali_Kumari_26900122059.pptxArtificial Intelligence_Anjali_Kumari_26900122059.pptx
Artificial Intelligence_Anjali_Kumari_26900122059.pptxCCBProduction
 

Similar to lecture 6 AI - A star.pdf (20)

AI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdf
AI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdfAI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdf
AI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdf
 
What is A * Search? What is Heuristic Search? What is Tree search Algorithm?
What is A * Search? What is Heuristic Search? What is Tree search Algorithm?What is A * Search? What is Heuristic Search? What is Tree search Algorithm?
What is A * Search? What is Heuristic Search? What is Tree search Algorithm?
 
Heuristis search
Heuristis searchHeuristis search
Heuristis search
 
Introduction to artificial intelligence
Introduction to artificial intelligenceIntroduction to artificial intelligence
Introduction to artificial intelligence
 
Heuristic search
Heuristic searchHeuristic search
Heuristic search
 
A Star Search
A Star SearchA Star Search
A Star Search
 
A Star Search
A Star SearchA Star Search
A Star Search
 
Search problems in Artificial Intelligence
Search problems in Artificial IntelligenceSearch problems in Artificial Intelligence
Search problems in Artificial Intelligence
 
2-Heuristic Search.ppt
2-Heuristic Search.ppt2-Heuristic Search.ppt
2-Heuristic Search.ppt
 
abhishek ppt.pptx
abhishek ppt.pptxabhishek ppt.pptx
abhishek ppt.pptx
 
AI_Lecture2.pptx
AI_Lecture2.pptxAI_Lecture2.pptx
AI_Lecture2.pptx
 
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttktshamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
 
Lecture 11 Informed Search
Lecture 11 Informed SearchLecture 11 Informed Search
Lecture 11 Informed Search
 
Informed search (bst)
Informed search (bst)Informed search (bst)
Informed search (bst)
 
M4 heuristics
M4 heuristicsM4 heuristics
M4 heuristics
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
 
3.informed search
3.informed search3.informed search
3.informed search
 
hill climbing algorithm.pptx
hill climbing algorithm.pptxhill climbing algorithm.pptx
hill climbing algorithm.pptx
 
Artificial Intelligence_Anjali_Kumari_26900122059.pptx
Artificial Intelligence_Anjali_Kumari_26900122059.pptxArtificial Intelligence_Anjali_Kumari_26900122059.pptx
Artificial Intelligence_Anjali_Kumari_26900122059.pptx
 
Chap11 slides
Chap11 slidesChap11 slides
Chap11 slides
 

Recently uploaded

VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxolyaivanovalion
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSAishani27
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 

Recently uploaded (20)

VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICS
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 

lecture 6 AI - A star.pdf

  • 2. 1 2 3 4 6 7 8 5 goal Best first search
  • 3.
  • 4.
  • 5.
  • 6. Combining cost-so-far and heuristic function • Since what we're really looking for is the optimal path between the initial state, and some goal state, a better measure of how promising a state is, is the sum of the cost-so-far, and our best estimate of the cost from there to the nearest goal state. • For a state n, with a cost-so-far g(n), and a heuristic estimate of the cost to goal of h(n), what we want is: • f(n) = g(n) + h(n) 6
  • 7. Algorithm A* •Idea: avoid expanding paths that are already expensive. • •Evaluation function f(n) = g(n) + h(n) • • g(n) = cost so far to reach n • h(n) = estimated cost from n to goal • f(n) = estimated total cost of path through n to goal • •This proves to be a very effective strategy for controlling state-space search. When used with best-first search, as a way of sorting the agenda where the agenda is sorted so that the states with the lowest values of f(n) come first, and are therefore expanded first-> this is known as Algorithm A*.
  • 8. A* Algorithm  H.C. and B.F. (given heuristics) can find solutions faster than exhaustive searches.  However, it can’t tell whether the found solution is the best one.  Problem:  The heuristic guides us to the good nodes but doesn’t give enough information to guarantee we’ve found the optimum.  Solution: Branch and bound method  The cost of the path to a node serves as a lower bound on the cost of the nodes below it.  We need a heuristic function ev(n,p) with this property to guarantee optimum solution.
  • 9.
  • 10. + 178
  • 11.
  • 12.
  • 13.
  • 14.
  • 15. A* search and admissibility • The choice of an appropriate heuristic evaluation function, h(n), is still crucial to the behaviour of the search algorithm. • In general, we want to choose a heuristic evaluation function h(n) which is as close as possible to the actual cost of getting to a goal state. • A heuristic is admissible if it never overestimates the cost to the goal.
  • 16. • The A* algorithm always finds the optimal solution path whenever a path from the start to a goal state exists. • When the agenda is sorted according to the function f(n) = g(n) + h(n) and where the function h(n) is admissible, can be proven to always find an optimal solution.
  • 17. Dominance • We say that a search strategy which searches less of the state-space in order to find a goal state is more informed. Ideally, we'd like a search strategy which is both admissible (so it will find us an optimal path to the goal state), and informed (so it will find the optimal path quickly.) • Admissibility requires that the heuristic evaluation function, h(n) doesn't overestimate, but we do want a function which is as close as possible to the actual cost of getting to the goal.
  • 18. Admissible Heuristics • Finding heuristics: • Relaxing the problem restrictions (simplifying the problem), e.g. the rules for moving tiles. • Learning heuristics from experience: learning a function as weighted sum of features (quantitative properties of the states). • e.g. 8’s puzzle • Number of tiles out of place • h1= the number of tiles that are in the wrong position. This is admissible because any tile that is out of place must be moved at least once. 2 8 1 6 4 7 5 1 2 3 8 4 7 6 5 (4) 3
  • 20. The heuristic f applied to states in the 8- puzzle
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27. Inexact Search When all leaf nodes are feasible(even some are better than others), H.C. needs no backtracking. We then must use Forgetful H.C. Forgetful H.C.: keeps track of current node and forget where we’ve been [no open list].
  • 28. Why Inexact Search • As the search space become very large (exhaustive) even when guided by heuristics it’ll be impractical.
  • 29. Blind Search VS Heuristic Search • Blind Search: Very basic. Follow an algorithm, taking no account of how close we might be to a solution. • Informed (Heuristic) Search: Uses guesses, rules to aid the search. It involves making an estimate of how far we are from a solution after each possible next move & going to the move with the lowest estimate.
  • 30. Informed Search Summary • Best-first search Is general search where the minimum cost nodes (according to some measure) are expanded first. • Hill-climbing search • When chose to follow a node, it continues to do so in depth first way. • Even though the children of the node(say a) has heuristic information worst than that for a node in the same level of node (say a). • Forgetful Hill-climbing search keep only a single state in memory, but can get stuck on local optima.
  • 31. A* search • A* algorithm is a modified form of best first algorithm. • It is a branch and bound method with cost associated by path. • It’s used in path problems where the cost of a path is the sum of the costs of the moves. • Guarantee to find best solution. • f(n) = g(n) + h(n) and handles state repetitions and h(n) never overestimates. • A* is complete, optimal and optimally efficient but its space complexity is still bad.