SlideShare ist ein Scribd-Unternehmen logo
1 von 24
AI: Chapter 4: Informed Search
and Exploration
1
Introduction to Artificial Intelligence
Chapter 4
Solving problems by searching
Informed (heuristics) Search
AI: Chapter 4: Informed Search
and Exploration
2
Informed (Heuristic) Search
Strategies
• Informed Search – a strategy that uses
problem-specific knowledge beyond the
definition of the problem itself
• Best-First Search – an algorithm in which a
node is selected for expansion based on an
evaluation function f(n)
– Traditionally the node with the lowest evaluation
function is selected
– Not an accurate name…expanding the best node first
would be a straight march to the goal.
– Choose the node that appears to be the best
AI: Chapter 4: Informed Search
and Exploration
3
Informed (Heuristic) Search
Strategies
• There is a whole family of Best-First Search
algorithms with different evaluation functions
– Each has a heuristic function h(n)
• h(n) = estimated cost of the cheapest path from
node n to a goal node
• Example: in route planning the estimate of the
cost of the cheapest path might be the straight
line distance between two cities
AI: Chapter 4: Informed Search
and Exploration
4
A Quick Review
• g(n) = cost from the initial state to the
current state n
• h(n) = estimated cost of the cheapest path
from node n to a goal node
• f(n) = evaluation function to select a node
for expansion (usually the lowest cost
node)
AI: Chapter 4: Informed Search
and Exploration
5
Greedy Best-First Search
• Greedy Best-First search tries to expand the node that is
closest to the goal assuming it will lead to a solution
quickly
– f(n) = h(n)
– “Greedy Search”
• Implementation
– expand the “most desirable” node into the fringe queue
– sort the queue in decreasing order of desirability
• Example: consider the straight-line distance heuristic hSLD
– Expand the node that appears to be closest to the goal
AI: Chapter 4: Informed Search
and Exploration
6
Greedy Best-First Search
AI: Chapter 4: Informed Search
and Exploration
7
Greedy Best-First Search
• hSLD(In(Arad)) = 366
• Notice that the values of hSLD cannot be
computed from the problem itself
• It takes some experience to know that hSLD
is correlated with actual road distances
– Therefore a useful heuristic
AI: Chapter 4: Informed Search
and Exploration
8
Greedy Best-First Search
AI: Chapter 4: Informed Search
and Exploration
9
Greedy Best-First Search
AI: Chapter 4: Informed Search
and Exploration
10
Greedy Best-First Search
AI: Chapter 4: Informed Search
and Exploration
11
Greedy Best-First Search
• Complete
– No, GBFS can get
stuck in loops (e.g.
bouncing back and
forth between cities)
• Time
– O(bm
) but a good
heuristic can have
dramatic improvement
• Space
keeps all the nodes in
memory
• Optimal
– No!
AI: Chapter 4: Informed Search
and Exploration
12
A* Search
• A* (A star) is the most widely known form
of Best-First search
– It evaluates nodes by combining g(n) and h(n)
– f(n) = g(n) + h(n)
– Where
• g(n) = cost so far to reach n
• h(n) = estimated cost to goal from n
• f(n) = estimated total cost of path through n
AI: Chapter 4: Informed Search
and Exploration
13
A* Search
• When h(n) = actual cost to goal
– Only nodes in the correct path are expanded
– Optimal solution is found
• When h(n) < actual cost to goal
– Additional nodes are expanded
– Optimal solution is found
• When h(n) > actual cost to goal
– Optimal solution can be overlooked
AI: Chapter 4: Informed Search
and Exploration
14
A* Search
• A* is optimal if it uses an admissible
heuristic
– h(n) <= h*(n) the true cost from node n
– if h(n) never overestimates the cost to reach
the goal
• Example
– hSLD never overestimates the actual road
distance
AI: Chapter 4: Informed Search
and Exploration
15
A* Search
AI: Chapter 4: Informed Search
and Exploration
16
A* Search
AI: Chapter 4: Informed Search
and Exploration
17
A* Search
AI: Chapter 4: Informed Search
and Exploration
18
A* Search
AI: Chapter 4: Informed Search
and Exploration
19
A* Search
AI: Chapter 4: Informed Search
and Exploration
20
A* Search
AI: Chapter 4: Informed Search
and Exploration
21
A* Search
• A* expands nodes in increasing f value
– Gradually adds f-contours of nodes (like
breadth-first search adding layers)
– Contour i has all nodes f=fi where fi < fi+1
AI: Chapter 4: Informed Search
and Exploration
22
A* Search
• Complete
– Yes, unless there are infinitely many nodes with f <= f(G)
• Time
– The better the heuristic, the better the time
• Best case h is perfect,
• same as BFS
• Space
– Keeps all nodes in memory and save in case of repetition
– worse
– A* usually runs out of space before it runs out of time
• Optimal
– Yes, cannot expand fi+1 unless fi is finished
AI: Chapter 4: Informed Search
and Exploration
23
Memory-Bounded Heuristic Search
• Iterative Deepening A* (IDA*)
– Similar to Iterative Deepening Search, but cut off at
(g(n)+h(n)) > max instead of depth > max
– At each iteration, cutoff is the first f-cost that exceeds
the cost of the node at the previous iteration
• Simple Memory Bounded A* (SMA*)
– Set max to some memory bound
– If the memory is full, to add a node drop the worst
(g+h) node that is already stored
– Expands newest best leaf, deletes oldest worst leaf
AI: Chapter 4: Informed Search
and Exploration
24
Exercise
For the case of a Romania Example if a person
needs to go from the city of Oradea to
Bucharest determine:
1. The state space graph
2. By using the five uninformed search
strategies determine the successor functions
3. By using a greedy best and A* heuristics
search strategies determine the path to reach
the goal city
4. Which search strategy provide you an optimal
solution for the problem? Why?

