SlideShare ist ein Scribd-Unternehmen logo
1 von 29
Downloaden Sie, um offline zu lesen
Introduction to Data communication
Topic : Data Compression
Lecture #10
Dr Rajiv Srivastava
Director
Sagar Institute of Research & Technology (SIRT)
Sagar Group of Institutions, Bhopal
http://www.sirtbhopal.ac.in
Lecture# 10
Unit 1
Data Compression
• Data Compression is a reduction in the number of bits
needed to represent data. Compressing data can save
storage capacity, speed file transfer, and decrease costs
for storage hardware and network bandwidth.
• Data Compression refers to the reducing the number
of bits that need to be transmitted over
communication channel.
• Data Compression reduces the number of bits sent
• Data Compression becomes particularly important
when we send data with high size such as audio &
video
• Even with very fast transmission speed of data we
need to send data in short time. We need to
Compress data for this purpose.
• Virtually all form of data contain redundancy
i.e. it is the amount of wasted "space" used to
transmit certain data.
• By making use of more efficient data
representation methods, redundancy can be
reduced.
• Even 7 bit ASCII code has some redundancy in it.
• The goal of data compression is to represent an
information source (e.g. a data file, a speech signal,
an image, or a video signal) as accurately as
possible using the fewest number of bits.
Compression ratio
• Data compression ratio, also known as
compression power, is a term used to quantify the
reduction in data-representation size produced by a
data compression algorithm.
• The data compression ratio is analogous to the
physical compression ratio used to measure physical
compression of substances.
• Data compression ratio is defined as the ratio between
the uncompressed size and compressed size.
• Thus a representation that compresses a 10 MB file to
2MB has a compression ratio of 10/2 = 5, often notated
as an exploit ratio , 5:1 read five to one or as an
implicit ratio 5/1
• Note that this formulation applies equally for
compression, where the uncompressed size is that of the
original and for decompression, where the
uncompressed size is that of the reproduction.
• Sometimes the space saving is given instead,
which is defined as the reduction in size relative
to the uncompressed size.
•
• Thus a representation that compresses a 10 MB
file to 2 MB would yield a space saving of
1-2/10 = 0.8 often notated as a percentage,
80 %
• For signals of indefinite size , such as streaming
audio and video the compression ratio is defined
in terms of uncompressed and compressed data
rates instead of data sizes.
and instead of space savings , one speaks of
data-rate saving which is defined as the data-
rate reduction relative to the uncompressed
data rate.
• For example uncompressed songs in CD format
have a data rate of 16 bits /channel x 2 channel
x 44.1 kHz = 1.4 Mbits,
• AAC files on an iPod are typically compressed to
128 kbits, yielding a compression ratio of 10.9
for data-rate saving of 0.91 or 91%.
Data Compression Methods
Lossy Compression
• Lossy Compression refers to data compression techniques in
which some amount of data is lost. Lossy compression
technologies attempt to eliminate redundant or unnecessary
information.
• If the decompressed information need not be an exact
replica of the original information but something very
close, we can use a lossy data compression method.
• lossy compression reduces a file by permanently eliminating
certain information, especially redundant information. When
the file is uncompressed, only a part of the original
information is still there (although the user may not notice it).
Lossy compression is generally used for video and sound,
where a certain amount of information loss will not be
detected by most users.
• The JPEG image file, commonly used for
photographs and other complex still images
on the Web, is an image that has lossy
compression. Using JPEG compression, the
creator can decide how much loss to
introduce and make a trade-off between file
size and image quality. Most video
compression technologies, such as MPEG, use
a lossy technique.
Lossy Compression Contd..
The best example is a videoconference where there is
an acceptable amount of frame loss in order to deliver
the image in real time. People may appear jerky in their
movements, but you still have a grasp for what is
happening on the other end of the conference.
In the case of graphics files, some resolution may be lost
in order to create a smaller file. The loss may be in the
form of color depth or graphic detail. For example, high-
resolution details can be lost if a picture is going to be
displayed on a low-resolution device. Loss is also
acceptable in voice and audio compression, depending
on the desired quality.
These methods are called lossy
compression methods because we will lose
some of the original data in the process.
Several methods have been developed
using lossy compression techniques. Joint
photographic experts group (JPEG) is
used to compress pictures and graphics.
Motion picture experts group (MPEG) is
used to compress video.
High Compression (Low Quality)
Low Compression (High Quality)
Lossless Compression
• The lossless compression refers to data compression
techniques in which no data is lost.
• For most types of data, lossless compression techniques
can reduce the space needed by only about 50%.
• For greater compression, one must use a lossy compression
technique. Note, however, that only certain types of data -
graphics, audio, and video -- can tolerate lossy
compression.
• You must use a lossless compression technique when
compressing data and programs.
• The PKZIP compression technology is an example of lossless
compression.
• With lossless compression, every single bit of
data that was originally in the file remains after
the file is uncompressed. All of the information
is completely restored.
• This is generally the technique of choice for text
or spreadsheet files, where losing words or
financial data could pose a problem.
• The Graphics Interchange File (GIF) is an image
format used on the Web that provides lossless
compression.
• In Lossless Data Compression the compressing &
decompressing algorithm are usually the inverse of
each other. In other words after decompressing we
will get exact data as they were before compressing.
Nothing is lost. The following are some techniques
used in lossless data compression
1. Null compression
2. Run Length Encoding
3. Statistical Compression
• Shannon Fano Encoding
• Huffman Encoding
– Adaptive Compression (Adaptive Huffman)
• Dictionary Based Compression
» LZ77, LZ78 Algorithms
» Lempel Ziv Welch (LZW) encoding
1. Null compression Replaces a series of blank
spaces with a compression code, followed by a
value that represents the number of spaces.
Example : hello friend how is your life?
2. Run Length Encoding(RLE)
When data contain strings of repeated symbols (such as
bits or characters), the strings can be replaced by a
special marker, followed by the repeated symbol,
followed by the number of occurrences. For example, in
given Figure, the symbol # is the marker. The symbol
being repeated (the run symbol) follows the marker.
After the run symbol, the number of occurrences
(length) is shown by a two-digit number.
Example : This run-length encoding method can be used
in audio (silence is a run of 0s) and video (run of a
picture element having the same brightness and color).
Run-Length Encoding (RLE)
3. Statistical Compression
Another method of lossless compression is statistical
compression. This method uses short codes for frequent
symbols and long codes for infrequent symbols. In this way,
the length of the total data is reduced tremendously. The
following methods are very popular lossless compression
methods :
• Shannon Fano Encoding
• Huffman Encoding
– Adaptive Compression (Adaptive Huffman)
• Dictionary Based Compression
» LZ77, LZ78 Algorithms
» Lempel Ziv Welch (LZW) encoding
3. Relative Compression Another way of
reducing the number of bits is a method called
relative compression or differential encoding.
This is extremely useful if we are sending, for
example, video, Commercial TVs send 30
frames of 0s and 1s every second. However,
usually there is little difference between
consecutive frames. So, instead of sending an
entire frame, we send only the difference
between consecutive frames. The small
differences can be encoded into small streams
of bits.
Image Compression
• Grey code
• Error metrics
• Intuitive methods
• Image transforms
• Jpeg
Thank You
Dr Rajiv Srivastava
Director
Sagar Institute of Research & Technology (SIRT)
Sagar Group of Institutions, Bhopal
http://www.sirtbhopal.ac.in

