SlideShare une entreprise Scribd logo
1  sur  25
“A* Search in Artificial
Intelligence”
By:
Sohaib Saleem
To:
Resp. Inam-ul-Haq
By Sohaib Chaudhery,UE Okara Campus! 1
Uniform Cost Search
 Uniform Cost is a blind search algorithm that is optimal according to any specified path
length function.
 Do not have additional info about states beyond problem def.
 Total search space is looked for solution
 No info is used to determine preference of one child over other.
 Example: 1. Breadth First Search(BFS), Depth First Search(DFS), Depth Limited
Search (DLS).
A
B
C
E
D HF
G
State Space without any extra information associated with each state
By Sohaib Chaudhery,UE Okara Campus! 2
Informed/Heuristic Search
 Some info about problem space(heuristic) is used to compute
preference among the children for exploration and expansion.
 Examples: 1. Best First Search, 2. Problem Decomposition, A*,
Mean end Analysis
 The assumption behind blind search is that we have no way of
telling whether a particular search direction is likely to lead us to
the goal or not
 The key idea behind informed or heuristic search algorithms is to
exploit a task specific measure of goodness to try to either reach
the goal more quickly or find a more desirable goal state.
 Heuristic: From the Greek for “find”, “discover”.By Sohaib Chaudhery,UE Okara Campus! 3
Informed/Heuristic Search(conti…)
 Heuristic function:
 It maps each state to a numerical value which depicts goodness of a node.
 H(n)=value
 Where ,
 H() is a heuristic function and ‘n’ is the current state.
 Ex: in travelling salesperson problem heuristic value associated with each
node(city) might reflect estimated distance of the current node from the goal
node.
 The heuristic we use here is called HSLD Straight line Distance heuristic.
By Sohaib Chaudhery,UE Okara Campus! 4
A* Search
 A* search is a combination of lowest-cost-first and best-first searches that
considers both path cost and heuristic information in its selection of which path
to expand.
 For each path on the frontier, A* uses an estimate of the total path cost from a
start node to a goal node constrained to start along that path.
 It uses cost(p), the cost of the path found, as well as the heuristic function h(p),
the estimated path cost from the end of p to the goal.
 For any path p on the frontier, define f(p)=cost(p)+h(p). This is an estimate of
the total path cost to follow path p then go to a goal node.
 If n is the node at the end of path p, this can be depicted as follows:
actual estimate
start ------------> n --------------------> goal
cost(p) h(p)
-------------------------------------------->
f(p)
By Sohaib Chaudhery,UE Okara Campus! 5
A * Search(conti…)
 It is best-known form of Best First search. It avoids expanding paths that are
already expensive, but expands most promising paths first.
 Idea: minimize the total estimated solution cost
 f(n) = g(n) + h(n),
where
 g(n) the cost (so far) to reach the node
 h(n) estimated cost to get from the node to the goal
 f(n) estimated total cost of path through n to goal. It is implemented using
priority queue by increasing f(n).
 Minimize the total path cost to reach the goal.
 A* is complete, optimal, and optimally efficient among all optimal search
algorithms.
By Sohaib Chaudhery,UE Okara Campus! 6
A * Search(conti…)
At S we observe that the best node is A with a value of 4 so we
move to 4.
By Sohaib Chaudhery,UE Okara Campus! 7
A * Search(conti…)
By Sohaib Chaudhery,UE Okara Campus! 8
A * Search(conti…)
By Sohaib Chaudhery,UE Okara Campus! 9
A * Search(conti…)
Now we move to D from S.
By Sohaib Chaudhery,UE Okara Campus! 10
A * Search(conti…)
By Sohaib Chaudhery,UE Okara Campus! 11
A * Search(conti…)
By Sohaib Chaudhery,UE Okara Campus! 12
A * Search(conti…)
By Sohaib Chaudhery,UE Okara Campus! 13
A * Search(conti…)
By Sohaib Chaudhery,UE Okara Campus! 14
A* Search Example: Romania tour
By Sohaib Chaudhery,UE Okara Campus! 15
A* Search Example: Romania tour
By Sohaib Chaudhery,UE Okara Campus! 16
A* Search Example: Romania tour
By Sohaib Chaudhery,UE Okara Campus! 17
A* Search Example: Romania tour
By Sohaib Chaudhery,UE Okara Campus! 18
A* Search Example: Romania tour
By Sohaib Chaudhery,UE Okara Campus! 19
A* Search Example: Romania tour
By Sohaib Chaudhery,UE Okara Campus! 20
Search Terminology
 Problem Space − It is the environment in which the search takes place. (A set of
states and set of operators to change those states)
 Problem Instance − It is Initial state + Goal state.
 Problem Space Graph − It represents problem state. States are shown by nodes and
