Elective: Data Compression and Encryption V Extc ECCDLO 5014
Elective: Data Compression and Encryption V Extc ECCDLO 5014
Encryption
V EXTC
ECCDLO 5014
Anita Jadhav
Course Outcome
C308.1 analyze techniques of text compression in order to solve
(CO1) numerical related to statistical/dictionary based text
compression techniques
C308.2 explain audio/image/video compression standards.
(CO2)
C308.3 describe goals of cryptography and standards in Private Key
(CO3) cryptosystems.
• Image files
Adjacent pixels in an image (spatial redundancy)
• Audio Files
Silence (silence removal)
Neighboring samples (predictive encoding)
• Video Files
Similar neighboring images (temporal redundancy)
Human Perception factors
• Compressed version of digital audio, image, video need not
represent the original information exactly.. But fact is we are okay
with it!!
• Perception sensitivities are different for different signal patterns, eg.
We do not hear all the frequencies in 20 Hz to 20 KHz range in the
same way..(MP-III)
• Human eye is less sensitive to the higher spatial frequency
components than the lower frequencies (transform coding)
• https://www.youtube.com/watch?time_continue=110&v=bh_9XFzb
WV8
Model for compression
Courtesy: www.scienceblogs.com
Classification
• Lossless compression
– lossless compression for legal and medical
documents, computer programs
– exploit only data redundancy
• Lossy compression
– digital audio, image, video where some errors or
loss can be tolerated
– exploit both data redundancy and human
perception properties
• Constant bit rate versus variable bit rate
coding
Classification
• Logical Vs. Physical Compression
Physical compression acts directly on the data; it is thus a question of
storing the redundant data from one bit pattern to another.
Logical compression on the other hand is carried out by a logical
reasoning, substituting this information with equivalent information.
Eg. Voice box parameters
• Bookkeeper • Bookkeeper
• Teacher--- • Teacher3-
• Porter---- • Porter4-
• Nurse----- • Nurse5-
• Doctor---- • Doctor4-
Data Compression
• WWWBBWWW
• WWBWWBWW
• WBWWWWBW
• WBWWWWBW
• WBBBBBBW
• WBWWWWBW
• WBWWWWBW
• WWWWWWWW
Data Compression
• We could compress this to:
• WWWBBWWW
• WWBWWBWW
• WBWWWWBW
• WBWWWWBW
• WBBBBBBW
• WBWWWWBW
• WBWWWWBW
• WWWWWWWW
Data Compression
• We could compress this to:
• WWWBBWWW • 3W2B3W
• WWBWWBWW • 2WB2WB2W
• WBWWWWBW • WB4WBW
• WBWWWWBW • WB4WBW
• WBBBBBBW • W6BW
• WBWWWWBW • WB4WBW
• WBWWWWBW • WB4WBW
• WWWWWWWW • 8W
Data Compression
• From 64 characters to 44 characters:
• WWWBBWWW • 3W2B3W
• WWBWWBWW • 2WB2WB2W
• WBWWWWBW • WB4WBW
• WBWWWWBW • WB4WBW
• WBBBBBBW • W6BW
• WBWWWWBW • WB4WBW
• WBWWWWBW • WB4WBW
• WWWWWWWW • 8W
Data Compression
• WWWBBWWW • 3W2B3W
• WWBWWBWW • 2WB2WB2W
• WBWWWWBW • WB4WBW
• WBWWWWBW • WB4WBW
• WBBBBBBW • W6BW
• WBWWWWBW • WB4WBW
• WBWWWWBW • WB4WBW
• WWWWWWWW • 8W
Data Compression
• And we get:
• Physical model
• Probability model
• Markov model