Академический Документы
Профессиональный Документы
Культура Документы
Compressiong Coding
Entropy coding, adalah teknik kompresi yang coding, menggunakan proses lossless Source coding, adalah teknik kompresi dengan coding, menggunakan proses lossy Hybrid coding, adalah teknik kompresi dengan coding, menggunakan kombinasi teknik di atas
Compressiong Coding
Run Length Coding
Information Theory
Dirumuskan oleh Claude Elwood Shannon yang mendefinisikan suatu kuantitas yang disebut
Entropy Encoding
Prediction Transformation
Huffman Coding Arithmetic Coding DPCM DM FFT DCT Bit Position Layered Coding Subsampling Sub-band Coding SubVector Quantization JPEG MPEG H.261 DVI RTV , DVI PLV
Source Coding
i(A) = logb
= - logb P(A)
Hybrid Coding
Restyandito - 3
Restyandito - 4
Information Theory
Berapa banyaknya informasi yang terdapat pada peristiwa melemparkan sebuah koin?
Information Theory
i(AB) = logb
1 P (AB)
i(AB) = logb
= logb
+ logb
1 P(B)
= i(A) + i(B)
Restyandito - 5
Restyandito - 6
Restyandito, S.Kom,MSIS
Entropy
Rata-rata dari self-information yang berasosiasi Rataselfdengan serangkaian peristiwa Jumlah bit terkecil yang dibutuhkan untuk merepresentasikan suatu simbol
H = 3 P(Ai) i(Ai) i(A) = - logb P(A)
Entropy
Hitunglah entropy dari serangkaian data berikut:
1 2 3 2 3 4 5 4 5 6 7 8 9 8 9 10
Restyandito - 7
Restyandito - 8
Rata-Rata
Efisiensi dari suatu metode kompresi dihitung dari rasio entropy (H) dibanding dengan rata-rata ratajumlah bit / simbol
Rata-Rata
Hitunglah rata-rata jumlah bit/simbol yang diperlukan untuk ratamengirimkan suatu file teks, jika terdapat 6 buah karakter dalam teks tersebut (M,F,Y,N,O,I) dengan frekuensi kejadian masing-masing (0,25 ; 0,25 ; 0,125 ; 0,125 ; 0,125 masing; 0,125) Pengkodean yang dihasilkan dari kompresi tersebut: M = 10 , F = 11 , Y = 010 , N = 011 , O = 000 , I = 001
Restyandito - 9
Restyandito - 10
Shannon-Fano Coding
1.
Shannon-Fano Coding
5.
Start with a set of n symbols with known probabilities (frequencies) of occurence Arranged the symbols in descending order of their probabilities Divided the set of symbols into two subsets that have the same (or almost) probabilities Assigned the first subset a symbol 0 and the other a symbol 1
Restyandito - 11
Each subset is then recursively divided into two When a subset contains just two symbols, their codes are distinguished by adding one more bit to each Continues until no more subsets remain
2.
6.
3.
7.
4.
Restyandito - 12
Restyandito, S.Kom,MSIS
Shannon-Fano Coding
CONTOH: Tentukan simbol untuk kompresi data berikut:
Shannon-Fano Coding
LATIHAN: Tentukan simbol untuk kompresi data berikut:
Prob.
A1 0,25 A2 0,25 A3 0,125 A4 0,125 A5 0,125 A6 0,125
Langkah
0 0 1 1 1 1 0 1 0 0 1 1 0 1 0 1
Simbol
0 0 1 1 1 1 0 1 0 0 0 1 0 1 0 1
P(A1) = 0,25 P(A2) = 0,20 P(A3) = 0,15 P(A4) = 0,15 P(A5) = 0,10 P(A6) = 0,10 P(A7) = 0,05
Restyandito - 13
Restyandito - 14
Huffman Coding
1.
Huffman Coding
4.
Building a list of all the symbols in descending order of their probabilities Constructs a tree with a symbol at every leaf from the bottom up At each step the two symbols with the smallest probabilities are selected, added to the top of the partial tree, deleted from the list, and replaced with an auxiliary symbol representing both of them
Restyandito - 15
When the list is reduced to just one auxiliary symbol, the tree is complete The tree is traversed to determine the codes of the symbols
2.
5.
3.
Restyandito - 16
Huffman Coding
CONTOH: Tentukan simbol untuk kompresi data berikut:
A1 0,4 A2 0,2 A3 0,2 A4 0,1 A5 0,1 0 0 1 0,2 0 0 1 1 0,4 0,6 1,0 0 1 0 1 1 0 1 1 1 0 1 1 1 1
Huffman Coding
LATIHAN: Buatlah Huffman Tree untuk 8 buah simbol berikut:
P(A) = 1/30 P(B) = 1/30 P(C) = 1/30 P(D) = 2/30 P(E) = 3/30 P(F) = 5/30 P(G) = 5/30 P(H) = 12/30
Restyandito, S.Kom,MSIS
Huffman Decoding
A1 A2 A3 A4 A5 3. 1 0 1 0 1 0 1 0 1. 1001100111 A4 A2 A5 A1 2.
Restyandito - 19
If it is present, the encoder sends the current codeword for the character in the normal way. If it is not, the the encoder sends the current codeword for the empty leaf If the character is already present in the tree, then the frequency of occurrence
5.
Restyandito - 21
Restyandito - 22
BUKU ACUAN
Hallsal, F, 2001, Multimedia Communications Applications, Networks, Protocols and Standards, Standards, Addison-Wesley (p. 124-134) Addison124Sayood, K, 2006, Introduction to Data Compression, Morgan Kaufmann Pub. (p. Compression, 13-80) 13Metode Statistik Kompresi Data Restyandito - 23 Salomon, D, 2000, Data Compression, The
TERIMAKASIH
Restyandito, S.Kom,MSIS