SlideShare a Scribd company logo
Data Compression
Techniques
By,
Deep Bhatt
Agenda
โ— Data Compression
โ— Basic Types
โ— Lossless compression
โ— Lossy compression
โ— Applications
Data Compression
Data Compression
โ— What?
โ— Why it is necessary?
What is Data
Compression?
The art of representation of information in a compact
form is called Data Compression.
These representations are created by identifying and
using the structure in the data.
Why Data
compression?
1) Storage
2) Data Transmission
โ— Storage
Data Compression reduces the size of a file to reduce the storage space
required to store that particular file.
โ— Data Transmission
It saves the time that is required in transmitting a file.
Data Compression
Data compression involves two main components:
1. Encoding Algorithm
2. Decoding Algorithm
Components of Data Compression
Encoding Algorithm
This algorithm takes a message and
generates a compressed
representation of that message.
Decoding Algorithm
This algorithm reconstructs the
original message or some
approximation of it from the
compressed representation.
Data Compression Techniques
Mainy all the techniques are divided in two basic types.
Lossless Compression
Lossy Compression
Lossless Compression
Lossless Compression Technique
As per its name, No data loss.
reconstruct the original message exactly from the compressed message.
Generally used for text files, spreadsheet files, important documents.
Some examples based on these techniques are RLE, Huffman Coding.
RLE - Run Length Encoding
Simple Compression technique.
Replace all consecutive numbers or alphabets by first the number of times
an alphabet was used followed by the alphabet itself.
This method becomes more effective with numbers especially when it is
about only two digits 1 and 0
Example
For example we have this stream here
aaaabbbaabbbbbccccccccdabcbaaabbbbcccd
Calculate the repetition
4a3b2a5b8c1d1a1b1c1b3a4b3c1d
Huffman Coding
Uses certain method for selecting representation for each symbol which gets
certain code which is called as huffman code
In fact, assigns fewer bits to symbols that occur more often and more bit to
symbols occur less in data.
It follows certain algorithm which is described below
1)Make a base node for each code symbol.
2)Count their occurrences.
Example
For example, if we have a sentence like following
โ€œthe essential featureโ€
We exactly have to assign numbers to each symbol and count occurrences
By counting we can find 12 different symbols as follows
A E F H I L N R S T U
2 5 1 1 1 1 1 1 2 3 1 2
LZ77 Compression
LZ77 compression works by finding sequences of data that are repeated
It introduces a term called โ€œsliding windowโ€, which means at any point of
time, there is a record of what characters went before.
For example, a 32K sliding window means the compressor (and
decompressor) have a record of what the last 32768 (32 * 1024)
characters.
When the next sequence of characters to be compressed is identical to one
that can be found within the sliding window, The sequence of character is
Example
1)Distance : how far back into the window the sequence starts
2)Length : the number of characters for which the sequence is identical
For example, if the word is
Blah blah blah blah blah!
Here you can see that, data is repeated after another b, and hence our first
compression would be like
Blah b[D=5,L=5]
Deflate Compression
It is totally dependent on above two techniques
It gives three different modes to compress data:
1)Not compressed at all
2)Compression, first with LZ77 and then with Huffman coding(The trees that
are used to compress in this mode are defined by the Deflate specification
itself, and so no extra space needs to be taken to store those trees.)
3)Compression, first with LZ77 and then with Huffman coding with trees that
Lossy Compression
Lossy Compression
Unlike Lossless, this method reduces data by eliminating specific
information.
It can achieve very high compression ratios through data removal.
It could happen that if user try to decompress it, only a part of the original
information is still there.
This method is generally used for video and sound where specific amount of
information loss is there and that even not recognised by users. JPEG is
Different Lossy Techniques
Comparatively, These methods are less time taking, cheaper as well as it can
reduce more space.
Methods based on lossy compression,
JPEG: Used for pictures and graphics
MPEG: used for video compression
Audio compression
JPEG
Uncompressed Picture
Compressed Picture
Picture
Preprocessi
ng
Picture
Transform
ation
EncodingQuantization
Pictures & graphics
compression
PreProcessing
A picture is divided into 8*8
pixel square block to
decrease number of
calculations.
Picture Preproce
โ— Picture preprocessing
In this step, there is generation of an appropriate digital representation of the
information in the medium being processed.
โ— Picture transformation
This step involves mainly the use of compression algorithm.
โ— Quantization
This step takes place after the data processing part. The values determined in
the second part are quantized according to specific properties like resolution.
โ— Entropy Encoding
In this step, There is data streaming of bits and bytes in a sequential way.
Transformation
DCT (Discrete Cosine
Transform) Method is
used further to compress
image .
-27.500 -213.468 -149.608 -95.281 -103.750 -46.946 -58.717 27.226
168.229 51.611 -21.544 -239.520 -8.238 -24.495 -52.657 -96.621
-27.198 -31.236 -32.278 173.389 -51.141 -56.942 4.002 49.143
30.184 -43.070 -50.473 67.134 -14.115 11.139 71.010 18.039
19.500 8.460 33.589 -53.113 -36.750 2.918 -5.795 -18.387
-70.593 66.878 47.441 -32.614 -8.195 18.132 -22.994 6.631
12.078 -19.127 6.252 -55.157 85.586 -0.603 8.028 11.212
71.152 -38.373 -75.924 29.294 -16.451 -23.436 -4.213 15.624
Quantization
Here we have to think about values
in the transformed image,
Elements near zero will be
converted to zero in order to
reduce size.
All Quantized values will be
rounded to integers.
This makes it a lossy compression.
-2 -19 -15 -6 -4 -1 -1 0
14 4 -2 -13 0 0 -1 -2
-2 -2 -2 7 -1 -1 0 1
2 -3 -2 2 0 0 1 0
1 0 1 -1 -1 0 0 0
-3 2 1 -1 0 0 0 0
0 0 0 -1 1 0 0 0
1 0 -1 0 0 0 0 0
Encoding
Finally, Here we encode the
quantized image according
to regular JPEG standard.
As per the example, here we
have dimensions 160 * 240
and it means 160 * 240 * 8
= 307.200 bits needed
If we use it in JPEG format
then, we only need 85143
bits according to the
calculation.
This interestingly saves
Original Image
JPEG Compressed Image
MPEG
Ultimately it uses JPEG
compression technique
only. Each frame of it are
spatially compressed by
JPEG
To know this compression,
Three frames are
necessary to understand
1) I - frame(intra coded)
2) B - frame (Forward
prediction)
Audio Compression
As name suggests, it is used for speech or music compression.
It has so many applications and methods for ex,
MP3, PCM, ADPCM
Dolby true hd, Direct stream transfer,Apple lossless
Applications
Famous applications are:
ZIP
CSO
RAR
For Multimedia:
GIF
JPEG
MP3
MPEG and so on.
References
โ— https://d30y9cdsu7xlg0.cloudfront.net/png/30208-200.png - Image1
โ— http://3.bp.blogspot.com/-OvFEEHA2rOs/TwUz57aFqjI/AAAAAAAAB6w/FuhdY-
l2ZHo/s1600/data+compression+techniques.png - Image2
โ— http://4.bp.blogspot.com/-
dm7N1haRYeA/UzPmZ67ZyrI/AAAAAAAAAGo/pTBUre_72aY/s1600/Compress_PDF.png - Image3
โ— http://www.walkurdi.com/wp-content/uploads/2014/02/iStock_000018332245Small2.jpg - Image4
โ— http://www.sqa.org.uk/e-learning/BitVect01CD/page_81.htm
โ— http://www.whydomath.org/node/wavlets/basicjpg.html
โ— http://images.google.de/imgres?imgurl=https%3A%2F%2Fptop.only.wip.la%3A443%2Fhttps%2Fvsr.informatik.tu-
chemnitz.de%2F~jan%2FMPEG%2FHTML%2Fframetype.gif&imgrefurl=https%3A%2F%2Fptop.only.wip.la%3A443%2Fhttps%2Fvsr.informa
tik.tu-
chemnitz.de%2F~jan%2FMPEG%2FHTML%2Fmpeg_tech.html&h=456&w=456&tbnid=50uLrbeNwYA
b6M%3A&vet=1&docid=iUQz2h7sXn_7DM&ei=ryUuWNqJJYL4aouPoZgO&tbm=isch&iact=rc&uact=3
&dur=3797&page=0&start=0&ndsp=15&ved=0ahUKEwianau04rDQAhUCvBoKHYtHCOMQMwgeKAE
wAQ&bih=638&biw=1366
โ— http://www.zlib.net/feldspar.html
Questions if any?
Thank You!!!
Ad

