Discussion
Why does uniform cost search apply the goal test on expansion rather than generation?
Answer: B
A goal node may be generated by an expensive path while a cheaper route to it is still on the frontier, so returning it immediately would break optimality. Testing when the node is selected for expansion guarantees no cheaper path remains. Breadth first can safely test on generation because all edges cost the same. A small implementation detail that determines whether a guarantee holds is exactly the kind of thing worth being precise about. Most errors here come from carrying a result across from a neighbouring case where it does not hold.
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development