📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

What is the evaluation function f(n) used by A* search?

A. f(n) = g(n) + h(n) ✅
B. f(n) = g(n) - h(n)
C. f(n) = h(n) only
D. f(n) = g(n) x h(n)

Correct Answer: A. f(n) = g(n) + h(n)

Explanation

A* expands the node with the lowest f(n), the sum of the cost so far and the estimated cost to the goal.