SlideShare a Scribd company logo
1 of 45
A* PATH FINDING ALGORITHM Presented by Daniel Natapov
PROBLEM DEFINITION ,[object Object],[object Object]
APPLICATION ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
GRID = GRAPH ,[object Object],[object Object],[object Object]
EXAMPLE – GET FROM S TO T S T
EXAMPLE – EDGE WEIGHTS ,[object Object],[object Object],[object Object]
WWDD? – WHAT WOULD DIJKSTRA’S DO?  Found it! (finally) S S T
WWDD? ,[object Object],[object Object],[object Object],[object Object]
BEST-FIRST-SEARCH ,[object Object],[object Object],[object Object],[object Object]
BEST-FIRST-SEARCH EXAMPLE  S S T
HOW TO BREAK IT – OBSTACLES! S Found it! (could’ve taken a better route) S T
BEST-FIRST-SEARCH ,[object Object],[object Object],[object Object],[object Object]
A* ALGORITHM ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
WHAT’S ALL THIS TALK ABOUT ESTIMATES? ,[object Object],[object Object],[object Object],[object Object],[object Object]
MANHATTAN DISTANCE ,[object Object],[object Object]
A* EXAMPLE S T
A* EXAMPLE g = 1 h = 6 f = 7 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 1 h = 6 f = 7
A* EXAMPLE g = 1 h = 6 f = 7 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 1 h = 6 f = 7
A* EXAMPLE g = 2 h = 3 f = 5 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 1 h = 6 f = 7 g = 2 h = 5 f = 7
A* EXAMPLE g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 1 h = 6 f = 7 g = 2 h = 5 f = 7
A* EXAMPLE g = 3 h = 6 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 3 h = 6 f = 9
A* EXAMPLE g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 3 h = 6 f = 9
A* EXAMPLE g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 2 h = 7 f  = 9 g = 3 h = 6 f = 9
A* EXAMPLE g=2 h=7 f=9 g=2 h=7 f=9 g=2 h=7 f=9 g=3 h=8 f=11 g=3 h=8 f=11 g=3 h=8 f=11 g=3 h=8 f=11 g = 3 h = 6 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 2 h = 7 f  = 9 g = 3 h = 6 f = 9
A* EXAMPLE g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 3 h = 6 f = 9 g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 3 h = 8 f = 11 g = 2 h = 7 f  = 9 g = 3 h = 6 f = 9 g = 4  h = 5 f = 9
A* EXAMPLE g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 3 h = 6 f = 9 g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 3 h = 8 f = 11 g = 2 h = 7 f  = 9 g = 3 h = 6 f = 9 g = 4  h = 5 f = 9 g = 5 h = 4 f = 9
A* EXAMPLE g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 3 h = 6 f = 9 g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 6  h = 3 f = 9 g = 3 h = 8 f = 11 g = 2 h = 7 f  = 9 g = 3 h = 6 f = 9 g = 4  h = 5 f = 9 g = 5 h = 4 f = 9  g = 6 h = 3 f = 9
A* EXAMPLE g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 3 h = 6 f = 9 g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 g = 7 h = 2 f = 9 T g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 6  h = 3 f = 9 g = 7 h = 2 f = 9 g = 3 h = 8 f = 11 g = 2 h = 7 f  = 9 g = 3 h = 6 f = 9 g = 4  h = 5 f = 9 g = 5 h = 4 f = 9  g = 6 h = 3 f = 9
A* EXAMPLE g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 3 h = 6 f = 9 g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 g = 7 h = 2 f = 9 g = 8 h = 1 f = 9 T g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 6  h = 3 f = 9 g = 7 h = 2 f = 9 g = 8 h = 1 f = 9 g = 3 h = 8 f = 11 g = 2 h = 7 f  = 9 g = 3 h = 6 f = 9 g = 4  h = 5 f = 9 g = 5 h = 4 f = 9  g = 6 h = 3 f = 9
 
