

















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!


















Step0:
(q) (w) (e) (r) (t) (y) (u)
Step1: ( ) 10 20 15 25 16 /
(q) (w) (r) (t) (u) (y) (e)
Step2: ( )
/
( ) (q) 20 15 25 16 / \
(w) (r) (t) (u) (y) (e)
Step3: ( ) /
( )31 ( ) (q) 20 25 / \ /
(w) (t) (r) (u) (y) (e)
Step3: ( )
/
( )31 ( ) (q) 20 25 / \ / \
(w) (t) (r) (u) (y) (e)
Step4 : ( ) /
( ) (w) /
( )31 ( ) (q) 25 / \ /
(t) (r) (u) (y) (e)
Step5 : ( ) /
( )56 ( ) (w) / \ /
(t) ( ) ( ) (q) / \ /
(r) (u) (y) (e)
Step6 : ( ) /
( ) ( ) / \ /
( ) (w) (t) ( ) / \ /
( ) (q) (r) (u) /
(y) (e)
root /
/ \ 8 / \ 7 / \ 6 / \ 5 / \ 4 / \ 3
1 2
Length of set is: 7+7+6+5+4+3+2+1 = 35bits
This is what you would get if the nodes vary the most in probability.