Processing math: 100%

5.Coding§

Huffman Coding Trees

1 / 16 Settings
<<<>>>

av_c1

32
C
42
D
120
E
7
K
42
L
24
M
37
U
2
Z
Proficient Saving... Error Saving
Server Error
Resubmit

Assigning Codes

1 / 16 Settings
<<<>>>

av_c6

Created with Raphaël 2.1.2
306
120
E
186
79
37
U
42
D
107
42
L
65
32
C
33
9
2
Z
7
K
24
M
Proficient Saving... Error Saving
Server Error
Resubmit

Using Codes

1 / 11 Settings
<<<>>>

av_c6

Created with Raphaël 2.1.2
306
120
E
186
79
37
U
42
D
107
42
L
65
32
C
33
9
2
Z
7
K
24
M
0
1
0
0
1
1
0
1
0
1
0
0
1
1
Proficient Saving... Error Saving
Server Error
Resubmit

Decoding

1 / 17 Settings
<<<>>>

av_c8

Created with Raphaël 2.1.2
E
120
L
42
C
32
M
24
U
37
D
42
Z
2
K
7
0
1
0
0
1
1
0
1
0
1
1
0
0
1
Proficient Saving... Error Saving
Server Error
Resubmit

Tree vs. Trie (1)

0 / 0 Settings
<<<>>>

We now add 18 to the tree. A split is made at 18.

Created with Raphaël 2.1.2
Created with Raphaël 2.1.2
36
18
0
70
36
18
Proficient Saving... Error Saving
Server Error
Resubmit

Tree vs. Trie (2)

0 / 0 Settings
<<<>>>

We now want to add 45. This requires two splits. The first split is at value 48.

Created with Raphaël 2.1.2
Created with Raphaël 2.1.2
32
16
48
7
19
38
0
64
38
32
19
16
7
48
Proficient Saving... Error Saving
Server Error
Resubmit