MORE ABOUT HEURISTICS ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
MORE ABOUT HEURISTICS CONT’D ,[object Object],[object Object],n1 goal h(n1) n2 c(n1->n2) h(n2)
FIDDLING WITH THE HEURISTIC ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
FIDDLING WITH THE HEURISTIC 2 ,[object Object],[object Object],[object Object],[object Object],[object Object]
SPEED-ACCURACY SEE-SAW g(n) h(n) Speed Accuracy
FORMAL DEFINITION ,[object Object],[object Object],[object Object],[object Object]
FORMAL DEFINITION CONT’D ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
PROOF THAT THERE IS NO BETTER PATH ,[object Object],[object Object],[object Object],[object Object],[object Object],COMPLICATED SLIDE. PAY ATTENTION!
CONFUSED? f(n) ≤  f(any) = g(any) + h(any) ≤  g(any) + actual(any) Our actual cost Any other found estimate Any other ‘actual’
WHAT IT ALL MEANS ,[object Object],[object Object],[object Object],[object Object]
RUNNING TIME ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
RUNNING TIME – DIJKSTRA’S S T Area of circle is O(L 2 )
RUNNING TIME – A* S T Area of half ellipse:   O(L∙H)
RUNNING TIME – A* S T In total: O((L/n)∙H∙n) = O(L∙H)
ALL DONE! ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

More Related Content

What's hot

I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...vikas dhakane
 
SHORTEST PATH FINDING VISUALIZER
SHORTEST PATH FINDING VISUALIZERSHORTEST PATH FINDING VISUALIZER
SHORTEST PATH FINDING VISUALIZERIRJET Journal
 
Dijkstra's Algorithm
Dijkstra's AlgorithmDijkstra's Algorithm
Dijkstra's AlgorithmArijitDhali
 
Elements of dynamic programming
Elements of dynamic programmingElements of dynamic programming
Elements of dynamic programmingTafhim Islam
 
Lecture 14 Heuristic Search-A star algorithm
Lecture 14 Heuristic Search-A star algorithmLecture 14 Heuristic Search-A star algorithm
Lecture 14 Heuristic Search-A star algorithmHema Kashyap
 
Dijkstra’s algorithm
Dijkstra’s algorithmDijkstra’s algorithm
Dijkstra’s algorithmfaisal2204
 
Ai lecture 14(unit03)
Ai lecture  14(unit03)Ai lecture  14(unit03)
Ai lecture 14(unit03)vikas dhakane
 
Informed search (heuristics)
Informed search (heuristics)Informed search (heuristics)
Informed search (heuristics)Bablu Shofi
 
An introduction to reinforcement learning
An introduction to reinforcement learningAn introduction to reinforcement learning
An introduction to reinforcement learningSubrat Panda, PhD
 
Artificial Intelligence -- Search Algorithms
Artificial Intelligence-- Search Algorithms Artificial Intelligence-- Search Algorithms
Artificial Intelligence -- Search Algorithms Syed Ahmed
 
I. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMI. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMvikas dhakane
 
Constraint Satisfaction Problem (CSP) : Cryptarithmetic, Graph Coloring, 4- Q...
Constraint Satisfaction Problem (CSP) : Cryptarithmetic, Graph Coloring, 4- Q...Constraint Satisfaction Problem (CSP) : Cryptarithmetic, Graph Coloring, 4- Q...
Constraint Satisfaction Problem (CSP) : Cryptarithmetic, Graph Coloring, 4- Q...Mahbubur Rahman
 
Forms of learning in ai
Forms of learning in aiForms of learning in ai
Forms of learning in aiRobert Antony
 
AI Greedy & A* Informed Search Strategies by Example
AI Greedy & A* Informed Search Strategies by ExampleAI Greedy & A* Informed Search Strategies by Example
AI Greedy & A* Informed Search Strategies by ExampleAhmed Gad
 
Dijkstra's Algorithm
Dijkstra's AlgorithmDijkstra's Algorithm
Dijkstra's AlgorithmTamzida_Azad
 
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.pptarunsingh660
 
Version spaces
Version spacesVersion spaces
Version spacesGekkietje
 
Address in the target code in Compiler Construction
Address in the target code in Compiler ConstructionAddress in the target code in Compiler Construction
Address in the target code in Compiler ConstructionMuhammad Haroon
 

What's hot (20)

I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
 
SHORTEST PATH FINDING VISUALIZER
SHORTEST PATH FINDING VISUALIZERSHORTEST PATH FINDING VISUALIZER
SHORTEST PATH FINDING VISUALIZER
 
Dijkstra's Algorithm
Dijkstra's AlgorithmDijkstra's Algorithm
Dijkstra's Algorithm
 
Combinatorial Optimization
Combinatorial OptimizationCombinatorial Optimization
Combinatorial Optimization
 
