Question:

Consider the following graph with heuristic values: Which of the following represents the correct order of node expansion using the A* search algorithm?

Show Hint

A* search uses a combination of actual cost (\( g(n) \)) and heuristic (\( h(n) \)) to find the most optimal path efficiently.
Updated On: Feb 15, 2025
  • S, E, A, C, B, D, G
  • S, A, B, E, C, D, G
  • S, A, E, B, C, D, G
  • S, A, E, C, B, D, G
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

A* search algorithm follows the path with the lowest cost function: \[ f(n) = g(n) + h(n) \] where:
- \( g(n) \) is the cost from the start node to \( n \).
- \( h(n) \) is the heuristic estimate from \( n \) to the goal.
Steps:
1. Start from \( S \), expand node with the lowest \( f(n) \).
2. Expand \( A \) (cost 4) and \( E \) (cost 1).
3. Since \( E \) has the lower \( f(n) \), expand \( E \) first.
4. Continue expanding the node with the best \( f(n) \) until reaching \( G \).
Following these rules, the correct expansion order is S, A, E, B, C, D, G. Conclusion: The correct answer is (3) S, A, E, B, C, D, G based on A* search expansion.
Was this answer helpful?
0
0