[go: up one dir, main page]

0% found this document useful (0 votes)
7 views4 pages

Compression

Uploaded by

riaz.75.64.16
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views4 pages

Compression

Uploaded by

riaz.75.64.16
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Compression Reducing : the file size at binary level to

store more files in un space and to transfer


more dater in less time and Bandwidt
.

Types : The are two


types of compression ,
i .
:
e
Lossy &
lossless .

estess original file


- Compression : No data is lost ; the can

be ZIP, FLAC , PNG


perfectly reconstructed Eg
· :
,

Run
Length Encoding (RLE) ·

lossy compression Some data is ; original lost


permanently
:

file after
only beJPGapproximated
can

decompression Eg .
mp3 MREG
: , ,

for compression:
need

1 .
Storage Space : As data accumulates
storage space , can become
factor
a
limiting .
Compression helps to save

storage space.
2 . Transmission : Compressed files require less bandwidt to transmit,
faster to download stream:
making fires or

3 . Cost :
Transmitting store large amount
or of data can be
lead to cost
savings
es
Censive
Compression can in
.

storage and transmission n.

Use Cases:
-

1 . Websites : Web
pages use
compressed images to load fester
.
.
2 Streaming Services : Platforms like Netflix and
spotify
to stream movies and
use
compression
efficiently
music
.
.
3 File
Storage :
Compression software like ZIP or RAR is
file for
used to reduce size
storage I
transmission .
Large sized databases are
compressed before

backing up to save
storage space.
Run (RLE) for different dato types
Lengt Encoding compression
:

1 Text Files :
. Run
length Encoding ,
RLE ,
represents repeated
characters followed by
as a
single character
a . For instance,
count AAAAABBB can be represented as A5B3.

the selsea s by shore


333 Byas
3

PLE: 1 Se2 3 12 by 3 Shore 3 21 Byte

Deduction calculation :
~

Filesize : Before = 33B ,


After = 21B

Percentages :

File afterRLE : (21(33)6100 = 63 6 % .

36 4 %.
Savings : 100. 63 6 . = .
File:
Image
Resolution = 8x8 pixels
Color
Depl = 8 bits = 1B

Colors Used = 2 Colors (Black White).

Resolution , Depth
- File teacher

o no w who no he w qW GB
mmm W BBBBBBW ZW IB
m WB W w wo ho h W TWIB
m W we wo wo no he w TWSB
m wi B BB B BW W 3WIB
m W is wh wo ho now TWIB

m wB W w www W 144
w w noww www

8x8 = 64 B tuB 26B

Deduction Calculation :
(26/64) * 100 = 40 625 %
.
File Size
100 -
40 625
. = 59 375%
.
Reduction -

You might also like