In a search tree, it is easy to search for any value. For other trees in which the children of a node are not ordered in any particular way, you can use a breadth-first traversal, as described for graphs, to find a path from the root to some other node (vertex) v. Implement such a method for a general tree.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here