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

More Related Content

What's hot

BackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and ExamplesBackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and ExamplesFahim Ferdous
 
Informed search (heuristics)
Informed search (heuristics)Informed search (heuristics)
Informed search (heuristics)Bablu Shofi
 
I.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AII.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AIvikas dhakane
 
Divide and Conquer - Part 1
Divide and Conquer - Part 1Divide and Conquer - Part 1
Divide and Conquer - Part 1Amrinder Arora
 
I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFI...
I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFI...I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFI...
I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFI...vikas dhakane
 
Lecture 11 Informed Search
Lecture 11 Informed SearchLecture 11 Informed Search
Lecture 11 Informed SearchHema Kashyap
 
AI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemAI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemMohammad Imam Hossain
 
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
 
I. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMI. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMvikas dhakane
 
Hill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligenceHill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligencesandeep54552
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}FellowBuddy.com
 
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
 
I. Alpha-Beta Pruning in ai
I. Alpha-Beta Pruning in aiI. Alpha-Beta Pruning in ai
I. Alpha-Beta Pruning in aivikas dhakane
 
daa-unit-3-greedy method
daa-unit-3-greedy methoddaa-unit-3-greedy method
daa-unit-3-greedy methodhodcsencet
 

What's hot (20)

BackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and ExamplesBackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and Examples
 
Informed search (heuristics)
Informed search (heuristics)Informed search (heuristics)
Informed search (heuristics)
 
I.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AII.BEST FIRST SEARCH IN AI
I.BEST FIRST SEARCH IN AI
 
Divide and Conquer - Part 1
Divide and Conquer - Part 1Divide and Conquer - Part 1
Divide and Conquer - Part 1
 
I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFI...
I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFI...I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFI...
I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFI...
 
Tsp branch and-bound
Tsp branch and-boundTsp branch and-bound
Tsp branch and-bound
 
Branch and bound
Branch and boundBranch and bound
Branch and bound
 
Lecture 11 Informed Search
Lecture 11 Informed SearchLecture 11 Informed Search
Lecture 11 Informed Search
 
A* Algorithm
A* AlgorithmA* Algorithm
A* Algorithm
 
Astar algorithm
Astar algorithmAstar algorithm
Astar algorithm
 
Branch and bound
Branch and boundBranch and bound
Branch and bound
 
5.1 greedy
5.1 greedy5.1 greedy
5.1 greedy
 
AI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemAI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction Problem
 
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
 
I. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMI. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHM
 
Hill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligenceHill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligence
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
 
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
 
I. Alpha-Beta Pruning in ai
I. Alpha-Beta Pruning in aiI. Alpha-Beta Pruning in ai
I. Alpha-Beta Pruning in ai
 
daa-unit-3-greedy method
daa-unit-3-greedy methoddaa-unit-3-greedy method
daa-unit-3-greedy method
 

Similar to 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
 
Heuristic or informed search
Heuristic or informed searchHeuristic or informed search
Heuristic or informed searchHamzaJaved64
 

Similar to 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
 
Heuristic or informed search
Heuristic or informed searchHeuristic or informed search
Heuristic or informed search
 

More from university of education,Lahore

More from university of education,Lahore (20)

Activites and Time Planning
 Activites and Time Planning Activites and Time Planning
Activites and Time Planning
 
Steganography
SteganographySteganography
Steganography
 
Classical Encryption Techniques
Classical Encryption TechniquesClassical Encryption Techniques
Classical Encryption Techniques
 
Activites and Time Planning
Activites and Time PlanningActivites and Time Planning
Activites and Time Planning
 
OSI Security Architecture
OSI Security ArchitectureOSI Security Architecture
OSI Security Architecture
 
Network Security Terminologies
Network Security TerminologiesNetwork Security Terminologies
Network Security Terminologies
 
Project Scheduling, Planning and Risk Management
Project Scheduling, Planning and Risk ManagementProject Scheduling, Planning and Risk Management
Project Scheduling, Planning and Risk Management
 
Software Testing and Debugging
Software Testing and DebuggingSoftware Testing and Debugging
Software Testing and Debugging
 
ePayment Methods
ePayment MethodsePayment Methods
ePayment Methods
 
SEO
SEOSEO
SEO
 
Enterprise Application Integration
Enterprise Application IntegrationEnterprise Application Integration
Enterprise Application Integration
 
Uml Diagrams
Uml DiagramsUml Diagrams
Uml Diagrams
 
eDras Max
eDras MaxeDras Max
eDras Max
 
RAD Model
RAD ModelRAD Model
RAD Model
 
Microsoft Project
Microsoft ProjectMicrosoft Project
Microsoft Project
 
Itertaive Process Development
Itertaive Process DevelopmentItertaive Process Development
Itertaive Process Development
 
Computer Aided Software Engineering Nayab Awan
Computer Aided Software Engineering Nayab AwanComputer Aided Software Engineering Nayab Awan
Computer Aided Software Engineering Nayab Awan
 
Lect 2 assessing the technology landscape
Lect 2 assessing the technology landscapeLect 2 assessing the technology landscape
Lect 2 assessing the technology landscape
 
system level requirements gathering and analysis
system level requirements gathering and analysissystem level requirements gathering and analysis
system level requirements gathering and analysis
 
Java Script
Java ScriptJava Script
Java Script
 

Recently uploaded

Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 

Recently uploaded (20)

Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 

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