Weitere ähnliche Inhalte

Was ist angesagt?

I. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithmI. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithmvikas dhakane
 
Heuristic search
Heuristic searchHeuristic search
Heuristic searchNivethaS35
 
4 informed-search
4 informed-search4 informed-search
4 informed-searchMhd Sb
 
Heuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligenceHeuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligencegrinu
 
Solving problems by searching
Solving problems by searchingSolving problems by searching
Solving problems by searchingLuigi Ceccaroni
 
Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesDr. C.V. Suresh Babu
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial IntelligenceJay Nagar
 
State space search
State space searchState space search
State space searchchauhankapil
 
Lecture 26 local beam search
Lecture 26 local beam searchLecture 26 local beam search
Lecture 26 local beam searchHema Kashyap
 
6 games
6 games6 games
6 gamesMhd Sb
 
Local search algorithm
Local search algorithmLocal search algorithm
Local search algorithmMegha Sharma
 
Lecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithmLecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithmHema Kashyap
 
Heuristc Search Techniques
Heuristc Search TechniquesHeuristc Search Techniques
Heuristc Search TechniquesJismy .K.Jose
 
Popular search algorithms
Popular search algorithmsPopular search algorithms
Popular search algorithmsMinakshi Atre
 

Was ist angesagt? (20)

I. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithmI. Hill climbing algorithm II. Steepest hill climbing algorithm
I. Hill climbing algorithm II. Steepest hill climbing algorithm
 
Heuristic search
Heuristic searchHeuristic search
Heuristic search
 
4 informed-search
4 informed-search4 informed-search
4 informed-search
 
AI Lecture 3 (solving problems by searching)
AI Lecture 3 (solving problems by searching)AI Lecture 3 (solving problems by searching)
AI Lecture 3 (solving problems by searching)
 
Heuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligenceHeuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligence
 
A* algorithm
A* algorithmA* algorithm
A* algorithm
 
Solving problems by searching
Solving problems by searchingSolving problems by searching
Solving problems by searching
 
Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching Techniques
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
State space search
State space searchState space search
State space search
 
Lecture 26 local beam search
Lecture 26 local beam searchLecture 26 local beam search
Lecture 26 local beam search
 
Problems, Problem spaces and Search
Problems, Problem spaces and SearchProblems, Problem spaces and Search
Problems, Problem spaces and Search
 
Planning
PlanningPlanning
Planning
 
6 games
6 games6 games
6 games
 
Local search algorithm
Local search algorithmLocal search algorithm
Local search algorithm
 
Lecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithmLecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithm
 
Hill climbing algorithm
Hill climbing algorithmHill climbing algorithm
Hill climbing algorithm
 
Heuristic search
Heuristic searchHeuristic search
Heuristic search
 
Heuristc Search Techniques
Heuristc Search TechniquesHeuristc Search Techniques
Heuristc Search Techniques
 
Popular search algorithms
Popular search algorithmsPopular search algorithms
Popular search algorithms
 

Andere mochten auch

Ch2 3-informed (heuristic) search
Ch2 3-informed (heuristic) searchCh2 3-informed (heuristic) search
Ch2 3-informed (heuristic) searchchandsek666
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}FellowBuddy.com
 
Heuristic Search
Heuristic SearchHeuristic Search
Heuristic Searchbutest
 
