simbol P(s)
Lakukan proses kompresi menggunakan arithmetic encoding
A 0.25 untuk string
B 0.1 ’CABE’ NPM ganjil
C 0.2 ’BECA’ NPM genap
D 0.15
E 0.3