Elements of dynamic programming
Elements of dynamic programmingElements of dynamic programming
Elements of dynamic programming
 
Lecture 14 Heuristic Search-A star algorithm
Lecture 14 Heuristic Search-A star algorithmLecture 14 Heuristic Search-A star algorithm
Lecture 14 Heuristic Search-A star algorithm
 
Dijkstra’s algorithm
Dijkstra’s algorithmDijkstra’s algorithm
Dijkstra’s algorithm
 
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)
 
Ai lecture 14(unit03)
Ai lecture  14(unit03)Ai lecture  14(unit03)
Ai lecture 14(unit03)
 
Informed search (heuristics)
Informed search (heuristics)Informed search (heuristics)
Informed search (heuristics)
 
An introduction to reinforcement learning
An introduction to reinforcement learningAn introduction to reinforcement learning
An introduction to reinforcement learning
 
Artificial Intelligence -- Search Algorithms
Artificial Intelligence-- Search Algorithms Artificial Intelligence-- Search Algorithms
Artificial Intelligence -- Search Algorithms
 
I. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMI. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHM
 
Constraint Satisfaction Problem (CSP) : Cryptarithmetic, Graph Coloring, 4- Q...
Constraint Satisfaction Problem (CSP) : Cryptarithmetic, Graph Coloring, 4- Q...Constraint Satisfaction Problem (CSP) : Cryptarithmetic, Graph Coloring, 4- Q...
Constraint Satisfaction Problem (CSP) : Cryptarithmetic, Graph Coloring, 4- Q...
 
Forms of learning in ai
Forms of learning in aiForms of learning in ai
Forms of learning in ai
 
AI Greedy & A* Informed Search Strategies by Example
AI Greedy & A* Informed Search Strategies by ExampleAI Greedy & A* Informed Search Strategies by Example
AI Greedy & A* Informed Search Strategies by Example
 
Dijkstra's Algorithm
Dijkstra's AlgorithmDijkstra's Algorithm
Dijkstra's Algorithm
 
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
 
Version spaces
Version spacesVersion spaces
Version spaces
 
Address in the target code in Compiler Construction
Address in the target code in Compiler ConstructionAddress in the target code in Compiler Construction
Address in the target code in Compiler Construction
 

Viewers also liked

The Max Cut Problem
The Max Cut ProblemThe Max Cut Problem
The Max Cut Problemdnatapov
 
Pathfinding - Part 1: Α* heuristic search
Pathfinding - Part 1: Α* heuristic searchPathfinding - Part 1: Α* heuristic search
Pathfinding - Part 1: Α* heuristic searchStavros Vassos
 
Paper Review : a pathfinding algorithm in real time strategy game based on u...
Paper Review :  a pathfinding algorithm in real time strategy game based on u...Paper Review :  a pathfinding algorithm in real time strategy game based on u...
Paper Review : a pathfinding algorithm in real time strategy game based on u...hanaskuliah
 
Ai for games seminar: N-Grams prediction + intro to bayes inference
Ai for games seminar:  N-Grams prediction + intro to bayes inferenceAi for games seminar:  N-Grams prediction + intro to bayes inference
Ai for games seminar: N-Grams prediction + intro to bayes inferenceAndrea Tucci
 
Artificial Intelligence in Computer and Video Games
Artificial Intelligence in Computer and Video GamesArtificial Intelligence in Computer and Video Games
Artificial Intelligence in Computer and Video GamesLuke Dicken
 
Artificial intelligence In Modern-Games.
Artificial intelligence In Modern-Games. Artificial intelligence In Modern-Games.
Artificial intelligence In Modern-Games. Nitish Kavishetti
 
Artificial intelligence in gaming.
Artificial intelligence in gaming.Artificial intelligence in gaming.
Artificial intelligence in gaming.Rishikese MR
 
Amit ppt
Amit pptAmit ppt
Amit pptamitp26
 
Bfs and dfs in data structure
Bfs and dfs in  data structure Bfs and dfs in  data structure
Bfs and dfs in data structure Ankit Kumar Singh
 
Game Playing in Artificial Intelligence
Game Playing in Artificial IntelligenceGame Playing in Artificial Intelligence
Game Playing in Artificial Intelligencelordmwesh
 
