SlideShare a Scribd company logo
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
The A* (A-star) algorithm
• The A* (A-star) algorithm is a powerful and
versatile search method used in computer
science to find the most efficient path between
nodes in a graph.
• Widely used in a variety of applications ranging
from pathfinding in video games to network
routing and AI, A* remains a foundational
technique in the field of algorithms and
artificial intelligence.
The Mechanism of A* Algorithm
• The core of the A* algorithm is based on cost functions and
heuristics. It uses two main parameters:
• g(n): The actual cost from the starting node to any node n.
• h(n): The heuristic estimated cost from node n to the goal. This is
where A* integrates knowledge beyond the graph to guide the
search.
• The sum, f(n)=g(n)+h(n)
f(n)=g(n)+h(n), represents the total estimated cost of the cheapest
solution through nnn.
The A* algorithm functions by maintaining a priority queue (or open
set) of all possible paths along the graph, prioritizing them based on
their fff values
The steps of the algorithm are as follows:
• Initialization: Start by adding the initial node to the open set with
its f(n).
• Loop: While the open set is not empty, the node with the lowest
f(n) value is removed from the queue.
• Goal Check: If this node is the goal, the algorithm terminates and
returns the discovered path.
• Node Expansion: Otherwise, expand the node (find all its
neighbors), calculating g, h, and f values for each neighbor. Add
each neighbor to the open set if it's not already present, or if a
better path to this neighbor is found.
• Repeat: The loop repeats until the goal is reached or if there are
no more nodes in the open set, indicating no available path.
Applications of A*
• The A* algorithm's ability to find the most efficient path with a
given heuristic makes it suitable for various practical applications:
• Pathfinding in Games and Robotics: A* is extensively used in the
gaming industry to control characters in dynamic environments,
as well as in robotics for navigating between points.
• Network Routing: In telecommunications, A* helps in
determining the shortest routing path that data packets should
take to reach the destination.
• AI and Machine Learning: A* can be used in planning and
decision-making algorithms, where multiple stages of decisions
and movements need to be evaluated.
• Pathfinding using A* Algorithm
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine
AI_CSE5005_M2_ASearch.pptx for the algorithm for machine

More Related Content

PPTX
A star algorithm with Pseudcode AI.pptx
PPTX
A* algorithm
PPTX
A-star Algorithm in artificial intelligence.pptx
PPTX
AI_Session 8 A searching algorithm .pptx
PPTX
AI3391 Session 10 A searching algorithm.pptx
PPTX
Heuristic Searching Algorithms Artificial Intelligence.pptx
PDF
AI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdf
PDF
A* Search Algorithm
A star algorithm with Pseudcode AI.pptx
A* algorithm
A-star Algorithm in artificial intelligence.pptx
AI_Session 8 A searching algorithm .pptx
AI3391 Session 10 A searching algorithm.pptx
Heuristic Searching Algorithms Artificial Intelligence.pptx
AI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdf
A* Search Algorithm

Similar to AI_CSE5005_M2_ASearch.pptx for the algorithm for machine (20)

PDF
What is A * Search? What is Heuristic Search? What is Tree search Algorithm?
PPTX
A Star Algorithm in Artificial intelligence
PPTX
A star
PDF
UNIT 2 - Artificial intelligence merged.pdf
PPTX
A* Algorithm
PDF
Pathfinding - Part 1: Α* heuristic search
PPTX
04 Problem Solving in AI (1)-artificial intelligence.pptx
PDF
Analysis of Pathfinding Algorithms
PPTX
heuristic technique.pptx...............................
PDF
a_star in Artificial intelligence new.pdf
PPTX
AI BEST FIRST,A-STAR,AO-STAR SEARCH.pptx
PPTX
A star algorithm in artificial intelligence
PPTX
A-Star Search(part-B) in artificial intelligence.pptx
PPTX
Unit 3 Informed Search Strategies.pptx
PPTX
potential development of the A* search algorithm specifically
PDF
Heuristic Searching: A* Search
PPT
unit-1-l3AI..........................ppt
PPT
2-Heuristic Search.ppt
PPTX
informed search.pptx
PPTX
Artificial Intelligence and Machine Learning.pptx
What is A * Search? What is Heuristic Search? What is Tree search Algorithm?
A Star Algorithm in Artificial intelligence
A star
UNIT 2 - Artificial intelligence merged.pdf
A* Algorithm
Pathfinding - Part 1: Α* heuristic search
04 Problem Solving in AI (1)-artificial intelligence.pptx
Analysis of Pathfinding Algorithms
heuristic technique.pptx...............................
a_star in Artificial intelligence new.pdf
AI BEST FIRST,A-STAR,AO-STAR SEARCH.pptx
A star algorithm in artificial intelligence
A-Star Search(part-B) in artificial intelligence.pptx
Unit 3 Informed Search Strategies.pptx
potential development of the A* search algorithm specifically
Heuristic Searching: A* Search
unit-1-l3AI..........................ppt
2-Heuristic Search.ppt
informed search.pptx
Artificial Intelligence and Machine Learning.pptx
Ad

Recently uploaded (20)

