So my professor in college gave us a quiz, using Breadth-First Search , I answered this question as follows:-
S -> {A,B} -> {C,D,E} -> {G2}
since we found the goal then we stop , so the answer is d(otherwise)
however the professor gave us the answer as b.
Can anyone explain why and how to solve this type of questions ?
