Practice free →
Home › Per Red Blob Games, the A* algorithm's evaluatio…

Per Red Blob Games, the A* algorithm's evaluation function is which?

Af(n) = h(n) − g(n)
Bf(n) = h(n) only
Cf(n) = g(n) + h(n)
Df(n) = g(n) × h(n)
Answer & Solution
Correct answer: C. f(n) = g(n) + h(n)
Red Blob Games A*: g = cost so far, h = heuristic estimate to goal. The frontier is sorted by f = g + h.
Solve this in the app — Practice practice & 24k+ MCQs →
Related questions