📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

Why does graph search keep an explored set in addition to the frontier?

A. To store the goal state only
B. To increase the number of nodes expanded
C. To make the search slower
D. To avoid expanding the same state repeatedly through different paths ✅

Correct Answer: D. To avoid expanding the same state repeatedly through different paths

Explanation

Graph search records expanded states so a state reached again by a longer path is not expanded a second time.