|
-
April 6th, 2010, 10:17 AM
#3
Re: A question regarding DFS
Thanks for your explaination.
 Originally Posted by Zachm
DFS is a general search algorithm for graphs, not just for trees, and as such, it needs to be informed which nodes have already been visited since it might be possible to reach the same node several times from different paths.
The implementation you suggested only fits binary trees, and won't work for any general graph.
Regards,
Zachm
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|