Weitere ähnliche Inhalte

Was ist angesagt?

data compression technique
data compression techniquedata compression technique
data compression techniqueCHINMOY PAUL
 
Image restoration and degradation model
Image restoration and degradation modelImage restoration and degradation model
Image restoration and degradation modelAnupriyaDurai
 
Video Compression Basics
Video Compression BasicsVideo Compression Basics
Video Compression BasicsSanjiv Malik
 
Chapter 9 morphological image processing
Chapter 9 morphological image processingChapter 9 morphological image processing
Chapter 9 morphological image processingasodariyabhavesh
 
Fundamentals of Data compression
Fundamentals of Data compressionFundamentals of Data compression
Fundamentals of Data compressionM.k. Praveen
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression modelslavanya marichamy
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image CompressionMathankumar S
 
Transform coding
Transform codingTransform coding
Transform codingNancy K
 
Lossless Compression
Lossless CompressionLossless Compression
Lossless CompressionPuchpa Oks
 
Multimedia fundamental concepts in video
Multimedia fundamental concepts in videoMultimedia fundamental concepts in video
Multimedia fundamental concepts in videoMazin Alwaaly
 
SPIHT(Set Partitioning In Hierarchical Trees)
SPIHT(Set Partitioning In Hierarchical Trees)SPIHT(Set Partitioning In Hierarchical Trees)
SPIHT(Set Partitioning In Hierarchical Trees)M.k. Praveen
 