operators are shown by edges.
 Depth of a problem − Length of a shortest path or shortest sequence of operators
from Initial State to goal state.
 Space Complexity − The maximum number of nodes that are stored in memory.
 Time Complexity − The maximum number of nodes that are created.
 Admissibility − A property of an algorithm to always find an optimal solution.
 Branching Factor − The average number of child nodes in the problem space graph.
 Depth − Length of the shortest path from initial state to goal state.
By Sohaib Chaudhery,UE Okara Campus! 21
Admissible heuristics
 A heuristic h(n) is admissible if for every
node n, h(n) ≤ h*(n), where h*(n) is the
true cost to reach the goal state from n
 e.g., Straight-Line Distance
 an admissible heuristic never overestimates the
cost to reach the goal, i.e., it is optimistic
 THEOREM: If h(n) is admissible, A* using
Tree-Search is optimal
By Sohaib Chaudhery,UE Okara Campus! 22
Optimality of A*
A* expands nodes in order of increasing f value
By Sohaib Chaudhery,UE Okara Campus! 23
Evaluation: A* search
□ Complete
■ Yes
□ Optimal
■ Yes
□ Space
■ Keeps all nodes in memory
□ Time
■ Exponential
By Sohaib Chaudhery,UE Okara Campus! 24
Thank-You
By Sohaib Chaudhery,UE Okara Campus! 25

Contenu connexe

Tendances

Presentation on Breadth First Search (BFS)
Presentation on Breadth First Search (BFS)Presentation on Breadth First Search (BFS)
Presentation on Breadth First Search (BFS)Shuvongkor Barman
 
Bellman Ford's Algorithm
Bellman Ford's AlgorithmBellman Ford's Algorithm
Bellman Ford's AlgorithmTanmay Baranwal
 
Informed search (heuristics)
Informed search (heuristics)Informed search (heuristics)
Informed search (heuristics)Bablu Shofi
 
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.pptxAsst.prof M.Gokilavani
 
Shortest path algorithm
Shortest path algorithmShortest path algorithm
Shortest path algorithmsana younas
 
Dijkstra s algorithm
Dijkstra s algorithmDijkstra s algorithm
Dijkstra s algorithmmansab MIRZA
 
Depth first search [dfs]
Depth first search [dfs]Depth first search [dfs]
Depth first search [dfs]DEEPIKA T
 
Minimum spanning tree
Minimum spanning treeMinimum spanning tree
Minimum spanning treeSTEFFY D
 
Graph traversal-BFS & DFS
Graph traversal-BFS & DFSGraph traversal-BFS & DFS
Graph traversal-BFS & DFSRajandeep Gill
 
Breadth first search and depth first search
Breadth first search and  depth first searchBreadth first search and  depth first search
Breadth first search and depth first searchHossain Md Shakhawat
 
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
 
Dijkstra’S Algorithm
Dijkstra’S AlgorithmDijkstra’S Algorithm
Dijkstra’S Algorithmami_01
 
Heuristic or informed search
Heuristic or informed searchHeuristic or informed search
Heuristic or informed searchHamzaJaved64
 
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 searchHema Kashyap
 
