1. Home
  2. Computer Science MCQs
  3. Artificial Intelligence (AI) and Machine Learning (ML)
  4. The A* search algorithm ranks nodes using which evaluation…

Added 2 Nov 2026

The A* search algorithm ranks nodes using which evaluation function?

  1. f(n) = g(n) − h(n)
  2. f(n) = g(n) only
  3. f(n) = h(n) only
  4. f(n) = g(n) + h(n) Correct answer

Correct answer

D. f(n) = g(n) + h(n)

18 views

MCQSEXAM

Explanation

A* adds the path cost so far, g(n), to a heuristic estimate of the remaining cost, h(n). With an admissible heuristic it finds the optimal path. Using h(n) alone is greedy best-first search, and g(n) alone is uniform-cost search.

Reference

Asked in: GATE CS, AI Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Artificial Intelligence (AI) and Machine Learning (ML) MCQs

Practise all Artificial Intelligence (AI) and Machine Learning (ML) MCQs

Similar MCQs