I can't figure out the algorithm to traverse a BST non-recursively. I know it involves a Stack, but I can't figure out where to go from there without using recursion. Help? I'm looking especially for one in somewhat specific pseudo-code - specifically I'm implementing this in Java.
2006-10-06
17:15:22
·
5 answers
·
asked by
Anonymous
3
in
Computers & Internet
➔ Programming & Design
I didn't ask for your advice on what to use, I asked for a non-recursive algorithm. Specifically, it's because there's something added into this assignment to force you to use a non-recursive algorithm.
2006-10-06
17:20:28 ·
update #1
The algorithm isn't the assignment, it's just required to continue the assignment. Everyone else has one from a previous assignment to copy/paste, I missed that day.
2006-10-06
17:31:31 ·
update #2