Tree traversal: Difference between revisions

Content deleted Content added
incorrect order for "in-order" is corrected from A,B,C,D,E,F,G,H,I to correct one A,B,C,D,E,F,H,I,G
Tag: Reverted
Undid revision 1135897823 by Bart tyc (talk): green-position visit order is G,H,I
Line 18:
[[File:Sorted binary tree ALL RGB.svg|thumb|293px|Depth-first traversal (dotted path) of a binary tree:{{ubl
| ''Pre-order (node visited at position red {{colorbull|#FF0000|round|size=180}})'':{{br}}     F, B, A, D, C, E, G, I, H;
| ''In-order (node visited at position green {{colorbull|#00FF00|round|size=180}})'':{{br}}     A, B, C, D, E, F, HG, IH, GI;
| ''Post-order (node visited at position blue {{colorbull|#2A7FFF|round|size=180}})'':{{br}}     A, C, E, D, B, H, I, G, F.
}}]]