Was ist angesagt? (20)

data compression technique
data compression techniquedata compression technique
data compression technique
 
Image restoration and degradation model
Image restoration and degradation modelImage restoration and degradation model
Image restoration and degradation model
 
Video Compression Basics
Video Compression BasicsVideo Compression Basics
Video Compression Basics
 
Codecs
CodecsCodecs
Codecs
 
Chapter 9 morphological image processing
Chapter 9 morphological image processingChapter 9 morphological image processing
Chapter 9 morphological image processing
 
Fundamentals of Data compression
Fundamentals of Data compressionFundamentals of Data compression
Fundamentals of Data compression
 
lecture on data compression
lecture on data compressionlecture on data compression
lecture on data compression
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
 
Data compression
Data compressionData compression
Data compression
 
Vector quantization
Vector quantizationVector quantization
Vector quantization
 
Transform coding
Transform codingTransform coding
Transform coding
 
Datalinklayer tanenbaum
Datalinklayer tanenbaumDatalinklayer tanenbaum
Datalinklayer tanenbaum
 
Framing Protocols
Framing ProtocolsFraming Protocols
Framing Protocols
 
Lossless Compression
Lossless CompressionLossless Compression
Lossless Compression
 
Data compression
Data compressionData compression
Data compression
 
JPEG Image Compression
JPEG Image CompressionJPEG Image Compression
JPEG Image Compression
 
Multimedia fundamental concepts in video
Multimedia fundamental concepts in videoMultimedia fundamental concepts in video
Multimedia fundamental concepts in video
 
Multimedia:Multimedia compression
Multimedia:Multimedia compression Multimedia:Multimedia compression
Multimedia:Multimedia compression
 
SPIHT(Set Partitioning In Hierarchical Trees)
SPIHT(Set Partitioning In Hierarchical Trees)SPIHT(Set Partitioning In Hierarchical Trees)
SPIHT(Set Partitioning In Hierarchical Trees)
 

Ähnlich wie Data Compression Lecture

10lecture10datacompression-171023182241.pdf
10lecture10datacompression-171023182241.pdf10lecture10datacompression-171023182241.pdf
10lecture10datacompression-171023182241.pdfPUSHKAR ARYA
 
Data compression
Data compressionData compression
Data compressionVimal Gupta
 
Video compression
Video compressionVideo compression
Video compressionDeepa K C
 
Lecture 6 -_presentation_layer
Lecture 6 -_presentation_layerLecture 6 -_presentation_layer
Lecture 6 -_presentation_layerSerious_SamSoul
 
Multimedia revision 2017
Multimedia revision 2017Multimedia revision 2017
Multimedia revision 2017greg robertson
 
Seminar Report on image compression
Seminar Report on image compressionSeminar Report on image compression
Seminar Report on image compressionPradip Kumar
 
Image Processing in Android Environment AJCSE
Image Processing in Android Environment AJCSEImage Processing in Android Environment AJCSE
Image Processing in Android Environment AJCSEBRNSSPublicationHubI
 
Teknik Pengkodean (2).pptx
Teknik Pengkodean (2).pptxTeknik Pengkodean (2).pptx
Teknik Pengkodean (2).pptxzulhelmanz
 
Data compression algorithms
Data compression  algorithmsData compression  algorithms
Data compression algorithmsMohnishReddy1
 
Dr.U.Priya, Head & Assistant Professor of Commerce, Bon Secours for Women, Th...
Dr.U.Priya, Head & Assistant Professor of Commerce, Bon Secours for Women, Th...Dr.U.Priya, Head & Assistant Professor of Commerce, Bon Secours for Women, Th...
Dr.U.Priya, Head & Assistant Professor of Commerce, Bon Secours for Women, Th...PriyaU5
 
