1 thing i always remember about dfs is "Using dfs We go to the depth of a node and then we come back"
I learned dfs from my friend and from this blog shafaetsplanet . In shafaetsplanet the algorithm is explained very easily.
Algorithm :
Basic DFS Traversal of a Graph:
Here starting node is 0.
I learned dfs from my friend and from this blog shafaetsplanet . In shafaetsplanet the algorithm is explained very easily.
Algorithm :
Basic DFS Traversal of a Graph:
Here starting node is 0.
No comments:
Post a Comment