What is the difference between breadth first search and depth first search in c programming? |
[Improve]
Answer
Both algoritms can be build very similary. The difference between breadth-first search and depth-first search is order in which elements ar added to OPEN list.
In breadth-first search new nodes are appended to the end of OPEN list
In depth-first search new nodes are inserted in the begining of OPEN list
First answer by ID2088581168. Last edit by Cyberprodigy. Contributor trust: 0 [recommend contributor]. Question popularity: 19 [recommend question].