More Related Content

What's hot (20)

data compression technique
data compression techniquedata compression technique
data compression technique
CHINMOY PAUL
ย 
Compression
CompressionCompression
Compression
Ashish Kumar
ย 
digital image processing
digital image processingdigital image processing
digital image processing
Abinaya B
ย 
Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image Compression
Kalyan Acharjya
ย 
Fundamentals of Data compression
Fundamentals of Data compressionFundamentals of Data compression
Fundamentals of Data compression
M.k. Praveen
ย 
Image compression
Image compression Image compression
Image compression
GARIMA SHAKYA
ย 
JPEG Image Compression
JPEG Image CompressionJPEG Image Compression
JPEG Image Compression
Aishwarya K. M.
ย 
Compression: Video Compression (MPEG and others)
Compression: Video Compression (MPEG and others)Compression: Video Compression (MPEG and others)
Compression: Video Compression (MPEG and others)
danishrafiq
ย 
Stages of image processing
Stages of image processingStages of image processing
Stages of image processing
Amal Mp
ย 
Compression techniques
Compression techniquesCompression techniques
Compression techniques
m_divya_bharathi
ย 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
DEEPASHRI HK
ย 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
lavanya marichamy
ย 
Image compression standards
Image compression standardsImage compression standards
Image compression standards
kirupasuchi1996
ย 
Comparison between Lossy and Lossless Compression
Comparison between Lossy and Lossless CompressionComparison between Lossy and Lossless Compression
Comparison between Lossy and Lossless Compression
rafikrokon
ย 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
asodariyabhavesh
ย 
Introduction Data Compression/ Data compression, modelling and coding,Image C...
Introduction Data Compression/ Data compression, modelling and coding,Image C...Introduction Data Compression/ Data compression, modelling and coding,Image C...
Introduction Data Compression/ Data compression, modelling and coding,Image C...
Smt. Indira Gandhi College of Engineering, Navi Mumbai, Mumbai
ย 
Lossless predictive coding in Digital Image Processing
Lossless predictive coding in Digital Image ProcessingLossless predictive coding in Digital Image Processing
Lossless predictive coding in Digital Image Processing
priyadharshini murugan
ย 
Jpeg and mpeg ppt
Jpeg and mpeg pptJpeg and mpeg ppt
Jpeg and mpeg ppt
siddharth rathore
ย 
Data compression
Data compressionData compression
Data compression
Chaitanya Belhekar
ย 
Image segmentation
Image segmentationImage segmentation
Image segmentation
Md Shabir Alam
ย 
data compression technique
data compression techniquedata compression technique
data compression technique
CHINMOY PAUL
ย 
Compression
CompressionCompression
Compression
Ashish Kumar
ย 
digital image processing
digital image processingdigital image processing
digital image processing
Abinaya B
ย 
Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image Compression
Kalyan Acharjya
ย 
Fundamentals of Data compression
Fundamentals of Data compressionFundamentals of Data compression
Fundamentals of Data compression
M.k. Praveen
ย 
Image compression
Image compression Image compression
Image compression
GARIMA SHAKYA
ย 
JPEG Image Compression
JPEG Image CompressionJPEG Image Compression
JPEG Image Compression
Aishwarya K. M.
ย 
Compression: Video Compression (MPEG and others)
Compression: Video Compression (MPEG and others)Compression: Video Compression (MPEG and others)
Compression: Video Compression (MPEG and others)
danishrafiq
ย 
Stages of image processing
Stages of image processingStages of image processing
Stages of image processing
Amal Mp
ย 
Compression techniques
Compression techniquesCompression techniques
Compression techniques
m_divya_bharathi
ย 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
DEEPASHRI HK
ย 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
lavanya marichamy
ย 
Image compression standards
Image compression standardsImage compression standards
Image compression standards
kirupasuchi1996
ย 
Comparison between Lossy and Lossless Compression
Comparison between Lossy and Lossless CompressionComparison between Lossy and Lossless Compression
Comparison between Lossy and Lossless Compression
rafikrokon
ย 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
asodariyabhavesh
ย 
Lossless predictive coding in Digital Image Processing
Lossless predictive coding in Digital Image ProcessingLossless predictive coding in Digital Image Processing
Lossless predictive coding in Digital Image Processing
priyadharshini murugan
ย 
Image segmentation
Image segmentationImage segmentation
Image segmentation
Md Shabir Alam
ย 

