SlideShare a Scribd company logo
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?

More Related Content

What's hot

Lecture 21 problem reduction search ao star search
Lecture 21 problem reduction search ao star searchLecture 21 problem reduction search ao star search
Lecture 21 problem reduction search ao star search
Hema Kashyap
 
Problem Solving
Problem Solving Problem Solving
Problem Solving
Amar Jukuntla
 
Problem reduction AND OR GRAPH & AO* algorithm.ppt
Problem reduction AND OR GRAPH & AO* algorithm.pptProblem reduction AND OR GRAPH & AO* algorithm.ppt
Problem reduction AND OR GRAPH & AO* algorithm.ppt
arunsingh660
 
The sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithmThe sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithm
Mani Kanth
 
Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching Techniques
Dr. C.V. Suresh Babu
 
AI: AI & Problem Solving
AI: AI & Problem SolvingAI: AI & Problem Solving
AI: AI & Problem Solving
DataminingTools Inc
 
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
Hema Kashyap
 
Time and Space Complexity
Time and Space ComplexityTime and Space Complexity
Time and Space Complexity
Ashutosh Satapathy
 
Uninformed Search technique
Uninformed Search techniqueUninformed Search technique
Uninformed Search technique
Kapil Dahal
 
Artificial Intelligence -- Search Algorithms
Artificial Intelligence-- Search Algorithms Artificial Intelligence-- Search Algorithms
Artificial Intelligence -- Search Algorithms
Syed Ahmed
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
FellowBuddy.com
 
Ai notes
Ai notesAi notes
Ai notes
AbdullahGubbi1
 
Solving problems by searching
Solving problems by searchingSolving problems by searching
Solving problems by searchingLuigi Ceccaroni
 
AI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptxAI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptx
Asst.prof M.Gokilavani
 
Hill climbing algorithm
Hill climbing algorithmHill climbing algorithm
Hill climbing algorithm
Dr. C.V. Suresh Babu
 
P, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-HardP, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-Hard
Animesh Chaturvedi
 
Uninformed search
Uninformed searchUninformed search
Uninformed search
Bablu Shofi
 
Problem solving in Artificial Intelligence.pptx
Problem solving in Artificial Intelligence.pptxProblem solving in Artificial Intelligence.pptx
Problem solving in Artificial Intelligence.pptx
kitsenthilkumarcse
 
Problems, Problem spaces and Search
Problems, Problem spaces and SearchProblems, Problem spaces and Search
Problems, Problem spaces and Search
BMS Institute of Technology and Management
 

What's hot (20)

Lecture 21 problem reduction search ao star search
Lecture 21 problem reduction search ao star searchLecture 21 problem reduction search ao star search
Lecture 21 problem reduction search ao star search
 
Hill climbing
Hill climbingHill climbing
Hill climbing
 
Problem Solving
Problem Solving Problem Solving
Problem Solving
 
Problem reduction AND OR GRAPH & AO* algorithm.ppt
Problem reduction AND OR GRAPH & AO* algorithm.pptProblem reduction AND OR GRAPH & AO* algorithm.ppt
Problem reduction AND OR GRAPH & AO* algorithm.ppt
 
The sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithmThe sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithm
 
Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching Techniques
 
AI: AI & Problem Solving
AI: AI & Problem SolvingAI: AI & Problem Solving
AI: AI & Problem Solving
 
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
 
Time and Space Complexity
Time and Space ComplexityTime and Space Complexity
Time and Space Complexity
 
Uninformed Search technique
Uninformed Search techniqueUninformed Search technique
Uninformed Search technique
 
Artificial Intelligence -- Search Algorithms
Artificial Intelligence-- Search Algorithms Artificial Intelligence-- Search Algorithms
Artificial Intelligence -- Search Algorithms
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
 
Ai notes
Ai notesAi notes
Ai notes
 
Solving problems by searching
Solving problems by searchingSolving problems by searching
Solving problems by searching
 
AI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptxAI_Session 7 Greedy Best first search algorithm.pptx
AI_Session 7 Greedy Best first search algorithm.pptx
 
Hill climbing algorithm
Hill climbing algorithmHill climbing algorithm
Hill climbing algorithm
 
P, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-HardP, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-Hard
 
Uninformed search
Uninformed searchUninformed search
Uninformed search
 
Problem solving in Artificial Intelligence.pptx
Problem solving in Artificial Intelligence.pptxProblem solving in Artificial Intelligence.pptx
Problem solving in Artificial Intelligence.pptx
 
Problems, Problem spaces and Search
Problems, Problem spaces and SearchProblems, Problem spaces and Search
Problems, Problem spaces and Search
 

Viewers also liked

Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search Strategies
Amey Kerkar
 
Ch2 3-informed (heuristic) search
Ch2 3-informed (heuristic) searchCh2 3-informed (heuristic) search
Ch2 3-informed (heuristic) searchchandsek666
 
Heuristic Search
Heuristic SearchHeuristic Search
Heuristic Searchbutest
 