(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 ai(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 aiRadhika Srinivasan
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AIAmey Kerkar
 
Optimization Heuristics
Optimization HeuristicsOptimization Heuristics
Optimization HeuristicsKausal Malladi
 
09 heuristic search
09 heuristic search09 heuristic search
09 heuristic searchTianlu Wang
 
Amit ppt
Amit pptAmit ppt
Amit pptamitp26
 
A Star Heuristic Search
A Star Heuristic SearchA Star Heuristic Search
A Star Heuristic SearchMuna Hamdi
 
Introduction iii
Introduction iiiIntroduction iii
Introduction iiichandsek666
 
Uninformed Search technique
Uninformed Search techniqueUninformed Search technique
Uninformed Search techniqueKapil Dahal
 
Knowledge engg using & in fol
Knowledge engg using & in folKnowledge engg using & in fol
Knowledge engg using & in folchandsek666
 
Artificial intelligence and video games
Artificial intelligence and video gamesArtificial intelligence and video games
Artificial intelligence and video gamesSimple_Harsh
 
Artificial Intelligence in games
Artificial Intelligence in gamesArtificial Intelligence in games
Artificial Intelligence in gamesDevGAMM Conference
 
Seminar "Technology Enhanced Learning" - Einheit 1
Seminar "Technology Enhanced Learning" - Einheit 1Seminar "Technology Enhanced Learning" - Einheit 1
Seminar "Technology Enhanced Learning" - Einheit 1Martin Ebner
 
Travel Plan using Geo-tagged Photos in Geocrowd2013
Travel Plan using Geo-tagged Photos in Geocrowd2013 Travel Plan using Geo-tagged Photos in Geocrowd2013
Travel Plan using Geo-tagged Photos in Geocrowd2013 Arizona State University
 

Andere mochten auch (20)

Ch2 3-informed (heuristic) search
Ch2 3-informed (heuristic) searchCh2 3-informed (heuristic) search
Ch2 3-informed (heuristic) search
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
 
Heuristic Search
Heuristic SearchHeuristic Search
Heuristic Search
 
Chapter 2 (final)
Chapter 2 (final)Chapter 2 (final)
Chapter 2 (final)
 
(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 ai(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 ai
 
Hill climbing
Hill climbingHill climbing
Hill climbing
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AI
 
Optimization Heuristics
Optimization HeuristicsOptimization Heuristics
Optimization Heuristics
 
09 heuristic search
09 heuristic search09 heuristic search
09 heuristic search
 
Amit ppt
Amit pptAmit ppt
Amit ppt
 
AI: AI & Searching
AI: AI & SearchingAI: AI & Searching
AI: AI & Searching
 
A Star Heuristic Search
A Star Heuristic SearchA Star Heuristic Search
A Star Heuristic Search
 
Introduction iii
Introduction iiiIntroduction iii
Introduction iii
 
Uninformed Search technique
Uninformed Search techniqueUninformed Search technique
Uninformed Search technique
 
Knowledge engg using & in fol
Knowledge engg using & in folKnowledge engg using & in fol
Knowledge engg using & in fol
 
Artificial intelligence and video games
Artificial intelligence and video gamesArtificial intelligence and video games
Artificial intelligence and video games
 
Artificial Intelligence in games
Artificial Intelligence in gamesArtificial Intelligence in games
Artificial Intelligence in games
 
simple
simplesimple
simple
 
Seminar "Technology Enhanced Learning" - Einheit 1
Seminar "Technology Enhanced Learning" - Einheit 1Seminar "Technology Enhanced Learning" - Einheit 1
Seminar "Technology Enhanced Learning" - Einheit 1
 
Travel Plan using Geo-tagged Photos in Geocrowd2013
Travel Plan using Geo-tagged Photos in Geocrowd2013 Travel Plan using Geo-tagged Photos in Geocrowd2013
Travel Plan using Geo-tagged Photos in Geocrowd2013
 

Ähnlich wie Solving problems by searching Informed (heuristics) Search

Artificial intelligence(06)
Artificial intelligence(06)Artificial intelligence(06)
Artificial intelligence(06)Nazir Ahmed
 
Artificial intelligence(06)
Artificial intelligence(06)Artificial intelligence(06)
Artificial intelligence(06)Nazir Ahmed
 
lect03-informed-searchhhhhhhhhhhhhhhhh.pdf
lect03-informed-searchhhhhhhhhhhhhhhhh.pdflect03-informed-searchhhhhhhhhhhhhhhhh.pdf
lect03-informed-searchhhhhhhhhhhhhhhhh.pdfTrngThunKit
 
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttktshamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttktPEACENYAMA1
 
informed_search.pdf
informed_search.pdfinformed_search.pdf
informed_search.pdfSankarTerli
 
Heuristic Searching Algorithms Artificial Intelligence.pptx
Heuristic Searching Algorithms Artificial Intelligence.pptxHeuristic Searching Algorithms Artificial Intelligence.pptx
Heuristic Searching Algorithms Artificial Intelligence.pptxSwagat Praharaj
 
Searchadditional2
Searchadditional2Searchadditional2
Searchadditional2chandsek666
 
Pathfinding - Part 1: Α* heuristic search
Pathfinding - Part 1: Α* heuristic searchPathfinding - Part 1: Α* heuristic search
Pathfinding - Part 1: Α* heuristic searchStavros Vassos
 
Jarrar: Informed Search
Jarrar: Informed Search  Jarrar: Informed Search
Jarrar: Informed Search Mustafa Jarrar
 
Artificial intelligence(05)
Artificial intelligence(05)Artificial intelligence(05)
Artificial intelligence(05)Nazir Ahmed
 
Introduction to artificial intelligence
Introduction to artificial intelligenceIntroduction to artificial intelligence
Introduction to artificial intelligencerishi ram khanal
 
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
 

Ähnlich wie Solving problems by searching Informed (heuristics) Search (20)

Artificial intelligence(06)
Artificial intelligence(06)Artificial intelligence(06)
Artificial intelligence(06)
 
Artificial intelligence(06)
Artificial intelligence(06)Artificial intelligence(06)
Artificial intelligence(06)
 
Searching
SearchingSearching
Searching
 
lect03-informed-searchhhhhhhhhhhhhhhhh.pdf
lect03-informed-searchhhhhhhhhhhhhhhhh.pdflect03-informed-searchhhhhhhhhhhhhhhhh.pdf
lect03-informed-searchhhhhhhhhhhhhhhhh.pdf
 
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttktshamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
 
informed_search.pdf
informed_search.pdfinformed_search.pdf
informed_search.pdf
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
 
M4 heuristics
M4 heuristicsM4 heuristics
M4 heuristics
 
Heuristic Searching Algorithms Artificial Intelligence.pptx
Heuristic Searching Algorithms Artificial Intelligence.pptxHeuristic Searching Algorithms Artificial Intelligence.pptx
Heuristic Searching Algorithms Artificial Intelligence.pptx
 
3.informed search
3.informed search3.informed search
3.informed search
 
m4-heuristics.ppt
m4-heuristics.pptm4-heuristics.ppt
m4-heuristics.ppt
 
Searchadditional2
Searchadditional2Searchadditional2
Searchadditional2
 
Pathfinding - Part 1: Α* heuristic search
Pathfinding - Part 1: Α* heuristic searchPathfinding - Part 1: Α* heuristic search
Pathfinding - Part 1: Α* heuristic search
 
Jarrar: Informed Search
Jarrar: Informed Search  Jarrar: Informed Search
Jarrar: Informed Search
 
A Star Search
A Star SearchA Star Search
A Star Search
 
A Star Search
A Star SearchA Star Search
A Star Search
 
Artificial intelligence(05)
Artificial intelligence(05)Artificial intelligence(05)
Artificial intelligence(05)
 
Search 2
Search 2Search 2
Search 2
 
Introduction to artificial intelligence
Introduction to artificial intelligenceIntroduction to artificial intelligence
Introduction to artificial intelligence
 
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
 

Kürzlich hochgeladen

Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 

Kürzlich hochgeladen (20)

Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 

Solving problems by searching Informed (heuristics) Search

  • 1. AI: Chapter 4: Informed Search and Exploration 1 Introduction to Artificial Intelligence Chapter 4 Solving problems by searching Informed (heuristics) Search
  • 2. AI: Chapter 4: Informed Search and Exploration 2 Informed (Heuristic) Search Strategies • Informed Search – a strategy that uses problem-specific knowledge beyond the definition of the problem itself • Best-First Search – an algorithm in which a node is selected for expansion based on an evaluation function f(n) – Traditionally the node with the lowest evaluation function is selected – Not an accurate name…expanding the best node first would be a straight march to the goal. – Choose the node that appears to be the best
  • 3. AI: Chapter 4: Informed Search and Exploration 3 Informed (Heuristic) Search Strategies • There is a whole family of Best-First Search algorithms with different evaluation functions – Each has a heuristic function h(n) • h(n) = estimated cost of the cheapest path from node n to a goal node • Example: in route planning the estimate of the cost of the cheapest path might be the straight line distance between two cities
  • 4. AI: Chapter 4: Informed Search and Exploration 4 A Quick Review • g(n) = cost from the initial state to the current state n • h(n) = estimated cost of the cheapest path from node n to a goal node • f(n) = evaluation function to select a node for expansion (usually the lowest cost node)
  • 5. AI: Chapter 4: Informed Search and Exploration 5 Greedy Best-First Search • Greedy Best-First search tries to expand the node that is closest to the goal assuming it will lead to a solution quickly – f(n) = h(n) – “Greedy Search” • Implementation – expand the “most desirable” node into the fringe queue – sort the queue in decreasing order of desirability • Example: consider the straight-line distance heuristic hSLD – Expand the node that appears to be closest to the goal
  • 6. AI: Chapter 4: Informed Search and Exploration 6 Greedy Best-First Search
  • 7. AI: Chapter 4: Informed Search and Exploration 7 Greedy Best-First Search • hSLD(In(Arad)) = 366 • Notice that the values of hSLD cannot be computed from the problem itself • It takes some experience to know that hSLD is correlated with actual road distances – Therefore a useful heuristic
  • 8. AI: Chapter 4: Informed Search and Exploration 8 Greedy Best-First Search
  • 9. AI: Chapter 4: Informed Search and Exploration 9 Greedy Best-First Search
  • 10. AI: Chapter 4: Informed Search and Exploration 10 Greedy Best-First Search
  • 11. AI: Chapter 4: Informed Search and Exploration 11 Greedy Best-First Search • Complete – No, GBFS can get stuck in loops (e.g. bouncing back and forth between cities) • Time – O(bm ) but a good heuristic can have dramatic improvement • Space keeps all the nodes in memory • Optimal – No!
  • 12. AI: Chapter 4: Informed Search and Exploration 12 A* Search • A* (A star) is the most widely known form of Best-First search – It evaluates nodes by combining g(n) and h(n) – f(n) = g(n) + h(n) – Where • g(n) = cost so far to reach n • h(n) = estimated cost to goal from n • f(n) = estimated total cost of path through n
  • 13. AI: Chapter 4: Informed Search and Exploration 13 A* Search • When h(n) = actual cost to goal – Only nodes in the correct path are expanded – Optimal solution is found • When h(n) < actual cost to goal – Additional nodes are expanded – Optimal solution is found • When h(n) > actual cost to goal – Optimal solution can be overlooked
  • 14. AI: Chapter 4: Informed Search and Exploration 14 A* Search • A* is optimal if it uses an admissible heuristic – h(n) <= h*(n) the true cost from node n – if h(n) never overestimates the cost to reach the goal • Example – hSLD never overestimates the actual road distance
  • 15. AI: Chapter 4: Informed Search and Exploration 15 A* Search
  • 16. AI: Chapter 4: Informed Search and Exploration 16 A* Search
  • 17. AI: Chapter 4: Informed Search and Exploration 17 A* Search
  • 18. AI: Chapter 4: Informed Search and Exploration 18 A* Search
  • 19. AI: Chapter 4: Informed Search and Exploration 19 A* Search
  • 20. AI: Chapter 4: Informed Search and Exploration 20 A* Search
  • 21. AI: Chapter 4: Informed Search and Exploration 21 A* Search • A* expands nodes in increasing f value – Gradually adds f-contours of nodes (like breadth-first search adding layers) – Contour i has all nodes f=fi where fi < fi+1
  • 22. AI: Chapter 4: Informed Search and Exploration 22 A* Search • Complete – Yes, unless there are infinitely many nodes with f <= f(G) • Time – The better the heuristic, the better the time • Best case h is perfect, • same as BFS • Space – Keeps all nodes in memory and save in case of repetition – worse – A* usually runs out of space before it runs out of time • Optimal – Yes, cannot expand fi+1 unless fi is finished
  • 23. AI: Chapter 4: Informed Search and Exploration 23 Memory-Bounded Heuristic Search • Iterative Deepening A* (IDA*) – Similar to Iterative Deepening Search, but cut off at (g(n)+h(n)) > max instead of depth > max – At each iteration, cutoff is the first f-cost that exceeds the cost of the node at the previous iteration • Simple Memory Bounded A* (SMA*) – Set max to some memory bound – If the memory is full, to add a node drop the worst (g+h) node that is already stored – Expands newest best leaf, deletes oldest worst leaf
  • 24. AI: Chapter 4: Informed Search and Exploration 24 Exercise For the case of a Romania Example if a person needs to go from the city of Oradea to Bucharest determine: 1. The state space graph 2. By using the five uninformed search strategies determine the successor functions 3. By using a greedy best and A* heuristics search strategies determine the path to reach the goal city 4. Which search strategy provide you an optimal solution for the problem? Why?