Viewers also liked (17)

Data compression introduction
Data compression introductionData compression introduction
Data compression introduction
Rahul Khanwani
ย 
Data Compression Technique
Data Compression TechniqueData Compression Technique
Data Compression Technique
nayakslideshare
ย 
Image compression: Techniques and Application
Image compression: Techniques and ApplicationImage compression: Techniques and Application
Image compression: Techniques and Application
Nidhi Baranwal
ย 
Text compression in LZW and Flate
Text compression in LZW and FlateText compression in LZW and Flate
Text compression in LZW and Flate
Subeer Rangra
ย 
Data compression
Data compressionData compression
Data compression
Sherif Abdelfattah
ย 
Image compression
Image compressionImage compression
Image compression
Ale Johnsan
ย 
Image Compression
Image CompressionImage Compression
Image Compression
Paramjeet Singh Jamwal
ย 
Hamming Distance and Data Compression of 1-D CA
Hamming Distance and Data Compression of 1-D CAHamming Distance and Data Compression of 1-D CA
Hamming Distance and Data Compression of 1-D CA
csitconf
ย 
Digital image compression techniques
Digital image compression techniquesDigital image compression techniques
Digital image compression techniques
eSAT Journals
ย 
Lossy
LossyLossy
Lossy
anithabalaprabhu
ย 
Data Compression for Multi-dimentional Data Warehouses
Data Compression for Multi-dimentional Data WarehousesData Compression for Multi-dimentional Data Warehouses
Data Compression for Multi-dimentional Data Warehouses
Mushfiqur Rahman
ย 
How GZIP works... in 10 minutes
How GZIP works... in 10 minutesHow GZIP works... in 10 minutes
How GZIP works... in 10 minutes
Raul Fraile
ย 
Data compression
Data compressionData compression
Data compression
Nizar Sbaih
ย 
Compression
CompressionCompression
Compression
anithabalaprabhu
ย 
Lec6 compression
Lec6 compressionLec6 compression
Lec6 compression
Dom Mike
ย 
Keystone summer school_2015_miguel_antonio_ldcompression_4-joined
Keystone summer school_2015_miguel_antonio_ldcompression_4-joinedKeystone summer school_2015_miguel_antonio_ldcompression_4-joined
Keystone summer school_2015_miguel_antonio_ldcompression_4-joined
Joel Azzopardi
ย 
G zip compresser ppt
G zip compresser pptG zip compresser ppt
G zip compresser ppt
gaurav kumar
ย 
Data compression introduction
Data compression introductionData compression introduction
Data compression introduction
Rahul Khanwani
ย 
Data Compression Technique
Data Compression TechniqueData Compression Technique
Data Compression Technique
nayakslideshare
ย 
Image compression: Techniques and Application
Image compression: Techniques and ApplicationImage compression: Techniques and Application
Image compression: Techniques and Application
Nidhi Baranwal
ย 
Text compression in LZW and Flate
Text compression in LZW and FlateText compression in LZW and Flate
Text compression in LZW and Flate
Subeer Rangra
ย 
Image compression
Image compressionImage compression
Image compression
Ale Johnsan
ย 
Hamming Distance and Data Compression of 1-D CA
Hamming Distance and Data Compression of 1-D CAHamming Distance and Data Compression of 1-D CA
Hamming Distance and Data Compression of 1-D CA
csitconf
ย 
Digital image compression techniques
Digital image compression techniquesDigital image compression techniques
Digital image compression techniques
eSAT Journals
ย 
Data Compression for Multi-dimentional Data Warehouses
Data Compression for Multi-dimentional Data WarehousesData Compression for Multi-dimentional Data Warehouses
Data Compression for Multi-dimentional Data Warehouses
Mushfiqur Rahman
ย 
How GZIP works... in 10 minutes
How GZIP works... in 10 minutesHow GZIP works... in 10 minutes
How GZIP works... in 10 minutes
Raul Fraile
ย 
Data compression
Data compressionData compression
Data compression
Nizar Sbaih
ย 
Lec6 compression
Lec6 compressionLec6 compression
Lec6 compression
Dom Mike
ย 
Keystone summer school_2015_miguel_antonio_ldcompression_4-joined
Keystone summer school_2015_miguel_antonio_ldcompression_4-joinedKeystone summer school_2015_miguel_antonio_ldcompression_4-joined
Keystone summer school_2015_miguel_antonio_ldcompression_4-joined
Joel Azzopardi
ย 
G zip compresser ppt
G zip compresser pptG zip compresser ppt
G zip compresser ppt
gaurav kumar
ย 
Ad