Dfs presentation
Dfs presentationDfs presentation
Dfs presentationAlizay Khan
 
Artificial Intelligence -- Search Algorithms
Artificial Intelligence-- Search Algorithms Artificial Intelligence-- Search Algorithms
Artificial Intelligence -- Search Algorithms Syed Ahmed
 

Tendances (20)

Presentation on Breadth First Search (BFS)
Presentation on Breadth First Search (BFS)Presentation on Breadth First Search (BFS)
Presentation on Breadth First Search (BFS)
 
Dijkstra's Algorithm
Dijkstra's Algorithm Dijkstra's Algorithm
Dijkstra's Algorithm
 
Bellman Ford's Algorithm
Bellman Ford's AlgorithmBellman Ford's Algorithm
Bellman Ford's Algorithm
 
Informed search (heuristics)
Informed search (heuristics)Informed search (heuristics)
Informed search (heuristics)
 
BFS
BFSBFS
BFS
 
Bellman ford algorithm
Bellman ford algorithmBellman ford algorithm
Bellman ford algorithm
 
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
 
Shortest path algorithm
Shortest path algorithmShortest path algorithm
Shortest path algorithm
 
Dijkstra s algorithm
Dijkstra s algorithmDijkstra s algorithm
Dijkstra s algorithm
 
Depth first search [dfs]
Depth first search [dfs]Depth first search [dfs]
Depth first search [dfs]
 
Minimum spanning tree
Minimum spanning treeMinimum spanning tree
Minimum spanning tree
 
Graph traversal-BFS & DFS
Graph traversal-BFS & DFSGraph traversal-BFS & DFS
Graph traversal-BFS & DFS
 
Breadth first search and depth first search
Breadth first search and  depth first searchBreadth first search and  depth first search
Breadth first search and depth first search
 
Bfs and dfs in data structure
Bfs and dfs in  data structure Bfs and dfs in  data structure
Bfs and dfs in data structure
 
Dijkstra’S Algorithm
Dijkstra’S AlgorithmDijkstra’S Algorithm
Dijkstra’S Algorithm
 
Informed search
Informed searchInformed search
Informed search
 
Heuristic or informed search
Heuristic or informed searchHeuristic or informed search
Heuristic or informed search
 
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
 
Dfs presentation
Dfs presentationDfs presentation
Dfs presentation
 
Artificial Intelligence -- Search Algorithms
Artificial Intelligence-- Search Algorithms Artificial Intelligence-- Search Algorithms
Artificial Intelligence -- Search Algorithms
 

Similaire à A Star Search

What is A * Search? What is Heuristic Search? What is Tree search Algorithm?
What is A * Search? What is Heuristic Search? What is Tree search Algorithm?What is A * Search? What is Heuristic Search? What is Tree search Algorithm?
What is A * Search? What is Heuristic Search? What is Tree search Algorithm?Santosh Pandeya
 
lecture 6 AI - A star.pdf
lecture 6 AI - A star.pdflecture 6 AI - A star.pdf
lecture 6 AI - A star.pdfHassanElalfy4
 
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttktshamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttktPEACENYAMA1
 
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
 
09_Informed_Search.ppt
09_Informed_Search.ppt09_Informed_Search.ppt
09_Informed_Search.pptrnyau
 
Informed search (bst)
Informed search (bst)Informed search (bst)
Informed search (bst)radhika puri
 
Informed Search.pptx
Informed Search.pptxInformed Search.pptx
Informed Search.pptxMohanKumarP34
 
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
 
2-Heuristic Search.ppt
2-Heuristic Search.ppt2-Heuristic Search.ppt
2-Heuristic Search.pptMIT,Imphal
 
Search problems in Artificial Intelligence
Search problems in Artificial IntelligenceSearch problems in Artificial Intelligence
Search problems in Artificial Intelligenceananth
 
informed_search.pdf
informed_search.pdfinformed_search.pdf
informed_search.pdfSankarTerli
 
Searchadditional2
Searchadditional2Searchadditional2
Searchadditional2chandsek666
 
