aimacode / aima-pseudocode

Pseudocode descriptions of the algorithms from Russell And Norvig's "Artificial Intelligence - A Modern Approach"
Other
868 stars 421 forks source link

Addition to BREADTH-FIRST-SEARCH algorithm AIMA4e #93

Open codefeeder opened 5 years ago

codefeeder commented 5 years ago

The current function only returns true or false depending on whether the path to the goal state is found or not. I propose to add an improvement to return the complete path from the initial state to the goal state if it exists otherwise return None.