Tree traversal: Difference between revisions

Content deleted Content added
Undid revision 1135708632 by 223.178.212.103 (talk)
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
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, G, H, I, G;
| ''Post-order (node visited at position blue {{colorbull|#2A7FFF|round|size=180}})'':{{br}}     A, C, E, D, B, H, I, G, F.
}}]]