PDF
Why Today’s Brands Need ORM & SEO Specialists More Than Ever.pdf
PPTX
Prokaryotes v Eukaryotes PowerPoint.pptx
PDF
esg-supply-chain-webinar-nov2018hkhkkh.pdf
PPTX
microtomy kkk. presenting to cryst in gl
PDF
Josh Gao Strength to Strength Book Summary
PPTX
OnePlus 13R – ⚡ All-Rounder King Performance: Snapdragon 8 Gen 3 – same as iQ...
PPTX
退学买新西兰毕业证(WelTec毕业证书)惠灵顿理工学院毕业证国外证书制作
PPTX
Nervous_System_Drugs_PPT.pptxXXXXXXXXXXXXXXXXX
PPTX
AREAS OF SPECIALIZATION AND CAREER OPPORTUNITIES FOR COMMUNICATORS AND JOURNA...
PDF
Daisia Frank: Strategy-Driven Real Estate with Heart.pdf
PDF
APNCET2025RESULT Result Result 2025 2025
PDF
シュアーイノベーション採用ピッチ資料|Company Introduction & Recruiting Deck
PPTX
PE3-WEEK-3sdsadsadasdadadwadwdsdddddd.pptx
PDF
Understanding the Rhetorical Situation Presentation in Blue Orange Muted Il_2...
PPTX
Autonomic_Nervous_SystemM_Drugs_PPT.pptx
PPTX
ESD MODULE-5hdbdhbdbdbdbbdbdbbdndbdbdbdbbdbd
PPTX
Sports and Dance -lesson 3 powerpoint presentation
PPTX
_+✅+JANUARY+2025+MONTHLY+CA.pptx current affairs
PDF
Manager Resume for R, CL & Applying Online.pdf
PPTX
cse couse aefrfrqewrbqwrgbqgvq2w3vqbvq23rbgw3rnw345
Why Today’s Brands Need ORM & SEO Specialists More Than Ever.pdf
Prokaryotes v Eukaryotes PowerPoint.pptx
esg-supply-chain-webinar-nov2018hkhkkh.pdf
microtomy kkk. presenting to cryst in gl
Josh Gao Strength to Strength Book Summary
OnePlus 13R – ⚡ All-Rounder King Performance: Snapdragon 8 Gen 3 – same as iQ...
退学买新西兰毕业证(WelTec毕业证书)惠灵顿理工学院毕业证国外证书制作
Nervous_System_Drugs_PPT.pptxXXXXXXXXXXXXXXXXX
AREAS OF SPECIALIZATION AND CAREER OPPORTUNITIES FOR COMMUNICATORS AND JOURNA...
Daisia Frank: Strategy-Driven Real Estate with Heart.pdf
APNCET2025RESULT Result Result 2025 2025
シュアーイノベーション採用ピッチ資料|Company Introduction & Recruiting Deck
PE3-WEEK-3sdsadsadasdadadwadwdsdddddd.pptx
Understanding the Rhetorical Situation Presentation in Blue Orange Muted Il_2...
Autonomic_Nervous_SystemM_Drugs_PPT.pptx
ESD MODULE-5hdbdhbdbdbdbbdbdbbdndbdbdbdbbdbd
Sports and Dance -lesson 3 powerpoint presentation
_+✅+JANUARY+2025+MONTHLY+CA.pptx current affairs
Manager Resume for R, CL & Applying Online.pdf
cse couse aefrfrqewrbqwrgbqgvq2w3vqbvq23rbgw3rnw345
Ad

AI_CSE5005_M2_ASearch.pptx for the algorithm for machine

  • 2. The A* (A-star) algorithm • The A* (A-star) algorithm is a powerful and versatile search method used in computer science to find the most efficient path between nodes in a graph. • Widely used in a variety of applications ranging from pathfinding in video games to network routing and AI, A* remains a foundational technique in the field of algorithms and artificial intelligence.
  • 3. The Mechanism of A* Algorithm • The core of the A* algorithm is based on cost functions and heuristics. It uses two main parameters: • g(n): The actual cost from the starting node to any node n. • h(n): The heuristic estimated cost from node n to the goal. This is where A* integrates knowledge beyond the graph to guide the search. • The sum, f(n)=g(n)+h(n) f(n)=g(n)+h(n), represents the total estimated cost of the cheapest solution through nnn. The A* algorithm functions by maintaining a priority queue (or open set) of all possible paths along the graph, prioritizing them based on their fff values
  • 4. The steps of the algorithm are as follows: • Initialization: Start by adding the initial node to the open set with its f(n). • Loop: While the open set is not empty, the node with the lowest f(n) value is removed from the queue. • Goal Check: If this node is the goal, the algorithm terminates and returns the discovered path. • Node Expansion: Otherwise, expand the node (find all its neighbors), calculating g, h, and f values for each neighbor. Add each neighbor to the open set if it's not already present, or if a better path to this neighbor is found. • Repeat: The loop repeats until the goal is reached or if there are no more nodes in the open set, indicating no available path.
  • 5. Applications of A* • The A* algorithm's ability to find the most efficient path with a given heuristic makes it suitable for various practical applications: • Pathfinding in Games and Robotics: A* is extensively used in the gaming industry to control characters in dynamic environments, as well as in robotics for navigating between points. • Network Routing: In telecommunications, A* helps in determining the shortest routing path that data packets should take to reach the destination. • AI and Machine Learning: A* can be used in planning and decision-making algorithms, where multiple stages of decisions and movements need to be evaluated. • Pathfinding using A* Algorithm