Audio And Image Files
Audio And Image FilesAudio And Image Files
Audio And Image FilesWynthorpe
 
Task 1 – digital graphics for computer games
Task 1 – digital graphics for computer gamesTask 1 – digital graphics for computer games
Task 1 – digital graphics for computer gamesJames-003
 

Ähnlich wie Data Compression Lecture (20)

10lecture10datacompression-171023182241.pdf
10lecture10datacompression-171023182241.pdf10lecture10datacompression-171023182241.pdf
10lecture10datacompression-171023182241.pdf
 
Pbl1
Pbl1Pbl1
Pbl1
 
Data compression
Data compressionData compression
Data compression
 
Video compression
Video compressionVideo compression
Video compression
 
Lecture 6 -_presentation_layer
Lecture 6 -_presentation_layerLecture 6 -_presentation_layer
Lecture 6 -_presentation_layer
 
Media Encoding
Media Encoding Media Encoding
Media Encoding
 
Presentation on Image Compression
Presentation on Image Compression Presentation on Image Compression
Presentation on Image Compression
 
Multimedia revision 2017
Multimedia revision 2017Multimedia revision 2017
Multimedia revision 2017
 
Seminar Report on image compression
Seminar Report on image compressionSeminar Report on image compression
Seminar Report on image compression
 
Image Processing in Android Environment AJCSE
Image Processing in Android Environment AJCSEImage Processing in Android Environment AJCSE
Image Processing in Android Environment AJCSE
 
Chap55
Chap55Chap55
Chap55
 
Teknik Pengkodean (2).pptx
Teknik Pengkodean (2).pptxTeknik Pengkodean (2).pptx
Teknik Pengkodean (2).pptx
 
Audio compression
Audio compressionAudio compression
Audio compression
 
Data compression algorithms
Data compression  algorithmsData compression  algorithms
Data compression algorithms
 
Chap62
Chap62Chap62
Chap62
 
data compression.
data compression.data compression.
data compression.
 
Dr.U.Priya, Head & Assistant Professor of Commerce, Bon Secours for Women, Th...
Dr.U.Priya, Head & Assistant Professor of Commerce, Bon Secours for Women, Th...Dr.U.Priya, Head & Assistant Professor of Commerce, Bon Secours for Women, Th...
Dr.U.Priya, Head & Assistant Professor of Commerce, Bon Secours for Women, Th...
 
Audio And Image Files
Audio And Image FilesAudio And Image Files
Audio And Image Files
 
Task 1 – digital graphics for computer games
Task 1 – digital graphics for computer gamesTask 1 – digital graphics for computer games
Task 1 – digital graphics for computer games
 
Compression
CompressionCompression
Compression
 

Mehr von Dr Rajiv Srivastava

Placement at sagar group Bhopal | SIRT College Bhopal
Placement at sagar group Bhopal  | SIRT College Bhopal Placement at sagar group Bhopal  | SIRT College Bhopal
Placement at sagar group Bhopal | SIRT College Bhopal Dr Rajiv Srivastava
 
How to Prepare for Group Discussion
How to Prepare for Group DiscussionHow to Prepare for Group Discussion
How to Prepare for Group DiscussionDr Rajiv Srivastava
 
SAGE GROUP - BEST ENGINEERING COLLEGE IN BHOPAL MP
SAGE GROUP - BEST ENGINEERING COLLEGE IN BHOPAL MP SAGE GROUP - BEST ENGINEERING COLLEGE IN BHOPAL MP
SAGE GROUP - BEST ENGINEERING COLLEGE IN BHOPAL MP Dr Rajiv Srivastava
 
Topic : X.25, Frame relay and ATM
Topic :  X.25, Frame relay and ATMTopic :  X.25, Frame relay and ATM
Topic : X.25, Frame relay and ATMDr Rajiv Srivastava
 
Topic : ISDN(integrated services digital network) part 2
Topic : ISDN(integrated services digital network) part 2Topic : ISDN(integrated services digital network) part 2
Topic : ISDN(integrated services digital network) part 2Dr Rajiv Srivastava
 
Topic: ISDN (Integrated Services Digital Network)
Topic: ISDN (Integrated Services Digital Network)Topic: ISDN (Integrated Services Digital Network)
Topic: ISDN (Integrated Services Digital Network)Dr Rajiv Srivastava
 
