3. BILLGATES
1
B
B B BILLGATES
1 2
B I
BI I ILLGATES
1 2 3
B I L
BIL L LLGATES
1 2 3
B I L
BIL3 L LGATES
1 2 3 4
B I L G
BIL3G G GATES
1 2 3 4 5
B I L G A
BIL3G A A ATES
4. 1 2 3 4 5 6
B I L G A T
BIL3G AT T TES
1 2 3 4 5 6 7
B I L G A T E
BIL3G ATE E ES
1 2 3 4 5 6 7 8
B I L G A T E S
BIL3G ATES S S
5. Advantages and Disadvantages of
LZW
Advantage:
Is a lossless compression algorithm.Hence no information
is lost.
One need not pass the code table between the two
compression and the decompression.
Simple ,fast and good compression
Disadvantage:
What happens when the dictionary becomes too large
One approach is to throw the dictionary away when it
reaches a certain size
Useful only for a large amount of test data where
redundancy is high
8. For a given list of symbols, develop a
corresponding list of probabilities or
frequency counts so that each
symbol’s relative frequency of
occurrence is known.
Sort the lists of symbols according to
frequency, with the most frequently
occurring symbols at the left and the
least common at the right.
9. Divide the list into two parts,
with the total frequency
counts of the left part being
as close to the total of the
right as possible.
19. Create a leaf node for each symbol and add it to frequency
of occurrence.
While there is more than one node in the queue:
Remove the two nodes of lowest probability or frequency
from the queue
Prepend 0 and 1 respectively to any code already assigned
to these nodes
Create a new internal node with these two nodes as children
and with probability equal to the sum of the two nodes'
probabilities.
Add the new node to the queue.
The remaining node is the root node and the tree is
complete.
24. Advantages and
disadvantages of
Huffman
This compression algorithm is mainly
efficient in compressing text or
program files. Images like they are
often used in prepress are better
handled by other compression
algorithms.
25. What are the advantages of Huffman
coding?
Algorithm is easy to
implement
Produce a lossless
compression of images
26. Adaptive Huffman Coding
(Dynamic Huffman
Coding)
Advantage: Source is encoded in real time.
Disadvantage: More chance for transmission error.
30. What are the Advantages of
arithmetic coding over Huffman
coding?
1.the compression ratio is higher compared to huffman
coding.
2.efficiency is greater comparatively.
3.Redundancy is much reduced.