The document discusses various informed search algorithms including A*, greedy search, and uniform cost search. It provides instructional objectives for learning about heuristic functions, designing heuristics for problems, and comparing heuristic functions. Key aspects of A* search are summarized, including that it uses an admissible heuristic function to find optimal solutions, and conditions like admissibility and consistency that guarantee its optimality.
Abstract: This PDSG workship introduces basic concepts on Greedy and A-STAR search. Examples are given pictorially, as pseudo code and in Python.
Level: Fundamental
Requirements: Should have prior familiarity with Graph Search. No prior programming knowledge is required.
Abstract: This PDSG workship introduces basic concepts on Greedy and A-STAR search. Examples are given pictorially, as pseudo code and in Python.
Level: Fundamental
Requirements: Should have prior familiarity with Graph Search. No prior programming knowledge is required.
These slides are part of a course about interactive objects in games. The lectures cover some of the most widely used methodologies that allow smart objects and non-player characters (NPCs) to exhibit autonomy and flexible behavior through various forms of decision making, including techniques for pathfinding, reactive behavior through automata and processes, and goal-oriented action planning. More information can be found here: http://tinyurl.com/sv-intobj-2013
High-dimensional polytopes defined by oracles: algorithms, computations and a...Vissarion Fisikopoulos
The processing and analysis of high dimensional geometric data plays a fundamental role in disciplines of science and engineering. A systematic framework to study these problems has been developing in the research area of discrete and computational geometry. This Phd thesis studies problems in this area. The fundamental geometric objects of our study are high dimensional convex polytopes defined byan oracle.The contribution of the thesis is threefold. First, the design and analysis of geometric algorithms for problems concerning high-dimensional convex polytopes, such as convex hull and volume computation and their applications to computational algebraic geometry and optimization. Second, the establishment of combinatorial characterization results for essential polytope families. Third, the implementation and experimental analysis of the proposed algorithms and methods
These slides are part of a course about interactive objects in games. The lectures cover some of the most widely used methodologies that allow smart objects and non-player characters (NPCs) to exhibit autonomy and flexible behavior through various forms of decision making, including techniques for pathfinding, reactive behavior through automata and processes, and goal-oriented action planning. More information can be found here: http://tinyurl.com/sv-intobj-2013
Global Optimization with Descending Region AlgorithmLoc Nguyen
Global optimization is necessary in some cases when we want to achieve the best solution or we require a new solution which is better the old one. However global optimization is a hazard problem. Gradient descent method is a well-known technique to find out local optimizer whereas approximation solution approach aims to simplify how to solve the global optimization problem. In order to find out the global optimizer in the most practical way, I propose a so-called descending region (DR) algorithm which is combination of gradient descent method and approximation solution approach. The ideology of DR algorithm is that given a known local minimizer, the better minimizer is searched only in a so-called descending region under such local minimizer. Descending region is begun by a so-called descending point which is the main subject of DR algorithm. Descending point, in turn, is solution of intersection equation (A). Finally, I prove and provide a simpler linear equation system (B) which is derived from (A). So (B) is the most important result of this research because (A) is solved by solving (B) many enough times. In other words, DR algorithm is refined many times so as to produce such (B) for searching for the global optimizer. I propose a so-called simulated Newton – Raphson (SNR) algorithm which is a simulation of Newton – Raphson method to solve (B). The starting point is very important for SNR algorithm to converge. Therefore, I also propose a so-called RTP algorithm, which is refined and probabilistic process, in order to partition solution space and generate random testing points, which aims to estimate the starting point of SNR algorithm. In general, I combine three algorithms such as DR, SNR, and RTP to solve the hazard problem of global optimization. Although the approach is division and conquest methodology in which global optimization is split into local optimization, solving equation, and partitioning, the solution is synthesis in which DR is backbone to connect itself with SNR and RTP.
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...RahulSharma4566
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admissible & Non-admissible
Hi Friends,
I am Rahul Sharma, Welcome to my Youtube channel Digital Wave, Segment- Artificial Intelligence
In this artificial Intelligence Tutorial video I have explained about Heuristic Search in Artificial Intelligence, After watching this video you will be able to provide possible solutions in Artificial Intelligence.
Artificial Intelligence - Heuristic Search
Heuristic Search
Artificial Intelligence
artificial intelligence and Expert Systems
artificial intelligence
Artificial Intelligence Tutorials in hindi
Artificial Intelligence Video Tutorials
Artificial Intelligence Course
Heuristic Search
state space representation
initial state
goal state
search techniques
formal description
ordered pairs
Benefits of artificial intelligence
Artificial intelligence future
Who started AI?
Where is Artificial Intelligence used?
What is the disadvantage of Artificial Intelligence?
Types of artificial intelligence
gate exam Preparations
Machine Learning
Gate exam 2021 Question Bank
Gate exam 2022 Question Bank
PSU Exam 2021
PSU Exam2022
#HeuristicSearchinartificialintelligence
#HeuristicSearchinAI
#HeuristicFunctioninAI
#Admissible
#HeuristicSearchinhindi
#HeuristicSearching
#nonadmissiblefunction
#digitalwave
#MachineLearning
#nonadmissibleHeuristicfunction
#admissibleHeuristicfunction
#GameplayingProblemsinAI
#gameplayingprobleminartificialintelligence
#ArtificialIntelligencekyahai
#ArtificialIntelligenceTutorial
#ArtificialIntelligenceCourse
#MachineLearning
#ExamPreparation
#GateExam2022
#PSUExam2022
#Rahulsharma
#gateexamPreparations
#MachineLearning
#Gateexam2021QuestionBank
#Gateexam2022QuestionBank
#PSUExam2021
#GTUEXAM
#RTUEXAM
#TechnicalPAPER
#WhoisFatherofAI
These slides are part of a course about interactive objects in games. The lectures cover some of the most widely used methodologies that allow smart objects and non-player characters (NPCs) to exhibit autonomy and flexible behavior through various forms of decision making, including techniques for pathfinding, reactive behavior through automata and processes, and goal-oriented action planning. More information can be found here: http://tinyurl.com/sv-intobj-2013
High-dimensional polytopes defined by oracles: algorithms, computations and a...Vissarion Fisikopoulos
The processing and analysis of high dimensional geometric data plays a fundamental role in disciplines of science and engineering. A systematic framework to study these problems has been developing in the research area of discrete and computational geometry. This Phd thesis studies problems in this area. The fundamental geometric objects of our study are high dimensional convex polytopes defined byan oracle.The contribution of the thesis is threefold. First, the design and analysis of geometric algorithms for problems concerning high-dimensional convex polytopes, such as convex hull and volume computation and their applications to computational algebraic geometry and optimization. Second, the establishment of combinatorial characterization results for essential polytope families. Third, the implementation and experimental analysis of the proposed algorithms and methods
These slides are part of a course about interactive objects in games. The lectures cover some of the most widely used methodologies that allow smart objects and non-player characters (NPCs) to exhibit autonomy and flexible behavior through various forms of decision making, including techniques for pathfinding, reactive behavior through automata and processes, and goal-oriented action planning. More information can be found here: http://tinyurl.com/sv-intobj-2013
Global Optimization with Descending Region AlgorithmLoc Nguyen
Global optimization is necessary in some cases when we want to achieve the best solution or we require a new solution which is better the old one. However global optimization is a hazard problem. Gradient descent method is a well-known technique to find out local optimizer whereas approximation solution approach aims to simplify how to solve the global optimization problem. In order to find out the global optimizer in the most practical way, I propose a so-called descending region (DR) algorithm which is combination of gradient descent method and approximation solution approach. The ideology of DR algorithm is that given a known local minimizer, the better minimizer is searched only in a so-called descending region under such local minimizer. Descending region is begun by a so-called descending point which is the main subject of DR algorithm. Descending point, in turn, is solution of intersection equation (A). Finally, I prove and provide a simpler linear equation system (B) which is derived from (A). So (B) is the most important result of this research because (A) is solved by solving (B) many enough times. In other words, DR algorithm is refined many times so as to produce such (B) for searching for the global optimizer. I propose a so-called simulated Newton – Raphson (SNR) algorithm which is a simulation of Newton – Raphson method to solve (B). The starting point is very important for SNR algorithm to converge. Therefore, I also propose a so-called RTP algorithm, which is refined and probabilistic process, in order to partition solution space and generate random testing points, which aims to estimate the starting point of SNR algorithm. In general, I combine three algorithms such as DR, SNR, and RTP to solve the hazard problem of global optimization. Although the approach is division and conquest methodology in which global optimization is split into local optimization, solving equation, and partitioning, the solution is synthesis in which DR is backbone to connect itself with SNR and RTP.
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admi...RahulSharma4566
Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admissible & Non-admissible
Hi Friends,
I am Rahul Sharma, Welcome to my Youtube channel Digital Wave, Segment- Artificial Intelligence
In this artificial Intelligence Tutorial video I have explained about Heuristic Search in Artificial Intelligence, After watching this video you will be able to provide possible solutions in Artificial Intelligence.
Artificial Intelligence - Heuristic Search
Heuristic Search
Artificial Intelligence
artificial intelligence and Expert Systems
artificial intelligence
Artificial Intelligence Tutorials in hindi
Artificial Intelligence Video Tutorials
Artificial Intelligence Course
Heuristic Search
state space representation
initial state
goal state
search techniques
formal description
ordered pairs
Benefits of artificial intelligence
Artificial intelligence future
Who started AI?
Where is Artificial Intelligence used?
What is the disadvantage of Artificial Intelligence?
Types of artificial intelligence
gate exam Preparations
Machine Learning
Gate exam 2021 Question Bank
Gate exam 2022 Question Bank
PSU Exam 2021
PSU Exam2022
#HeuristicSearchinartificialintelligence
#HeuristicSearchinAI
#HeuristicFunctioninAI
#Admissible
#HeuristicSearchinhindi
#HeuristicSearching
#nonadmissiblefunction
#digitalwave
#MachineLearning
#nonadmissibleHeuristicfunction
#admissibleHeuristicfunction
#GameplayingProblemsinAI
#gameplayingprobleminartificialintelligence
#ArtificialIntelligencekyahai
#ArtificialIntelligenceTutorial
#ArtificialIntelligenceCourse
#MachineLearning
#ExamPreparation
#GateExam2022
#PSUExam2022
#Rahulsharma
#gateexamPreparations
#MachineLearning
#Gateexam2021QuestionBank
#Gateexam2022QuestionBank
#PSUExam2021
#GTUEXAM
#RTUEXAM
#TechnicalPAPER
#WhoisFatherofAI
Types of inference engines
As Expert Systems evolved many new techniques were incorporated into various types of inference engines. Some of the most important of these were:
Truth Maintenance.
Hypothetical Reasoning.
Fuzzy Logic.
Ontology Classification.
As Expert Systems evolved many new techniques were incorporated into various types of inference engines. Some of the most important of these were:
Truth Maintenance.
Hypothetical Reasoning.
Fuzzy Logic.
Ontology Classification.
As Expert Systems evolved many new techniques were incorporated into various types of inference engines. Some of the most important of these were:
Truth Maintenance.
Hypothetical Reasoning.
Fuzzy Logic.
Ontology Classification.
As Expert Systems evolved many new techniques were incorporated into various types of inference engines. Some of the most important of these were:
Truth Maintenance.
Hypothetical Reasoning.
Fuzzy Logic.
Ontology Classification.
As Expert Systems evolved many new techniques were incorporated into various types of inference engines. Some of the most important of these were:
Truth Maintenance.
Hypothetical Reasoning.
Fuzzy Logic.
Ontology Classification.
As Expert Systems evolved many new techniques were incorporated into various types of inference engines. Some of the most important of these were:
Truth Maintenance.
Hypothetical Reasoning.
Fuzzy Logic.
Ontology Classification.
As Expert Systems evolved many new techniques were incorporated into various types of inference engines. Some of the most important of these were:
Truth Maintenance.
Hypothetical Reasoning.
Fuzzy Logic.
Ontology Classification.
As Expert Systems evolved many new techniques were incorporated into various types of inference engines. Some of the most important of these were:
Truth Maintenance.
Hypothetical Reasoning.
Fuzzy Logic.
Ontology Classification.
As Expert Systems evolved many new techniques were incorporated into various types of inference engines. Some of the most important of these were:
Truth Maintenance.
Hypothetical Reasoning.
Fuzzy Logic.
Ontology Classification.
As Expert Systems evolved many new techniques were incorporated into various types of inference engines. Some of the most important of these were:
Truth Maintenance.
Hypothetical Reasoning.
Fuzzy Logic.
Ontology Classification.
Truth Maintenance.
Hypothetical Reasoning.
Fuzzy Logic.
Ontology ClassificationTruth Maintenance.
Hypothetical Reasoning.
Fuzzy Logic.
Ontology ClassificationTruth Maintenance.
Hypothetical Reasoning.
Fuzzy Logic.
Ontology ClassificationTruth Maintenance.
Hypothetical Reasoning.
Fuzzy Logic.
Ontology ClassificationTruth Maintenance.
Hypothetical Reasoning.
Fuzzy Logic.
Ontology ClassificationTruth Maintenance.
Hypothetical Reasoning.
Fuzzy Logic.
Ontology Classification
Safalta Digital marketing institute in Noida, provide complete applications that encompass a huge range of virtual advertising and marketing additives, which includes search engine optimization, virtual communication advertising, pay-per-click on marketing, content material advertising, internet analytics, and greater. These university courses are designed for students who possess a comprehensive understanding of virtual marketing strategies and attributes.Safalta Digital Marketing Institute in Noida is a first choice for young individuals or students who are looking to start their careers in the field of digital advertising. The institute gives specialized courses designed and certification.
for beginners, providing thorough training in areas such as SEO, digital communication marketing, and PPC training in Noida. After finishing the program, students receive the certifications recognised by top different universitie, setting a strong foundation for a successful career in digital marketing.
Introduction to AI for Nonprofits with Tapp NetworkTechSoup
Dive into the world of AI! Experts Jon Hill and Tareq Monaur will guide you through AI's role in enhancing nonprofit websites and basic marketing strategies, making it easy to understand and apply.
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
Model Attribute Check Company Auto PropertyCeline George
In Odoo, the multi-company feature allows you to manage multiple companies within a single Odoo database instance. Each company can have its own configurations while still sharing common resources such as products, customers, and suppliers.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Francesca Gottschalk - How can education support child empowerment.pptxEduSkills OECD
Francesca Gottschalk from the OECD’s Centre for Educational Research and Innovation presents at the Ask an Expert Webinar: How can education support child empowerment?
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdfTechSoup
In this webinar you will learn how your organization can access TechSoup's wide variety of product discount and donation programs. From hardware to software, we'll give you a tour of the tools available to help your nonprofit with productivity, collaboration, financial management, donor tracking, security, and more.
A Strategic Approach: GenAI in EducationPeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
2. Instructional Objectives
• The students will learn the following strategies
for informed search:
– A*
– Greedy search
– Uniform Cost Search
2AI, Subash Chandra Pakhrin
3. Instructional Objectives
• At the end of this lesson the student should be
able to do the following:
– Understand what is a heuristic function.
– They should be able to design heuristic functions
for a given problem.
– They should be able to determine if A* uses an
admissible heuristic function, it will produce an
optimum solution.
– They should learn how to compare two heuristic
functions.
3AI, Subash Chandra Pakhrin
4. Informed Search
• We have seen un-informed search methods
that systematically explore the state space and
find the goal.
• Inefficient in most cases
• Informed search methods use problem
specific knowledge, are more efficient
4AI, Subash Chandra Pakhrin
5. Heuristics
• “Heuristics are criteria, methods or principles
for deciding which among several alternatives
course of action promises to be the most
effective in order to achieve some goal”
Judea Pearl
Can we use heuristics to identify the most
promising search path
5AI, Subash Chandra Pakhrin
6. Heuristic Distance
• The distance as the crow fly between two
places even though there is no road that goes
between those two places.
• Being close is actually not a good thing
because it may result in dead end.
AI, Subash Chandra Pakhrin 6
3
S
G
D
E
B
A
C
5
4
4
6
3
5
7+
6
7+
7. Heuristic Distance
• Objective of enlisted search algorithm is to be
close to the goal.
– Hill Climbing
– Beam Search
• When Beam Search value (b) = 2
AI, Subash Chandra Pakhrin 7
C B A D
Reject
Keep Keep
Reject
8. Remember
• FRINGE: Nodes not yet expanded
• CLOSED: Nodes that are expanded
AI, Subash Chandra Pakhrin 8
9. Branch and Bound
AI, Subash Chandra Pakhrin 9
S
A B
B D
C G
A C
D E
3 5
7
1111 12 15
996
C, D, E need not be
extended any
further because
their accumulated
length so far is less
than or equal to the
length of the goal
10. Branch and Bound + Extended List
• Don’t extend the node
which has been
extended
• Saved some work
because no extension
• Vast area of tree has
been pruned away
and don’t have to be
examined at all
AI, Subash Chandra Pakhrin 10
S
A B
B D
G
A C
E
3 5
7
11 15
996
11. Example of Heuristic Function
• A heuristic function at a node n is an estimate of
the optimum cost from the current node to a
goal. Denoted by h(n)
h(n) = estimated cost of the cheapest path from
node n to a goal node
• Example
– Want path from Kathmandu to Delhi
– Heuristic from Kathmandu may be straight – line
distance between Kathmandu to Delhi
– H(Kathmandu) = Euclidean Distance (Kathmandu,
Delhi)
11AI, Subash Chandra Pakhrin
12. Heuristics - example
8 – puzzle: Number of tiles out of place
12AI, Subash Chandra Pakhrin
h1(n) = 5
h1(n) = 5; is an underestimate of the actual
number of states to move into goal state
13. Heuristics - example
8-puzzle: Manhattan Distance (distance tile is out of
place)
13AI, Subash Chandra Pakhrin
h2(n) = 6; is an underestimate of the actual number of
move required to move from initial state to goal state
h n(n) = max{h1(n), h2(n)}= 6
14. Best – First Search
Priority queue of nodes to be explored
Cost function f(n) applied to each node
AI, Subash Chandra Pakhrin 14
5
A
B
C
D
3 1
E F
4 6HG
5
7
I J
STEP 1:
CLOSED: A
OPEN: BCD
STEP 2: D expanded
CLOSED: AD
OPEN: BCEF
15. Best – First Search
Let Fringe be a priority queue containing the initial state
LOOP
if Fringe is empty return failure
Node <- remove-first (Fringe)
if Node is a goal
then return the path from initial state to Node
else generate all successors of Node, and
put the newly generated nodes into fringe
according to their f values
End LOOP
AI, Subash Chandra Pakhrin 15
16. Greedy Search
• Idea: Expand node with the smallest
estimated cost to reach the goal
• Use heuristic function f(n) = h(n)
– Not optimal
– Incomplete
AI, Subash Chandra Pakhrin 16
20. A* Search
• Hart, Nilsson & Rafael 1968
– Best first search with f(n) = g(n) + h(n)
– Where g(n) = sum of edge cost from start to n
– And h(n) = estimate of lowest cost path from node n
to goal
– If h(n) is admissible then search will find optimal
solution.
• A* = Branch and Bound + Extended List +
Admissible Heuristic
AI, Subash Chandra Pakhrin 20
21. Consistency ( Monotonicity )
• A heuristic is said to be consistent if for any
node N and any successor N’ of N , estimated
cost to reach to the goal from node N is less
than the sum of step cost from N to N’ and
estimated cost from node N’ to goal node.
h(n) ≤ c(n, n’) + h(n’)
Where;
h(n) = Estimated cost to reach to the goal node from
node n
• c(n, n’) = actual cost from n to n’
AI, Subash Chandra Pakhrin 21
22. Admissible
• 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.
• 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.
AI, Subash Chandra Pakhrin 22
23. Optimality of A* (Proof)
• Suppose some suboptimal goal G2 has been
generated and is in the fringe. Let n be an
unexpanded node in the fringe such that n is on a
shortest path to an optimal goal G.
We want to prove:
f(n) < f(G2)
(then A* will prefer n over G2)
f (G2) = g(G2) since h(G2) = 0
g(G2) > g(G) since G2 is suboptimal
f(G) = g(G) since h(G) = 0
f(G2) > f (G) from aboveAI, Subash Chandra Pakhrin 23
24. Optimality of A* (Proof)
f(G2) > f(G) (from above)
h(n) ≤ h*(n), (since h is admissible(under –
estimate))
g(n) + h(n) ≤ g(n) + h*(n)
Since g(n) + h(n) = f(n) &
g(n) + h*(n) = f(G)
f(n) ≤ f(G) < f (G2)
Hence f (G2) > f(n), and A* will never select G2 for
expansion
• Therefore A* does find the optimal solutionAI, Subash Chandra Pakhrin 24
25. Theorem: If h(n) is consistent , then the values of f(n)
along the path are non-decreasing.
• A heuristic is consistent (or monotonic) if for
every node n, every successor n' of n
generated by any action a:
h(n) ≤ c(n, a, n’) + h(n’)
• If h is consistent, we have:
f(n’) = g(n’) + h(n’)
= g(n) + c(n, a, n’) + h(n’)
≥ g(n) + h(n) = f(n)
i.e., f(n) is non-decreasing along any path.
Theorem: If h(n) is consistent, A* using GRAPH-
SEARCH is optimal
AI, Subash Chandra Pakhrin 25
Triangle Inequality
26. A* Search
Lower Bound on the path (crow fly) =
Accumulated Distance + Airline Distance
*** Forget Everything Use the concept of Airline
Distance ***
AI, Subash Chandra Pakhrin 26
S
G
D
E
B
A
C
5
4
4
6
3
5
7+
6
7+
3
27. A* Search
AI, Subash Chandra Pakhrin 27
S
A B
B D
G
A C
3 + 7+ = 10+
7 + 6 = 13
6 + 5 = 11
5 + 6 = 11
9 + 7+ = 16+
11 + 0 = 11
9 + 7+ = 16+
Tie: Lexically Least
31. Algorithm A* (graphs)
OPEN = nodes on frontier. CLOSED = expanded nodes.
OPEN = {<s, nil>}
While OPEN is not empty
remove from OPEN the node <n, p> with minimum f(n)
place <n, p> on CLOSED
if n is a goal node, return success (path p)
for each edge connecting n & m with cost c
if <m, q> is on CLOSED and { p| e} is cheaper than q
then remove n from CLOSED, put <m, { p | e} > on OPEN
else if <m, q> is on OPEN and {p| e} is cheaper than q
then replace q with {p| e}
else if m is not on OPEN put <m, {p| e} > on OPEN
Return failure
AI, Subash Chandra Pakhrin 31
32. A* Search
• Optimal – optimally efficient
• Complete
• Number of nodes searched still exponential in
the worst case
AI, Subash Chandra Pakhrin 32
33. Admissible Heuristics
• An admissible heuristic is one that never
overestimates the cost to reach the goal.
AI, Subash Chandra Pakhrin 33
S
C
A
B
G
1
1
10
1
100
100
0
0
The graph satisfy admissibility but does not satisfy consistency
Estimated Distance {H( x , G)} ≤ Actual Distance {D(x , G)}
| H( x , G) - H( y , G)| ≤ D ( x , y)
34. A*
AI, Subash Chandra Pakhrin 34
S
G
C
BB
C
1+0 = 1
11+0 = 11
111+0 = 111
1+100 = 101
2+0 = 2
Do not extend C because it has been extended
37. A* Search
• Admissibility: Provided a solution exists, the
first solution found is an optimal solution
• Condition for admissibility
– State space graph
• Every node has a finite number of successors
• Every arc in the graph has a cost greater than some є > 0
– Heuristic function
• For every node n, h(n) < h*(n)
AI, Subash Chandra Pakhrin 37
38. Admissibility of A*
• A* is optimally efficient for a given heuristic of the
optimal search algorithms that expand search
paths from the root node, it can be shown that no
other optimal algorithm will expand fewer nodes
and find a solution
• Monotone heuristic: along any path the f - cost
never decreases.
– If this property does not hold we can use the following
trick ( m is a child of n)
f(m) = max ( f(n), g(m)+h(m))
AI, Subash Chandra Pakhrin 38
39. Completeness of A*
• Let G be an optimum goal state.
• A* cannot reach a goal state only if there are
infinitely many nodes where f(n) ≤ f*
• Can only happen if either happens:
– A node with infinite branching factor
– A path with finite cost but infinitely many nodes
• Thus A* is complete.
AI, Subash Chandra Pakhrin 39
40. Optimality
• Lemma: A* expands nodes in order of increasing f
value.
• Gradually adds “f-contours” of nodes.
• Contour I has all nodes with f= f i, where f i< fi+1.
• That is to say, nodes inside a given contour have
f-costs less than or equal to contour value.
AI, Subash Chandra Pakhrin 40
41. Maze Traversal (for A* Search)
Problem: To get from square A3 to
square E2, one step at a time,
avoiding obstacles (black squares).
Operators: (in order)
Go left(n), Go down(n), Go right(n)
Each operator costs 1.
Heuristic: Manhattan distance
• Start Position: A3
• Goal: E2
AI, Subash Chandra Pakhrin 41
43. Using multiple heuristics
• Suppose you have identified a number of non-
overestimating heuristics for a problem:
h1(n), h2(n), … , h k(n)
Then
max (h1(n), h2(n), … , h k(n))
Is a more powerful non-overestimating
heuristic.
AI, Subash Chandra Pakhrin 43
Editor's Notes
Admissible: Underestimates cost of any solution which can reached from node
Triangle Inequality Theorem. The sum of the lengths of any two sides of a triangle is greater than the length of the third side.
Graph Search : keeps all checked nodes in memory to avoid repeated states