BFS to find any string accepted
56
Queue Visited
Curr
0
1
2
4 3
0
2
3
3
For this problem, goal = accepting state,
The info is the string to get us there.
“bb” “bc”
“ca”
“cb”
“cc”
Repeat until goal is met
curr, info = dequeue from queue
if curr is not in visited
add curr to visited
for each v where curr->v
enqueue v, newinfo