















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















1
2
Property: A binary tree with N internal nodes has 2N links: N-1 links to internal nodes and N+1 links to external nodes.
Internal links: 8 External links: 10
external link
internal link
4
5
7
external node
internal node
8
10
p->L = t; // attach the new leaf p->LTH = child;
p
t
1
11
p->L = t; // attach the new leaf p->LTH = child;
p
t
1
2
13
p->L = t; // attach the new leaf p->LTH = child;
p
t
1
2 3
4
14
p
t
1
2 3
4
5
16
17
19
Follow right thread to 14
20