Topic: Virtual circuit & message switching
Topic: Virtual circuit & message switchingTopic: Virtual circuit & message switching
Topic: Virtual circuit & message switchingDr Rajiv Srivastava
 
Introduction to switching & circuit switching
Introduction to switching & circuit switchingIntroduction to switching & circuit switching
Introduction to switching & circuit switchingDr Rajiv Srivastava
 
Topic:Terminal handling & polling
Topic:Terminal handling & pollingTopic:Terminal handling & polling
Topic:Terminal handling & pollingDr Rajiv Srivastava
 
Applications of Time Division multiplexing : statistical TDM
Applications of  Time Division multiplexing : statistical TDMApplications of  Time Division multiplexing : statistical TDM
Applications of Time Division multiplexing : statistical TDMDr Rajiv Srivastava
 
Multiplexing : Wave Division Multiplexing
Multiplexing : Wave Division MultiplexingMultiplexing : Wave Division Multiplexing
Multiplexing : Wave Division MultiplexingDr Rajiv Srivastava
 
Data Communication & Computer network: Shanon fano coding
Data Communication & Computer network: Shanon fano codingData Communication & Computer network: Shanon fano coding
Data Communication & Computer network: Shanon fano codingDr Rajiv Srivastava
 
Data Communication & Computer Networks : LZW compression method
Data Communication & Computer Networks : LZW compression methodData Communication & Computer Networks : LZW compression method
Data Communication & Computer Networks : LZW compression methodDr Rajiv Srivastava
 
Data Communication & Computer Networks : LZ algorithms
Data Communication & Computer Networks : LZ algorithmsData Communication & Computer Networks : LZ algorithms
Data Communication & Computer Networks : LZ algorithmsDr Rajiv Srivastava
 

Mehr von Dr Rajiv Srivastava (20)

Trends of it
Trends of itTrends of it
Trends of it
 
Placement at sagar group Bhopal | SIRT College Bhopal
Placement at sagar group Bhopal  | SIRT College Bhopal Placement at sagar group Bhopal  | SIRT College Bhopal
Placement at sagar group Bhopal | SIRT College Bhopal
 
How to Prepare for Group Discussion
How to Prepare for Group DiscussionHow to Prepare for Group Discussion
How to Prepare for Group Discussion
 
Unix ppt
Unix pptUnix ppt
Unix ppt
 
SAGE GROUP - BEST ENGINEERING COLLEGE IN BHOPAL MP
SAGE GROUP - BEST ENGINEERING COLLEGE IN BHOPAL MP SAGE GROUP - BEST ENGINEERING COLLEGE IN BHOPAL MP
SAGE GROUP - BEST ENGINEERING COLLEGE IN BHOPAL MP
 
Topic : X.25, Frame relay and ATM
Topic :  X.25, Frame relay and ATMTopic :  X.25, Frame relay and ATM
Topic : X.25, Frame relay and ATM
 
Topic : B ISDN
Topic : B ISDNTopic : B ISDN
Topic : B ISDN
 
Topic : ISDN(integrated services digital network) part 2
Topic : ISDN(integrated services digital network) part 2Topic : ISDN(integrated services digital network) part 2
Topic : ISDN(integrated services digital network) part 2
 
Topic: ISDN (Integrated Services Digital Network)
Topic: ISDN (Integrated Services Digital Network)Topic: ISDN (Integrated Services Digital Network)
Topic: ISDN (Integrated Services Digital Network)
 
Topic: Virtual circuit & message switching
Topic: Virtual circuit & message switchingTopic: Virtual circuit & message switching
Topic: Virtual circuit & message switching
 
Topic Packet switching
Topic Packet switchingTopic Packet switching
Topic Packet switching
 
Introduction to switching & circuit switching
Introduction to switching & circuit switchingIntroduction to switching & circuit switching
Introduction to switching & circuit switching
 
Topic:Terminal handling & polling
Topic:Terminal handling & pollingTopic:Terminal handling & polling
Topic:Terminal handling & polling
 
Topic: Spread Spectrum
Topic: Spread SpectrumTopic: Spread Spectrum
Topic: Spread Spectrum
 
