Performing Breadth First Search recursively

Posted by Nathan on Stack Overflow See other posts from Stack Overflow or by Nathan
Published on 2010-03-31T00:05:37Z Indexed on 2010/03/31 0:13 UTC
Read the original article Hit count: 682

Filed under:
|

Let's say you wanted to implement a breadth-first search of a binary tree recursively. How would you go about it?

Is it possible using only the call-stack as auxiliary storage?

© Stack Overflow or respective owner

Related posts about algorithms

Related posts about bfs