Търсене в ширина (Breadth-first)
breadth_first([Path|Queue],Goal,FinalPath):-
extend(Path,NewPaths),
append(Queue, NewPaths, NewQueue),
breadth_first(NewQueue,Goal,FinalPath).
Previous slide
Next slide
Back to first slide
View graphic version