Heuristic Searching Algorithms Artificial Intelligence.pptx
Heuristic Searching Algorithms Artificial Intelligence.pptxHeuristic Searching Algorithms Artificial Intelligence.pptx
Heuristic Searching Algorithms Artificial Intelligence.pptxSwagat Praharaj
 
Jarrar: Informed Search
Jarrar: Informed Search  Jarrar: Informed Search
Jarrar: Informed Search Mustafa Jarrar
 

Similaire à A Star Search (20)

What is A * Search? What is Heuristic Search? What is Tree search Algorithm?
What is A * Search? What is Heuristic Search? What is Tree search Algorithm?What is A * Search? What is Heuristic Search? What is Tree search Algorithm?
What is A * Search? What is Heuristic Search? What is Tree search Algorithm?
 
Final slide (bsc csit) chapter 5
Final slide (bsc csit) chapter 5Final slide (bsc csit) chapter 5
Final slide (bsc csit) chapter 5
 
3.informed search
3.informed search3.informed search
3.informed search
 
lecture 6 AI - A star.pdf
lecture 6 AI - A star.pdflecture 6 AI - A star.pdf
lecture 6 AI - A star.pdf
 
Search 2
Search 2Search 2
Search 2
 
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttktshamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
shamwari dzerwendo.mmmmmmfmmfmfkksrkrttkt
 
Artificial intelligence(06)
Artificial intelligence(06)Artificial intelligence(06)
Artificial intelligence(06)
 
Artificial intelligence(06)
Artificial intelligence(06)Artificial intelligence(06)
Artificial intelligence(06)
 
09_Informed_Search.ppt
09_Informed_Search.ppt09_Informed_Search.ppt
09_Informed_Search.ppt
 
Informed search (bst)
Informed search (bst)Informed search (bst)
Informed search (bst)
 
Informed Search.pptx
Informed Search.pptxInformed Search.pptx
Informed Search.pptx
 
AIw06.pptx
AIw06.pptxAIw06.pptx
AIw06.pptx
 
Searching
SearchingSearching
Searching
 
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
 
2-Heuristic Search.ppt
2-Heuristic Search.ppt2-Heuristic Search.ppt
2-Heuristic Search.ppt
 
Search problems in Artificial Intelligence
Search problems in Artificial IntelligenceSearch problems in Artificial Intelligence
Search problems in Artificial Intelligence
 
informed_search.pdf
informed_search.pdfinformed_search.pdf
informed_search.pdf
 
Searchadditional2
Searchadditional2Searchadditional2
Searchadditional2
 
Heuristic Searching Algorithms Artificial Intelligence.pptx
Heuristic Searching Algorithms Artificial Intelligence.pptxHeuristic Searching Algorithms Artificial Intelligence.pptx
Heuristic Searching Algorithms Artificial Intelligence.pptx
 
Jarrar: Informed Search
Jarrar: Informed Search  Jarrar: Informed Search
Jarrar: Informed Search
 

Plus de Computing Cage

Software Project Management chapter-1
Software Project Management chapter-1Software Project Management chapter-1
Software Project Management chapter-1Computing Cage
 
Introduction to Object Oriented Design
Introduction to Object Oriented DesignIntroduction to Object Oriented Design
Introduction to Object Oriented DesignComputing Cage
 
Introduction to Network Security
Introduction to Network SecurityIntroduction to Network Security
Introduction to Network SecurityComputing Cage
 
Software Testing & Debugging
Software Testing & DebuggingSoftware Testing & Debugging
Software Testing & DebuggingComputing Cage
 
System Integration & Build Management
System Integration & Build ManagementSystem Integration & Build Management
System Integration & Build ManagementComputing Cage
 
Search Engine Optimization
Search Engine OptimizationSearch Engine Optimization
Search Engine OptimizationComputing Cage
 
Assessing Technology Landscape
Assessing Technology LandscapeAssessing Technology Landscape
Assessing Technology LandscapeComputing Cage
 
