Re:Space Requirements for Tree Traversal
by faragon on Sunday October 09, 2016 @01:29PM
(#12672212)
For Red-Black tree (balanced tree) preorder/inorder/postorder traversal, which involves depth first scan, 2 * log(n) additional space is required ([1]).
[1] Here is an example, look for st_tr_aux() function: https://github.com/faragon/libsrt/blob/master/src/stree.c