









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Some concept of Data Structures are Abstract, Balance Factor, Complete Binary Tree, Dynamically, Storage, Implementation, Sequential Search, Advanced Data Structures, Graph Coloring Two, Insertion Sort. Main points of this lecture are: Data Compression Two, Information, Volume, Storages, Communication Bandwidth, Networks, Transmission, Entropy Encoding, Run-Length Encoding, Compression Principles
Typology: Slides
1 / 17
This page cannot be seen from the preview
Don't miss anything!










1
2
4
Entropy Encoding Run-length encoding Lossless & Independent of the type of source information Used when the source information comprises long substrings of the same character or binary digit (string or bit pattern, # of occurrences), as FAX e.g) 000000011111111110000011…… ⇒ 0,7 1, 10, 0,5 1,2…… ⇒ 7,10,5,2……
5
Entropy Encoding Statistical encoding Based on the probability of occurrence of a pattern The more probable, the shorter codeword “Prefix property”: a shorter codeword must not form the start of a longer codeword
7 E.g) symbols M(10), F(11), Y(010), N(011), 0(000), 1(001) with probabilities 0.25, 0.25, 0.125, 0.125, 0.125, 0. H’ = Σ i = 6 N i P i = (2(2×0.25) + 4(3×0.125)) = 2. bits/codeword H = -Σ i = 6 P i log 2 P i = - (2(0.25log 2 0.25) + 4(0.125log 2 0.125)) = 2. E = H/H’ =100 % 3-bit/codeword if we use fixed-length codewords for six symbols
8
10
11
13
14
16
Huffman (Code) Tree Given : a number of symbols (or characters) and their relative probabilities in prior Must hold “ prefix property ” among codes Symbol Occurrence A 4/ B 2/ C 1/ D 1/ Symbol Code A 1 B 01 C 001 D 000 4 ×1 + 2×2 + 1×3 + 1 ×3 = 14 bits are required to transmit “AAAABBCD” 0 1 D A B C 0 1 0 8 1 4 2 Leaf node Root node Branch node Prefix Property!
17