BFS is also a recursive search. Even in the case of non-recursive search, the only difference is whether you use a queue or stack.
Apart from that, great article.
Write a recursive BFS in Haskell and it won’t blow up the stack.
Java, Go, JavaScript all lack it.
BFS is also a recursive search. Even in the case of non-recursive search, the only difference is whether you use a queue or stack.
Apart from that, great article.