A Algorithm (A-Star) A Dijkstra's Algorithm Greedy Best-First Search
A Algorithm (A-Star) A Dijkstra's Algorithm Greedy Best-First Search
Key Features:
How A* Works:
1. It begins at the start node and calculates the total cost f(n)f(n)f(n)
for neighboring nodes.
2. It keeps exploring the node with the lowest f(n)f(n)f(n) value.
3. Once it reaches the goal node, it has found the shortest path.
4. Nodes are expanded based on both the cost it took to get there and
the estimated future cost to the goal, balancing between
exploration and optimization.
Advantages:
• A* is complete (it will find a solution if one exists).
• A* is optimal (it finds the least-cost path if the heuristic function
h(n)h(n)h(n) is admissible, meaning it never overestimates the true
cost).
Use Cases:
Example:
Key Features:
AO* Steps:
Advantages:
Use Cases:
• Problem-solving in AI planning.
• Expert systems.
• Hierarchical decision-making problems.
Comparison Between A* and AO*:
4o