System Level Requirements Gathering
System Level Requirements GatheringSystem Level Requirements Gathering
System Level Requirements GatheringComputing Cage
 
Enterprise Application Integration
Enterprise Application IntegrationEnterprise Application Integration
Enterprise Application IntegrationComputing Cage
 

Plus de Computing Cage (13)

Software Project Management chapter-1
Software Project Management chapter-1Software Project Management chapter-1
Software Project Management chapter-1
 
Overview of tcp ip
Overview of tcp ipOverview of tcp ip
Overview of tcp ip
 
Introduction to Object Oriented Design
Introduction to Object Oriented DesignIntroduction to Object Oriented Design
Introduction to Object Oriented Design
 
Introduction to Network Security
Introduction to Network SecurityIntroduction to Network Security
Introduction to Network Security
 
Software Testing & Debugging
Software Testing & DebuggingSoftware Testing & Debugging
Software Testing & Debugging
 
Sample slides 2
Sample slides 2Sample slides 2
Sample slides 2
 
Sample slides 1
Sample slides 1Sample slides 1
Sample slides 1
 
System Integration & Build Management
System Integration & Build ManagementSystem Integration & Build Management
System Integration & Build Management
 
Software Architecture
Software ArchitectureSoftware Architecture
Software Architecture
 
Search Engine Optimization
Search Engine OptimizationSearch Engine Optimization
Search Engine Optimization
 
Assessing Technology Landscape
Assessing Technology LandscapeAssessing Technology Landscape
Assessing Technology Landscape
 
System Level Requirements Gathering
System Level Requirements GatheringSystem Level Requirements Gathering
System Level Requirements Gathering
 
Enterprise Application Integration
Enterprise Application IntegrationEnterprise Application Integration
Enterprise Application Integration
 

Dernier

Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
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
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
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
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
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
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 

Dernier (20)

Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
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
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
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)
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
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
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 

