Binary Tree

HEROCYMA




Keterangan :
H         : Root
E         : Dikiri
                        E < H = Dikiri
R         : Dikanan
                        R > H = Dikanan
O         : Dikiri
                        O > H = Dikanan
                        O < R = Dikiri
C         : Dikiri
                        C < H = Dikiri
                        C < E = Dikiri
Y         : Dikanan
                        Y > H = Dikanan
                        Y > R = Dikanan
M         : Dikiri
                        M > H = Dikanan
                        M < R = Dikiri
                        M < O = Dikiri
A         : Dikiri
                        A < H = Dikiri
                        A < E = Dikiri
                        A < C = Dikiri

Note :
Root                            : H
Leaf                            : A,M,Y
Parent (C)                  : E
Child (R)                    : O,Y
Sibling (Y)                 : O
Ancestor (M)             : O,R,H
Descendent (E)        : C,A
Path (H - A)               : H > E > C > A
Size                            : 8

Height                        : 4

Komentar

Postingan populer dari blog ini

Cara Membuat Aritmatika dengan Javascript

Graph Berbobot (Weighted Graph)