Similar to Data compression techniques (20)

Unit 3 Image Compression and Segmentation.pptx
Unit 3  Image Compression and Segmentation.pptxUnit 3  Image Compression and Segmentation.pptx
Unit 3 Image Compression and Segmentation.pptx
AmrutaSakhare1
ย 
Seminar Report on image compression
Seminar Report on image compressionSeminar Report on image compression
Seminar Report on image compression
Pradip Kumar
ย 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
Mathankumar S
ย 
Pbl1
Pbl1Pbl1
Pbl1
Pijo Jonas
ย 
Presentation on Image Compression
Presentation on Image Compression Presentation on Image Compression
Presentation on Image Compression
Fat Fish Marketing Pvt Ltd
ย 
A Study of Image Compression Methods
A Study of Image Compression MethodsA Study of Image Compression Methods
A Study of Image Compression Methods
IOSR Journals
ย 
image basics and image compression
image basics and image compressionimage basics and image compression
image basics and image compression
murugan hari
ย 
Data compression
Data compressionData compression
Data compression
Sumant Diwakar
ย 
Digital Image Compression using Hybrid Scheme using DWT and Quantization wit...
Digital Image Compression using Hybrid Scheme using DWT  and Quantization wit...Digital Image Compression using Hybrid Scheme using DWT  and Quantization wit...
Digital Image Compression using Hybrid Scheme using DWT and Quantization wit...
IRJET Journal
ย 
DIP.pptx
DIP.pptxDIP.pptx
DIP.pptx
Kaviya452563
ย 
JPEG
JPEGJPEG
JPEG
RajatKumar471
ย 
Why Image compression is Necessary?
Why Image compression is Necessary?Why Image compression is Necessary?
Why Image compression is Necessary?
Prabhat Kumar
ย 
J017156874
J017156874J017156874
J017156874
IOSR Journals
ย 
DCT based Steganographic Evaluation parameter analysis in Frequency domain by...
DCT based Steganographic Evaluation parameter analysis in Frequency domain by...DCT based Steganographic Evaluation parameter analysis in Frequency domain by...
DCT based Steganographic Evaluation parameter analysis in Frequency domain by...
IOSR Journals
ย 
11.0003www.iiste.org call for paper_d_discrete cosine transform for image com...
11.0003www.iiste.org call for paper_d_discrete cosine transform for image com...11.0003www.iiste.org call for paper_d_discrete cosine transform for image com...
11.0003www.iiste.org call for paper_d_discrete cosine transform for image com...
Alexander Decker
ย 
Image compression 14_04_2020 (1)
Image compression 14_04_2020 (1)Image compression 14_04_2020 (1)
Image compression 14_04_2020 (1)
Joel P
ย 
Paper id 25201490
Paper id 25201490Paper id 25201490
Paper id 25201490
IJRAT
ย 
Jv2517361741
Jv2517361741Jv2517361741
Jv2517361741
IJERA Editor
ย 
Jv2517361741
Jv2517361741Jv2517361741
Jv2517361741
IJERA Editor
ย 
REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...
REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...
REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...
ijcsa
ย 
Unit 3 Image Compression and Segmentation.pptx
Unit 3  Image Compression and Segmentation.pptxUnit 3  Image Compression and Segmentation.pptx
Unit 3 Image Compression and Segmentation.pptx
AmrutaSakhare1
ย 
Seminar Report on image compression
Seminar Report on image compressionSeminar Report on image compression
Seminar Report on image compression
Pradip Kumar
ย 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
Mathankumar S
ย 
A Study of Image Compression Methods
A Study of Image Compression MethodsA Study of Image Compression Methods
A Study of Image Compression Methods
IOSR Journals
ย 
image basics and image compression
image basics and image compressionimage basics and image compression
image basics and image compression
murugan hari
ย 
Data compression
Data compressionData compression
Data compression
Sumant Diwakar
ย 
Digital Image Compression using Hybrid Scheme using DWT and Quantization wit...
Digital Image Compression using Hybrid Scheme using DWT  and Quantization wit...Digital Image Compression using Hybrid Scheme using DWT  and Quantization wit...
Digital Image Compression using Hybrid Scheme using DWT and Quantization wit...
IRJET Journal
ย 
Why Image compression is Necessary?
Why Image compression is Necessary?Why Image compression is Necessary?
Why Image compression is Necessary?
Prabhat Kumar
ย 
DCT based Steganographic Evaluation parameter analysis in Frequency domain by...
DCT based Steganographic Evaluation parameter analysis in Frequency domain by...DCT based Steganographic Evaluation parameter analysis in Frequency domain by...
DCT based Steganographic Evaluation parameter analysis in Frequency domain by...
IOSR Journals
ย 
11.0003www.iiste.org call for paper_d_discrete cosine transform for image com...
11.0003www.iiste.org call for paper_d_discrete cosine transform for image com...11.0003www.iiste.org call for paper_d_discrete cosine transform for image com...
11.0003www.iiste.org call for paper_d_discrete cosine transform for image com...
Alexander Decker
ย 
Image compression 14_04_2020 (1)
Image compression 14_04_2020 (1)Image compression 14_04_2020 (1)
Image compression 14_04_2020 (1)
Joel P
ย 
Paper id 25201490
Paper id 25201490Paper id 25201490
Paper id 25201490
IJRAT
ย 
Jv2517361741
Jv2517361741Jv2517361741
Jv2517361741
IJERA Editor
ย 
Jv2517361741
Jv2517361741Jv2517361741
Jv2517361741
IJERA Editor
ย 
REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...
REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...
REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...
ijcsa
ย 
Ad