Applications of Time Division multiplexing : statistical TDM
Applications of  Time Division multiplexing : statistical TDMApplications of  Time Division multiplexing : statistical TDM
Applications of Time Division multiplexing : statistical TDM
 
Multiplexing : Wave Division Multiplexing
Multiplexing : Wave Division MultiplexingMultiplexing : Wave Division Multiplexing
Multiplexing : Wave Division Multiplexing
 
Multiplexing : FDM
Multiplexing : FDMMultiplexing : FDM
Multiplexing : FDM
 
Data Communication & Computer network: Shanon fano coding
Data Communication & Computer network: Shanon fano codingData Communication & Computer network: Shanon fano coding
Data Communication & Computer network: Shanon fano coding
 
Data Communication & Computer Networks : LZW compression method
Data Communication & Computer Networks : LZW compression methodData Communication & Computer Networks : LZW compression method
Data Communication & Computer Networks : LZW compression method
 
Data Communication & Computer Networks : LZ algorithms
Data Communication & Computer Networks : LZ algorithmsData Communication & Computer Networks : LZ algorithms
Data Communication & Computer Networks : LZ algorithms
 

Kürzlich hochgeladen

Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 

Kürzlich hochgeladen (20)

Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 

Data Compression Lecture

  • 1. Introduction to Data communication Topic : Data Compression Lecture #10 Dr Rajiv Srivastava Director Sagar Institute of Research & Technology (SIRT) Sagar Group of Institutions, Bhopal http://www.sirtbhopal.ac.in
  • 3. Data Compression • Data Compression is a reduction in the number of bits needed to represent data. Compressing data can save storage capacity, speed file transfer, and decrease costs for storage hardware and network bandwidth. • Data Compression refers to the reducing the number of bits that need to be transmitted over communication channel. • Data Compression reduces the number of bits sent • Data Compression becomes particularly important when we send data with high size such as audio & video • Even with very fast transmission speed of data we need to send data in short time. We need to Compress data for this purpose.
  • 4. • Virtually all form of data contain redundancy i.e. it is the amount of wasted "space" used to transmit certain data. • By making use of more efficient data representation methods, redundancy can be reduced. • Even 7 bit ASCII code has some redundancy in it. • The goal of data compression is to represent an information source (e.g. a data file, a speech signal, an image, or a video signal) as accurately as possible using the fewest number of bits.
  • 5. Compression ratio • Data compression ratio, also known as compression power, is a term used to quantify the reduction in data-representation size produced by a data compression algorithm. • The data compression ratio is analogous to the physical compression ratio used to measure physical compression of substances.
  • 6. • Data compression ratio is defined as the ratio between the uncompressed size and compressed size. • Thus a representation that compresses a 10 MB file to 2MB has a compression ratio of 10/2 = 5, often notated as an exploit ratio , 5:1 read five to one or as an implicit ratio 5/1 • Note that this formulation applies equally for compression, where the uncompressed size is that of the original and for decompression, where the uncompressed size is that of the reproduction.
  • 7. • Sometimes the space saving is given instead, which is defined as the reduction in size relative to the uncompressed size. • • Thus a representation that compresses a 10 MB file to 2 MB would yield a space saving of 1-2/10 = 0.8 often notated as a percentage, 80 %
  • 8. • For signals of indefinite size , such as streaming audio and video the compression ratio is defined in terms of uncompressed and compressed data rates instead of data sizes. and instead of space savings , one speaks of data-rate saving which is defined as the data- rate reduction relative to the uncompressed data rate.
  • 9. • For example uncompressed songs in CD format have a data rate of 16 bits /channel x 2 channel x 44.1 kHz = 1.4 Mbits, • AAC files on an iPod are typically compressed to 128 kbits, yielding a compression ratio of 10.9 for data-rate saving of 0.91 or 91%.
  • 11. Lossy Compression • Lossy Compression refers to data compression techniques in which some amount of data is lost. Lossy compression technologies attempt to eliminate redundant or unnecessary information. • If the decompressed information need not be an exact replica of the original information but something very close, we can use a lossy data compression method. • lossy compression reduces a file by permanently eliminating certain information, especially redundant information. When the file is uncompressed, only a part of the original information is still there (although the user may not notice it). Lossy compression is generally used for video and sound, where a certain amount of information loss will not be detected by most users.
  • 12. • The JPEG image file, commonly used for photographs and other complex still images on the Web, is an image that has lossy compression. Using JPEG compression, the creator can decide how much loss to introduce and make a trade-off between file size and image quality. Most video compression technologies, such as MPEG, use a lossy technique.
  • 13. Lossy Compression Contd.. The best example is a videoconference where there is an acceptable amount of frame loss in order to deliver the image in real time. People may appear jerky in their movements, but you still have a grasp for what is happening on the other end of the conference. In the case of graphics files, some resolution may be lost in order to create a smaller file. The loss may be in the form of color depth or graphic detail. For example, high- resolution details can be lost if a picture is going to be displayed on a low-resolution device. Loss is also acceptable in voice and audio compression, depending on the desired quality.
  • 14. These methods are called lossy compression methods because we will lose some of the original data in the process. Several methods have been developed using lossy compression techniques. Joint photographic experts group (JPEG) is used to compress pictures and graphics. Motion picture experts group (MPEG) is used to compress video.
  • 15. High Compression (Low Quality) Low Compression (High Quality)
  • 16. Lossless Compression • The lossless compression refers to data compression techniques in which no data is lost. • For most types of data, lossless compression techniques can reduce the space needed by only about 50%. • For greater compression, one must use a lossy compression technique. Note, however, that only certain types of data - graphics, audio, and video -- can tolerate lossy compression. • You must use a lossless compression technique when compressing data and programs. • The PKZIP compression technology is an example of lossless compression.
  • 17. • With lossless compression, every single bit of data that was originally in the file remains after the file is uncompressed. All of the information is completely restored. • This is generally the technique of choice for text or spreadsheet files, where losing words or financial data could pose a problem. • The Graphics Interchange File (GIF) is an image format used on the Web that provides lossless compression.
  • 18. • In Lossless Data Compression the compressing & decompressing algorithm are usually the inverse of each other. In other words after decompressing we will get exact data as they were before compressing. Nothing is lost. The following are some techniques used in lossless data compression 1. Null compression 2. Run Length Encoding
  • 19. 3. Statistical Compression • Shannon Fano Encoding • Huffman Encoding – Adaptive Compression (Adaptive Huffman) • Dictionary Based Compression » LZ77, LZ78 Algorithms » Lempel Ziv Welch (LZW) encoding
  • 20. 1. Null compression Replaces a series of blank spaces with a compression code, followed by a value that represents the number of spaces. Example : hello friend how is your life?
  • 21. 2. Run Length Encoding(RLE) When data contain strings of repeated symbols (such as bits or characters), the strings can be replaced by a special marker, followed by the repeated symbol, followed by the number of occurrences. For example, in given Figure, the symbol # is the marker. The symbol being repeated (the run symbol) follows the marker. After the run symbol, the number of occurrences (length) is shown by a two-digit number. Example : This run-length encoding method can be used in audio (silence is a run of 0s) and video (run of a picture element having the same brightness and color).
  • 23. 3. Statistical Compression Another method of lossless compression is statistical compression. This method uses short codes for frequent symbols and long codes for infrequent symbols. In this way, the length of the total data is reduced tremendously. The following methods are very popular lossless compression methods : • Shannon Fano Encoding • Huffman Encoding – Adaptive Compression (Adaptive Huffman) • Dictionary Based Compression » LZ77, LZ78 Algorithms » Lempel Ziv Welch (LZW) encoding
  • 24. 3. Relative Compression Another way of reducing the number of bits is a method called relative compression or differential encoding. This is extremely useful if we are sending, for example, video, Commercial TVs send 30 frames of 0s and 1s every second. However, usually there is little difference between consecutive frames. So, instead of sending an entire frame, we send only the difference between consecutive frames. The small differences can be encoded into small streams of bits.
  • 25.
  • 26.
  • 27.
  • 28. Image Compression • Grey code • Error metrics • Intuitive methods • Image transforms • Jpeg
  • 29. Thank You Dr Rajiv Srivastava Director Sagar Institute of Research & Technology (SIRT) Sagar Group of Institutions, Bhopal http://www.sirtbhopal.ac.in