Program Results

Note: The seed for the random functions is "20011944".

-------------- Nodes ------------------- Node: sym=a parent=None left=b right=c Node: sym=b parent=a left=None right=None Node: sym=c parent=a left=None right=d -------------- Dash Tree --------------- [0] (a) [1] ---(b) [1] ---(c) [2] ------(d) [3] ---------(e) [4] ------------(g) [4] ------------(h) [5] ---------------(i) [5] ---------------(j) [3] ---------(f) ------------ Fancy Dash Tree ----------- a |--b +--c +--d |--e | |--g | +--h | |--i | +--j +--f ---------- Balanced Dash Tree ---------- [0] (e) [1] ---(b) [2] ------(a) [2] ------(c) [3] ---------(d) [1] ---(h) [2] ------(f) [3] ---------(g) [2] ------(i) [3] ---------(j) ---------- Balanced Fancy Tree --------- e |--b | |--a | +--c | +--d +--h |--f | +--g +--i +--j