Compression and Decompression: Ferdinand M Talledo
Compression and Decompression: Ferdinand M Talledo
DECOMPRESSION
FERDINAND M TALLEDO
OBJECTIVES
1. DEFINE COMPRESSION, DECOMPRESSION, JPEG,
MPEG, ZIP/TAR.
MPSZICSY
COMPRESSION IS THE PROCESS OF
REDUCING THE SIZE OF AN ELECTRONIC
FILE FOR STORAGE OR TRANSMISSION.
ONCE COMPRESSED, THE FILE TAKES UP
LESS SPACE, DOWNLOADS OR UPALOADS
FASTER, AND IN MANY CASES, CAN BE
EXECUTED OR READ IN LESS TIME.
DECOMPRESSION IS THE REVERSE
PROCESS OF OF COMPRESSION WHICH
RESTORES THE FILE TO ITS ORIGINAL SIZE.
alphabet: ABCDEFGHIJKLMNOPQRSTUVWXYZ
Using the shift key, say 1, will shift the letter B to the fisrt
positon.
Appended: BCDEFGHIJKLMNOPQRSTUVWXYZA
SHIFT CIPHER
Shift ciphers form a family of ciphers based on modular
arithmetic.
Alphabet: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Shift key is 3. for the word “ SECRET”
Alphabet: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
shifting : D E F G H I J K L M N O P Q R S T U V W X Y Z A B C
Message is “ S E C R E T”
Encryption: “V H F U H W”
MESSAGE : “ “
Suppose P=C=K={0,1,2, 3, ..., 25} = ( because there are 26 letters in the
English Alphabet).
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
The shift cipher satisfies the properties for a cryptosystem since each (x) is one-
to-one function and ((x)) = x for all x .