Recently uploaded (20)

The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
ย 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
ย 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
ย 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
ย 
Automation Hour 1/28/2022: Capture User Feedback from Anywhere
Automation Hour 1/28/2022: Capture User Feedback from AnywhereAutomation Hour 1/28/2022: Capture User Feedback from Anywhere
Automation Hour 1/28/2022: Capture User Feedback from Anywhere
Lynda Kane
ย 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
ย 
Leading AI Innovation As A Product Manager - Michael Jidael
Leading AI Innovation As A Product Manager - Michael JidaelLeading AI Innovation As A Product Manager - Michael Jidael
Leading AI Innovation As A Product Manager - Michael Jidael
Michael Jidael
ย 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
ย 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
ย 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
ย 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
ย 
Drupalcamp Finland โ€“ Measuring Front-end Energy Consumption
Drupalcamp Finland โ€“ Measuring Front-end Energy ConsumptionDrupalcamp Finland โ€“ Measuring Front-end Energy Consumption
Drupalcamp Finland โ€“ Measuring Front-end Energy Consumption
Exove
ย 
Automation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From AnywhereAutomation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From Anywhere
Lynda Kane
ย 
Buckeye Dreamin 2024: Assessing and Resolving Technical Debt
Buckeye Dreamin 2024: Assessing and Resolving Technical DebtBuckeye Dreamin 2024: Assessing and Resolving Technical Debt
Buckeye Dreamin 2024: Assessing and Resolving Technical Debt
Lynda Kane
ย 
Image processinglab image processing image processing
Image processinglab image processing  image processingImage processinglab image processing  image processing
Image processinglab image processing image processing
RaghadHany
ย 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
ย 
"Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5..."Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5...
Fwdays
ย 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
ย 
Automation Dreamin' 2022: Sharing Some Gratitude with Your Users
Automation Dreamin' 2022: Sharing Some Gratitude with Your UsersAutomation Dreamin' 2022: Sharing Some Gratitude with Your Users
Automation Dreamin' 2022: Sharing Some Gratitude with Your Users
Lynda Kane
ย 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
ย 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
ย 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
ย 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
ย 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
ย 
Automation Hour 1/28/2022: Capture User Feedback from Anywhere
Automation Hour 1/28/2022: Capture User Feedback from AnywhereAutomation Hour 1/28/2022: Capture User Feedback from Anywhere
Automation Hour 1/28/2022: Capture User Feedback from Anywhere
Lynda Kane
ย 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
ย 
Leading AI Innovation As A Product Manager - Michael Jidael
Leading AI Innovation As A Product Manager - Michael JidaelLeading AI Innovation As A Product Manager - Michael Jidael
Leading AI Innovation As A Product Manager - Michael Jidael
Michael Jidael
ย 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
ย 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
ย 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
ย 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
ย 
Drupalcamp Finland โ€“ Measuring Front-end Energy Consumption
Drupalcamp Finland โ€“ Measuring Front-end Energy ConsumptionDrupalcamp Finland โ€“ Measuring Front-end Energy Consumption
Drupalcamp Finland โ€“ Measuring Front-end Energy Consumption
Exove
ย 
Automation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From AnywhereAutomation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From Anywhere
Lynda Kane
ย 
Buckeye Dreamin 2024: Assessing and Resolving Technical Debt
Buckeye Dreamin 2024: Assessing and Resolving Technical DebtBuckeye Dreamin 2024: Assessing and Resolving Technical Debt
Buckeye Dreamin 2024: Assessing and Resolving Technical Debt
Lynda Kane
ย 
Image processinglab image processing image processing
Image processinglab image processing  image processingImage processinglab image processing  image processing
Image processinglab image processing image processing
RaghadHany
ย 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
ย 
"Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5..."Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership โ€” the Path to Exponential Growth for Companies Sized 50-5...
Fwdays
ย 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
ย 
Automation Dreamin' 2022: Sharing Some Gratitude with Your Users
Automation Dreamin' 2022: Sharing Some Gratitude with Your UsersAutomation Dreamin' 2022: Sharing Some Gratitude with Your Users
Automation Dreamin' 2022: Sharing Some Gratitude with Your Users
Lynda Kane
ย 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
ย 

