Navigating The Frontier:: Exploration of The A Search Algorithm
Navigating The Frontier:: Exploration of The A Search Algorithm
Exploration of the
A* Search
Algorithm
DATA STRUCTURE AND ALGORITHM - Group 4
TABLE OF CONTENT
01 Problem
02 A* search algorithm
03 Real-life application
if neighbor in minHeap:
if neighbor.g < neighbor.g in minHeap:
update minHeap
else:
insert neighbor into minHeap
II. A* ALGORITHM
3. Graphical explanation:
II. A* ALGORITHM
3. Graphical explanation:
Step 1:
• a: Set the distance to the start node itself to 0 and the distance to all other nodes to
infinity.
• b: Calculate the f value for the start node and set the previous node to none/nil/null.
• c: Initialize an open list and close list which are empty initially.
Step 2: Place the start node into the open list
Step 3:
• a: Find the node with the minimum f-value in the open list and removed from the
list. Denote this node as the current node.
• b: Check if the current node is the target node or not
• c: Populate all the current node’s neighboring nodes and do following checks for
each neighboring nodes
• d: Place the current node to the close list because we have expanded this node.
Step 4: Repeat Step 3 until reaches the target node
II. A* ALGORITHM
3. Graphical explanation:
II. A* ALGORITHM
3. Graphical explanation:
II. A* ALGORITHM
3. Graphical explanation:
II. A* ALGORITHM
3. Graphical explanation:
II. A* ALGORITHM
3. Graphical explanation:
II. A* ALGORITHM
3. Graphical explanation:
II. A* ALGORITHM
3. Graphical explanation:
II. A* ALGORITHM
3. Graphical explanation:
II. A* ALGORITHM
3. Graphical explanation:
II. A* ALGORITHM
3. Graphical explanation:
II. A* ALGORITHM
3. Graphical explanation:
6. Auxiliary Space
In the worst case, we can have all the edges inside the open list, so the
required auxiliary space in the worst case is O(V), where V is the total number of
vertices/nodes.
III. REAL-LIFE
APPLICATION
III. REAL-LIFE APPLICATION
Start
End
IV. COMPARE WITH
ANOTHER ALGORITHM
IV. COMPARE WITH
ANOTHER ALGORITHM