AI Uninformed Search Strategies by Examples
AI Uninformed Search Strategies by ExamplesAI Uninformed Search Strategies by Examples
AI Uninformed Search Strategies by ExamplesAhmed Gad
 
Adversarial search
Adversarial searchAdversarial search
Adversarial searchNilu Desai
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligenceu053675
 

Viewers also liked (15)

M4 heuristics
M4 heuristicsM4 heuristics
M4 heuristics
 
The Max Cut Problem
The Max Cut ProblemThe Max Cut Problem
The Max Cut Problem
 
Pathfinding - Part 1: Α* heuristic search
Pathfinding - Part 1: Α* heuristic searchPathfinding - Part 1: Α* heuristic search
Pathfinding - Part 1: Α* heuristic search
 
Paper Review : a pathfinding algorithm in real time strategy game based on u...
Paper Review :  a pathfinding algorithm in real time strategy game based on u...Paper Review :  a pathfinding algorithm in real time strategy game based on u...
Paper Review : a pathfinding algorithm in real time strategy game based on u...
 
Game Paper
Game PaperGame Paper
Game Paper
 
Ai for games seminar: N-Grams prediction + intro to bayes inference
Ai for games seminar:  N-Grams prediction + intro to bayes inferenceAi for games seminar:  N-Grams prediction + intro to bayes inference
Ai for games seminar: N-Grams prediction + intro to bayes inference
 
Artificial Intelligence in Computer and Video Games
Artificial Intelligence in Computer and Video GamesArtificial Intelligence in Computer and Video Games
Artificial Intelligence in Computer and Video Games
 
Artificial intelligence In Modern-Games.
Artificial intelligence In Modern-Games. Artificial intelligence In Modern-Games.
Artificial intelligence In Modern-Games.
 
Artificial intelligence in gaming.
Artificial intelligence in gaming.Artificial intelligence in gaming.
Artificial intelligence in gaming.
 
Amit ppt
Amit pptAmit ppt
Amit ppt
 
Bfs and dfs in data structure
Bfs and dfs in  data structure Bfs and dfs in  data structure
Bfs and dfs in data structure
 
Game Playing in Artificial Intelligence
Game Playing in Artificial IntelligenceGame Playing in Artificial Intelligence
Game Playing in Artificial Intelligence
 
AI Uninformed Search Strategies by Examples
AI Uninformed Search Strategies by ExamplesAI Uninformed Search Strategies by Examples
AI Uninformed Search Strategies by Examples
 
Adversarial search
Adversarial searchAdversarial search
Adversarial search
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 

Similar to A* Path Finding

Jarrar.lecture notes.aai.2011s.ch4.informedsearch
Jarrar.lecture notes.aai.2011s.ch4.informedsearchJarrar.lecture notes.aai.2011s.ch4.informedsearch
Jarrar.lecture notes.aai.2011s.ch4.informedsearchPalGov
 
AA Section 7-5
AA Section 7-5AA Section 7-5
AA Section 7-5Jimbo Lamb
 
Algebra 2 Section 5-2
Algebra 2 Section 5-2Algebra 2 Section 5-2
Algebra 2 Section 5-2Jimbo Lamb
 
Complex analysis notes
Complex analysis notesComplex analysis notes
Complex analysis notesPrakash Dabhi
 
UNEC__1709djdjejsjdjdjsjsjsjsjüjsj657487.pptx
UNEC__1709djdjejsjdjdjsjsjsjsjüjsj657487.pptxUNEC__1709djdjejsjdjdjsjsjsjsjüjsj657487.pptx
UNEC__1709djdjejsjdjdjsjsjsjsjüjsj657487.pptxbestmorfingamer
 
10.11648.j.pamj.20170601.11
10.11648.j.pamj.20170601.1110.11648.j.pamj.20170601.11
10.11648.j.pamj.20170601.11DAVID GIKUNJU
 
Best Approximation in Real Linear 2-Normed Spaces
Best Approximation in Real Linear 2-Normed SpacesBest Approximation in Real Linear 2-Normed Spaces
Best Approximation in Real Linear 2-Normed SpacesIOSR Journals
 
Algebra 2 Section 1-1
Algebra 2 Section 1-1Algebra 2 Section 1-1
Algebra 2 Section 1-1Jimbo Lamb
 
AA Section 8-3
AA Section 8-3AA Section 8-3
AA Section 8-3Jimbo Lamb
 