Data compression techniques

  • 2. Agenda โ— Data Compression โ— Basic Types โ— Lossless compression โ— Lossy compression โ— Applications
  • 5. What is Data Compression? The art of representation of information in a compact form is called Data Compression. These representations are created by identifying and using the structure in the data.
  • 7. โ— Storage Data Compression reduces the size of a file to reduce the storage space required to store that particular file. โ— Data Transmission It saves the time that is required in transmitting a file.
  • 8. Data Compression Data compression involves two main components: 1. Encoding Algorithm 2. Decoding Algorithm
  • 9. Components of Data Compression Encoding Algorithm This algorithm takes a message and generates a compressed representation of that message. Decoding Algorithm This algorithm reconstructs the original message or some approximation of it from the compressed representation.
  • 10. Data Compression Techniques Mainy all the techniques are divided in two basic types. Lossless Compression Lossy Compression
  • 12. Lossless Compression Technique As per its name, No data loss. reconstruct the original message exactly from the compressed message. Generally used for text files, spreadsheet files, important documents. Some examples based on these techniques are RLE, Huffman Coding.
  • 13. RLE - Run Length Encoding Simple Compression technique. Replace all consecutive numbers or alphabets by first the number of times an alphabet was used followed by the alphabet itself. This method becomes more effective with numbers especially when it is about only two digits 1 and 0
  • 14. Example For example we have this stream here aaaabbbaabbbbbccccccccdabcbaaabbbbcccd Calculate the repetition 4a3b2a5b8c1d1a1b1c1b3a4b3c1d
  • 15. Huffman Coding Uses certain method for selecting representation for each symbol which gets certain code which is called as huffman code In fact, assigns fewer bits to symbols that occur more often and more bit to symbols occur less in data. It follows certain algorithm which is described below 1)Make a base node for each code symbol. 2)Count their occurrences.
  • 16. Example For example, if we have a sentence like following โ€œthe essential featureโ€ We exactly have to assign numbers to each symbol and count occurrences By counting we can find 12 different symbols as follows A E F H I L N R S T U 2 5 1 1 1 1 1 1 2 3 1 2
  • 17. LZ77 Compression LZ77 compression works by finding sequences of data that are repeated It introduces a term called โ€œsliding windowโ€, which means at any point of time, there is a record of what characters went before. For example, a 32K sliding window means the compressor (and decompressor) have a record of what the last 32768 (32 * 1024) characters. When the next sequence of characters to be compressed is identical to one that can be found within the sliding window, The sequence of character is
  • 18. Example 1)Distance : how far back into the window the sequence starts 2)Length : the number of characters for which the sequence is identical For example, if the word is Blah blah blah blah blah! Here you can see that, data is repeated after another b, and hence our first compression would be like Blah b[D=5,L=5]
  • 19. Deflate Compression It is totally dependent on above two techniques It gives three different modes to compress data: 1)Not compressed at all 2)Compression, first with LZ77 and then with Huffman coding(The trees that are used to compress in this mode are defined by the Deflate specification itself, and so no extra space needs to be taken to store those trees.) 3)Compression, first with LZ77 and then with Huffman coding with trees that
  • 21. Lossy Compression Unlike Lossless, this method reduces data by eliminating specific information. It can achieve very high compression ratios through data removal. It could happen that if user try to decompress it, only a part of the original information is still there. This method is generally used for video and sound where specific amount of information loss is there and that even not recognised by users. JPEG is
  • 22. Different Lossy Techniques Comparatively, These methods are less time taking, cheaper as well as it can reduce more space. Methods based on lossy compression, JPEG: Used for pictures and graphics MPEG: used for video compression Audio compression
  • 23. JPEG Uncompressed Picture Compressed Picture Picture Preprocessi ng Picture Transform ation EncodingQuantization Pictures & graphics compression PreProcessing A picture is divided into 8*8 pixel square block to decrease number of calculations. Picture Preproce
  • 24. โ— Picture preprocessing In this step, there is generation of an appropriate digital representation of the information in the medium being processed. โ— Picture transformation This step involves mainly the use of compression algorithm. โ— Quantization This step takes place after the data processing part. The values determined in the second part are quantized according to specific properties like resolution. โ— Entropy Encoding In this step, There is data streaming of bits and bytes in a sequential way.
  • 25. Transformation DCT (Discrete Cosine Transform) Method is used further to compress image . -27.500 -213.468 -149.608 -95.281 -103.750 -46.946 -58.717 27.226 168.229 51.611 -21.544 -239.520 -8.238 -24.495 -52.657 -96.621 -27.198 -31.236 -32.278 173.389 -51.141 -56.942 4.002 49.143 30.184 -43.070 -50.473 67.134 -14.115 11.139 71.010 18.039 19.500 8.460 33.589 -53.113 -36.750 2.918 -5.795 -18.387 -70.593 66.878 47.441 -32.614 -8.195 18.132 -22.994 6.631 12.078 -19.127 6.252 -55.157 85.586 -0.603 8.028 11.212 71.152 -38.373 -75.924 29.294 -16.451 -23.436 -4.213 15.624
  • 26. Quantization Here we have to think about values in the transformed image, Elements near zero will be converted to zero in order to reduce size. All Quantized values will be rounded to integers. This makes it a lossy compression. -2 -19 -15 -6 -4 -1 -1 0 14 4 -2 -13 0 0 -1 -2 -2 -2 -2 7 -1 -1 0 1 2 -3 -2 2 0 0 1 0 1 0 1 -1 -1 0 0 0 -3 2 1 -1 0 0 0 0 0 0 0 -1 1 0 0 0 1 0 -1 0 0 0 0 0
  • 27. Encoding Finally, Here we encode the quantized image according to regular JPEG standard. As per the example, here we have dimensions 160 * 240 and it means 160 * 240 * 8 = 307.200 bits needed If we use it in JPEG format then, we only need 85143 bits according to the calculation. This interestingly saves Original Image JPEG Compressed Image
  • 28. MPEG Ultimately it uses JPEG compression technique only. Each frame of it are spatially compressed by JPEG To know this compression, Three frames are necessary to understand 1) I - frame(intra coded) 2) B - frame (Forward prediction)
  • 29. Audio Compression As name suggests, it is used for speech or music compression. It has so many applications and methods for ex, MP3, PCM, ADPCM Dolby true hd, Direct stream transfer,Apple lossless
  • 30. Applications Famous applications are: ZIP CSO RAR For Multimedia: GIF JPEG MP3 MPEG and so on.
  • 31. References โ— https://d30y9cdsu7xlg0.cloudfront.net/png/30208-200.png - Image1 โ— http://3.bp.blogspot.com/-OvFEEHA2rOs/TwUz57aFqjI/AAAAAAAAB6w/FuhdY- l2ZHo/s1600/data+compression+techniques.png - Image2 โ— http://4.bp.blogspot.com/- dm7N1haRYeA/UzPmZ67ZyrI/AAAAAAAAAGo/pTBUre_72aY/s1600/Compress_PDF.png - Image3 โ— http://www.walkurdi.com/wp-content/uploads/2014/02/iStock_000018332245Small2.jpg - Image4 โ— http://www.sqa.org.uk/e-learning/BitVect01CD/page_81.htm โ— http://www.whydomath.org/node/wavlets/basicjpg.html โ— http://images.google.de/imgres?imgurl=https%3A%2F%2Fptop.only.wip.la%3A443%2Fhttps%2Fvsr.informatik.tu- chemnitz.de%2F~jan%2FMPEG%2FHTML%2Fframetype.gif&imgrefurl=https%3A%2F%2Fptop.only.wip.la%3A443%2Fhttps%2Fvsr.informa tik.tu- chemnitz.de%2F~jan%2FMPEG%2FHTML%2Fmpeg_tech.html&h=456&w=456&tbnid=50uLrbeNwYA b6M%3A&vet=1&docid=iUQz2h7sXn_7DM&ei=ryUuWNqJJYL4aouPoZgO&tbm=isch&iact=rc&uact=3 &dur=3797&page=0&start=0&ndsp=15&ved=0ahUKEwianau04rDQAhUCvBoKHYtHCOMQMwgeKAE wAQ&bih=638&biw=1366 โ— http://www.zlib.net/feldspar.html