Chapter 2 (final)
Chapter 2 (final)Chapter 2 (final)
Chapter 2 (final)
Nateshwar Kamlesh
 
(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 AI
Amey Kerkar
 
Optimization Heuristics
Optimization HeuristicsOptimization Heuristics
Optimization Heuristics
Kausal Malladi
 
09 heuristic search
09 heuristic search09 heuristic search
09 heuristic search
Tianlu Wang
 
Amit ppt
Amit pptAmit ppt
Amit ppt
amitp26
 
AI: AI & Searching
AI: AI & SearchingAI: AI & Searching
AI: AI & Searching
DataminingTools Inc
 
A Star Heuristic Search
A Star Heuristic SearchA Star Heuristic Search
A Star Heuristic Search
Muna Hamdi
 
Introduction iii
Introduction iiiIntroduction iii
Introduction iiichandsek666
 
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 games
Simple_Harsh
 
Artificial Intelligence in games
Artificial Intelligence in gamesArtificial Intelligence in games
Artificial Intelligence in games
DevGAMM Conference
 
simple
simplesimple
simple
avy2cess
 
Seminar "Technology Enhanced Learning" - Einheit 1
Seminar "Technology Enhanced Learning" - Einheit 1Seminar "Technology Enhanced Learning" - Einheit 1
Seminar "Technology Enhanced Learning" - Einheit 1
Martin 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
 
Technology Seminar Handout
Technology Seminar HandoutTechnology Seminar Handout
Technology Seminar Handout
Derecskei Anita
 
Jarrar: Un-informed Search
Jarrar: Un-informed SearchJarrar: Un-informed Search
Jarrar: Un-informed Search
Mustafa Jarrar
 

Viewers also liked (20)

Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search Strategies
 
Ch2 3-informed (heuristic) search
Ch2 3-informed (heuristic) searchCh2 3-informed (heuristic) search
Ch2 3-informed (heuristic) search
 
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
 
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
 
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
 
Technology Seminar Handout
Technology Seminar HandoutTechnology Seminar Handout
Technology Seminar Handout
 
Jarrar: Un-informed Search
Jarrar: Un-informed SearchJarrar: Un-informed Search
Jarrar: Un-informed Search
 

Similar to 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
 
Searching
SearchingSearching
lect03-informed-searchhhhhhhhhhhhhhhhh.pdf
lect03-informed-searchhhhhhhhhhhhhhhhh.pdflect03-informed-searchhhhhhhhhhhhhhhhh.pdf
lect03-informed-searchhhhhhhhhhhhhhhhh.pdf
TrngThunKit
 
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttktshamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
PEACENYAMA1
 
informed_search.pdf
informed_search.pdfinformed_search.pdf
informed_search.pdf
SankarTerli
 
Artificial intelligence and machine learning
Artificial intelligence and machine learningArtificial intelligence and machine learning
Artificial intelligence and machine learning
GuruKiran18
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
ashetuterefa
 
Heuristic Searching Algorithms Artificial Intelligence.pptx
Heuristic Searching Algorithms Artificial Intelligence.pptxHeuristic Searching Algorithms Artificial Intelligence.pptx
Heuristic Searching Algorithms Artificial Intelligence.pptx
Swagat Praharaj
 
3.informed search
3.informed search3.informed search
3.informed search
KONGU ENGINEERING COLLEGE
 
m4-heuristics.ppt
m4-heuristics.pptm4-heuristics.ppt
m4-heuristics.ppt
WaqarAli934582
 
Presentacion nro 1 redes y comunicaciones de datos
Presentacion nro 1 redes y comunicaciones de datosPresentacion nro 1 redes y comunicaciones de datos
Presentacion nro 1 redes y comunicaciones de datos
LuisGabrielVasquez
 
Searchadditional2
Searchadditional2Searchadditional2
Searchadditional2chandsek666
 
Pathfinding - Part 1: Α* heuristic search
Pathfinding - Part 1: Α* heuristic searchPathfinding - Part 1: Α* heuristic search
Pathfinding - Part 1: Α* heuristic search
Stavros Vassos
 
Jarrar: Informed Search
Jarrar: Informed Search  Jarrar: Informed Search
Jarrar: Informed Search
Mustafa Jarrar
 
A Star Search
A Star SearchA Star Search
A Star Search
Computing Cage
 
A Star Search
A Star SearchA Star Search
Artificial intelligence(05)
Artificial intelligence(05)Artificial intelligence(05)
Artificial intelligence(05)
Nazir Ahmed
 
Search 2
Search 2Search 2

Similar to 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
 
Artificial intelligence and machine learning
Artificial intelligence and machine learningArtificial intelligence and machine learning
Artificial intelligence and machine learning
 
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
 
Presentacion nro 1 redes y comunicaciones de datos
Presentacion nro 1 redes y comunicaciones de datosPresentacion nro 1 redes y comunicaciones de datos
Presentacion nro 1 redes y comunicaciones de datos
 
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
 

Recently uploaded

Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
Vlad Stirbu
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 

Recently uploaded (20)

Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 

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?