module4_dynamic programming_2022.pdf
module4_dynamic programming_2022.pdfmodule4_dynamic programming_2022.pdf
module4_dynamic programming_2022.pdfShiwani Gupta
 
Ejercicios resueltos de analisis matematico 1
Ejercicios resueltos de analisis matematico 1Ejercicios resueltos de analisis matematico 1
Ejercicios resueltos de analisis matematico 1tinardo
 
Integral dalam Bahasa Inggris
Integral dalam Bahasa InggrisIntegral dalam Bahasa Inggris
Integral dalam Bahasa Inggrisimmochacha
 
newmicrosoftofficepowerpointpresentation-150826055944-lva1-app6891.pdf
newmicrosoftofficepowerpointpresentation-150826055944-lva1-app6891.pdfnewmicrosoftofficepowerpointpresentation-150826055944-lva1-app6891.pdf
newmicrosoftofficepowerpointpresentation-150826055944-lva1-app6891.pdfBiswajitPalei2
 
Specific Finite Groups(General)
Specific Finite Groups(General)Specific Finite Groups(General)
Specific Finite Groups(General)Shane Nicklas
 
Bidimensionality
BidimensionalityBidimensionality
BidimensionalityASPAK2014
 

Similar to A* Path Finding (20)

Jarrar.lecture notes.aai.2011s.ch4.informedsearch
Jarrar.lecture notes.aai.2011s.ch4.informedsearchJarrar.lecture notes.aai.2011s.ch4.informedsearch
Jarrar.lecture notes.aai.2011s.ch4.informedsearch
 
AA Section 7-5
AA Section 7-5AA Section 7-5
AA Section 7-5
 
Ans Hw Lesson 8
Ans Hw Lesson 8Ans Hw Lesson 8
Ans Hw Lesson 8
 
Some New Prime Graphs
Some New Prime GraphsSome New Prime Graphs
Some New Prime Graphs
 
Algebra 2 Section 5-2
Algebra 2 Section 5-2Algebra 2 Section 5-2
Algebra 2 Section 5-2
 
Complex analysis notes
Complex analysis notesComplex analysis notes
Complex analysis notes
 
Isomorphism
IsomorphismIsomorphism
Isomorphism
 
UNEC__1709djdjejsjdjdjsjsjsjsjüjsj657487.pptx
UNEC__1709djdjejsjdjdjsjsjsjsjüjsj657487.pptxUNEC__1709djdjejsjdjdjsjsjsjsjüjsj657487.pptx
UNEC__1709djdjejsjdjdjsjsjsjsjüjsj657487.pptx
 
10.11648.j.pamj.20170601.11
10.11648.j.pamj.20170601.1110.11648.j.pamj.20170601.11
10.11648.j.pamj.20170601.11
 
Multiplication The Complement Method
Multiplication   The Complement MethodMultiplication   The Complement Method
Multiplication The Complement Method
 
Best Approximation in Real Linear 2-Normed Spaces
Best Approximation in Real Linear 2-Normed SpacesBest Approximation in Real Linear 2-Normed Spaces
Best Approximation in Real Linear 2-Normed Spaces
 
Algebra 2 Section 1-1
Algebra 2 Section 1-1Algebra 2 Section 1-1
Algebra 2 Section 1-1
 
AA Section 8-3
AA Section 8-3AA Section 8-3
AA Section 8-3
 
module4_dynamic programming_2022.pdf
module4_dynamic programming_2022.pdfmodule4_dynamic programming_2022.pdf
module4_dynamic programming_2022.pdf
 
Ejercicios resueltos de analisis matematico 1
Ejercicios resueltos de analisis matematico 1Ejercicios resueltos de analisis matematico 1
Ejercicios resueltos de analisis matematico 1
 
FUNCTIONS L.1.pdf
FUNCTIONS L.1.pdfFUNCTIONS L.1.pdf
FUNCTIONS L.1.pdf
 
Integral dalam Bahasa Inggris
Integral dalam Bahasa InggrisIntegral dalam Bahasa Inggris
Integral dalam Bahasa Inggris
 
newmicrosoftofficepowerpointpresentation-150826055944-lva1-app6891.pdf
newmicrosoftofficepowerpointpresentation-150826055944-lva1-app6891.pdfnewmicrosoftofficepowerpointpresentation-150826055944-lva1-app6891.pdf
newmicrosoftofficepowerpointpresentation-150826055944-lva1-app6891.pdf
 
