List the two important key points of depth first search.
3 years ago
Data Structure and Algorithm
- If path exists from one node to another node, walk across the edge – exploring the edge.
- If path does not exist from one specific node to any other node, return to the previous node where we have been before –backtracking.
Sanisha Maharjan
Jan 23, 2022