A Star Search

  • 1. “A* Search in Artificial Intelligence” By: Sohaib Saleem To: Resp. Inam-ul-Haq By Sohaib Chaudhery,UE Okara Campus! 1
  • 2. Uniform Cost Search  Uniform Cost is a blind search algorithm that is optimal according to any specified path length function.  Do not have additional info about states beyond problem def.  Total search space is looked for solution  No info is used to determine preference of one child over other.  Example: 1. Breadth First Search(BFS), Depth First Search(DFS), Depth Limited Search (DLS). A B C E D HF G State Space without any extra information associated with each state By Sohaib Chaudhery,UE Okara Campus! 2
  • 3. Informed/Heuristic Search  Some info about problem space(heuristic) is used to compute preference among the children for exploration and expansion.  Examples: 1. Best First Search, 2. Problem Decomposition, A*, Mean end Analysis  The assumption behind blind search is that we have no way of telling whether a particular search direction is likely to lead us to the goal or not  The key idea behind informed or heuristic search algorithms is to exploit a task specific measure of goodness to try to either reach the goal more quickly or find a more desirable goal state.  Heuristic: From the Greek for “find”, “discover”.By Sohaib Chaudhery,UE Okara Campus! 3
  • 4. Informed/Heuristic Search(conti…)  Heuristic function:  It maps each state to a numerical value which depicts goodness of a node.  H(n)=value  Where ,  H() is a heuristic function and ‘n’ is the current state.  Ex: in travelling salesperson problem heuristic value associated with each node(city) might reflect estimated distance of the current node from the goal node.  The heuristic we use here is called HSLD Straight line Distance heuristic. By Sohaib Chaudhery,UE Okara Campus! 4
  • 5. A* Search  A* search is a combination of lowest-cost-first and best-first searches that considers both path cost and heuristic information in its selection of which path to expand.  For each path on the frontier, A* uses an estimate of the total path cost from a start node to a goal node constrained to start along that path.  It uses cost(p), the cost of the path found, as well as the heuristic function h(p), the estimated path cost from the end of p to the goal.  For any path p on the frontier, define f(p)=cost(p)+h(p). This is an estimate of the total path cost to follow path p then go to a goal node.  If n is the node at the end of path p, this can be depicted as follows: actual estimate start ------------> n --------------------> goal cost(p) h(p) --------------------------------------------> f(p) By Sohaib Chaudhery,UE Okara Campus! 5
  • 6. A * Search(conti…)  It is best-known form of Best First search. It avoids expanding paths that are already expensive, but expands most promising paths first.  Idea: minimize the total estimated solution cost  f(n) = g(n) + h(n), where  g(n) the cost (so far) to reach the node  h(n) estimated cost to get from the node to the goal  f(n) estimated total cost of path through n to goal. It is implemented using priority queue by increasing f(n).  Minimize the total path cost to reach the goal.  A* is complete, optimal, and optimally efficient among all optimal search algorithms. By Sohaib Chaudhery,UE Okara Campus! 6
  • 7. A * Search(conti…) At S we observe that the best node is A with a value of 4 so we move to 4. By Sohaib Chaudhery,UE Okara Campus! 7
  • 8. A * Search(conti…) By Sohaib Chaudhery,UE Okara Campus! 8
  • 9. A * Search(conti…) By Sohaib Chaudhery,UE Okara Campus! 9
  • 10. A * Search(conti…) Now we move to D from S. By Sohaib Chaudhery,UE Okara Campus! 10
  • 11. A * Search(conti…) By Sohaib Chaudhery,UE Okara Campus! 11
  • 12. A * Search(conti…) By Sohaib Chaudhery,UE Okara Campus! 12
  • 13. A * Search(conti…) By Sohaib Chaudhery,UE Okara Campus! 13
  • 14. A * Search(conti…) By Sohaib Chaudhery,UE Okara Campus! 14
  • 15. A* Search Example: Romania tour By Sohaib Chaudhery,UE Okara Campus! 15
  • 16. A* Search Example: Romania tour By Sohaib Chaudhery,UE Okara Campus! 16
  • 17. A* Search Example: Romania tour By Sohaib Chaudhery,UE Okara Campus! 17
  • 18. A* Search Example: Romania tour By Sohaib Chaudhery,UE Okara Campus! 18
  • 19. A* Search Example: Romania tour By Sohaib Chaudhery,UE Okara Campus! 19
  • 20. A* Search Example: Romania tour By Sohaib Chaudhery,UE Okara Campus! 20
  • 21. Search Terminology  Problem Space − It is the environment in which the search takes place. (A set of states and set of operators to change those states)  Problem Instance − It is Initial state + Goal state.  Problem Space Graph − It represents problem state. States are shown by nodes and operators are shown by edges.  Depth of a problem − Length of a shortest path or shortest sequence of operators from Initial State to goal state.  Space Complexity − The maximum number of nodes that are stored in memory.  Time Complexity − The maximum number of nodes that are created.  Admissibility − A property of an algorithm to always find an optimal solution.  Branching Factor − The average number of child nodes in the problem space graph.  Depth − Length of the shortest path from initial state to goal state. By Sohaib Chaudhery,UE Okara Campus! 21
  • 22. Admissible heuristics  A heuristic h(n) is admissible if for every node n, h(n) ≤ h*(n), where h*(n) is the true cost to reach the goal state from n  e.g., Straight-Line Distance  an admissible heuristic never overestimates the cost to reach the goal, i.e., it is optimistic  THEOREM: If h(n) is admissible, A* using Tree-Search is optimal By Sohaib Chaudhery,UE Okara Campus! 22
  • 23. Optimality of A* A* expands nodes in order of increasing f value By Sohaib Chaudhery,UE Okara Campus! 23
  • 24. Evaluation: A* search □ Complete ■ Yes □ Optimal ■ Yes □ Space ■ Keeps all nodes in memory □ Time ■ Exponential By Sohaib Chaudhery,UE Okara Campus! 24