Specific Finite Groups(General)
Specific Finite Groups(General)Specific Finite Groups(General)
Specific Finite Groups(General)
 
Bidimensionality
BidimensionalityBidimensionality
Bidimensionality
 

Recently uploaded

Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 

Recently uploaded (20)

Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 

A* Path Finding

  • 1. A* PATH FINDING ALGORITHM Presented by Daniel Natapov
  • 2.
  • 3.
  • 4.
  • 5. EXAMPLE – GET FROM S TO T S T
  • 6.
  • 7. WWDD? – WHAT WOULD DIJKSTRA’S DO? Found it! (finally) S S T
  • 8.
  • 9.
  • 11. HOW TO BREAK IT – OBSTACLES! S Found it! (could’ve taken a better route) S T
  • 12.
  • 13.
  • 14.
  • 15.
  • 17. A* EXAMPLE g = 1 h = 6 f = 7 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 1 h = 6 f = 7
  • 18. A* EXAMPLE g = 1 h = 6 f = 7 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 1 h = 6 f = 7
  • 19. A* EXAMPLE g = 2 h = 3 f = 5 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 1 h = 6 f = 7 g = 2 h = 5 f = 7
  • 20. A* EXAMPLE g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 1 h = 6 f = 7 g = 2 h = 5 f = 7
  • 21. A* EXAMPLE g = 3 h = 6 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 3 h = 6 f = 9
  • 22. A* EXAMPLE g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 3 h = 6 f = 9
  • 23. A* EXAMPLE g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 2 h = 7 f = 9 g = 3 h = 6 f = 9
  • 24. A* EXAMPLE g=2 h=7 f=9 g=2 h=7 f=9 g=2 h=7 f=9 g=3 h=8 f=11 g=3 h=8 f=11 g=3 h=8 f=11 g=3 h=8 f=11 g = 3 h = 6 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 2 h = 7 f = 9 g = 3 h = 6 f = 9
  • 25. A* EXAMPLE g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 3 h = 6 f = 9 g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 3 h = 6 f = 9 g = 4 h = 5 f = 9
  • 26. A* EXAMPLE g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 3 h = 6 f = 9 g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 3 h = 6 f = 9 g = 4 h = 5 f = 9 g = 5 h = 4 f = 9
  • 27. A* EXAMPLE g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 3 h = 6 f = 9 g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 T g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 6 h = 3 f = 9 g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 3 h = 6 f = 9 g = 4 h = 5 f = 9 g = 5 h = 4 f = 9 g = 6 h = 3 f = 9
  • 28. A* EXAMPLE g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 3 h = 6 f = 9 g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 g = 7 h = 2 f = 9 T g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 6 h = 3 f = 9 g = 7 h = 2 f = 9 g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 3 h = 6 f = 9 g = 4 h = 5 f = 9 g = 5 h = 4 f = 9 g = 6 h = 3 f = 9
  • 29. A* EXAMPLE g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 3 h = 6 f = 9 g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 S g = 1 h = 4 f = 5 g = 7 h = 2 f = 9 g = 8 h = 1 f = 9 T g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 1 h = 6 f = 7 g = 2 h = 5 f = 7 g = 6 h = 3 f = 9 g = 7 h = 2 f = 9 g = 8 h = 1 f = 9 g = 3 h = 8 f = 11 g = 2 h = 7 f = 9 g = 3 h = 6 f = 9 g = 4 h = 5 f = 9 g = 5 h = 4 f = 9 g = 6 h = 3 f = 9
  • 30.  
  • 31.
  • 32.
  • 33.
  • 34.
  • 35. SPEED-ACCURACY SEE-SAW g(n) h(n) Speed Accuracy
  • 36.
  • 37.
  • 38.
  • 39. CONFUSED? f(n) ≤ f(any) = g(any) + h(any) ≤ g(any) + actual(any) Our actual cost Any other found estimate Any other ‘actual’
  • 40.
  • 41.
  • 42. RUNNING TIME – DIJKSTRA’S S T Area of circle is O(L 2 )
  • 43. RUNNING TIME – A* S T Area of half ellipse: O(L∙H)
  • 44. RUNNING TIME – A* S T In total: O((L/n)∙H∙n) = O(L∙H)
  • 45.