SlideShare a Scribd company logo
MU-MIT
Arithmetic Coding
GROUP MEMBERS
1.Gidey Leul
6/18/2017
1ECE /MIT/2009
CONTENTS
1. What is Source Coding general concept?
2. What are Commonly Used Data compression algorithms?
3. Problems of Huffman and the need of Arithmetic coding , general comparison?
4. Arithmetic Encoding.
5. Arithmetic Decoding.
6/18/2017
2ECE /MIT/2009
1.GENERAL CONCEPT OF
SOURCE CODING
Source Coding : encoding information using fewer bits than the original
representation.
Importance of Data Compression is :
A technique to reduce the quantity of data .
preserve quality of themultimedia data.
Allows more bytes to be packed than uncompressed.
Saving storage ,saving Bandwidth .
Reduce file transfer time . quick encode & send .
i.e,mp4->mp3.
6/18/2017 3ECE /MIT/2009
CONTND….
6/18/2017 4ECE /MIT/2009
CONTND…..
Compression
can be either:
I. LOSSY or
II. lossles
FIGURE 1.2 Comparision Loosy vs lossless
6/18/2017 5ECE /MIT/2009
CONTND…..
Figure 1.3 Quality comparison for lossy system
o What is Lossy Compression?
 after compression ,file cannot recover.
 reduce image size .
 redundant information lost.
 i.e -mp3,JPEG,wav
6/18/2017 6ECE /MIT/2009
Contnd… Reserved original , word press.
text
6/18/2017 7ECE /MIT/2009
2.COMMONLY USED COMPRESSING
ALGORITHMS
• i.Huffman Coding
• assign short codewords to those input blocks with high probabilities and long
codewords to those with low probabilities.
6/18/2017 8ECE /MIT/2009
CONTND…..
ii. Run Length Encoding
Algorithm:
 Run length encoding is simple form of data compression.
 consecutive runs of data are stored as single data value .
 Each count(indicating how many times that data is repeating) .
 It is useful for compressing simple graphic images .
EXAMPLE:
Input: ZZZZZZZZZZZZCZZZZZZZZZZZZCCCZZZZZZZZZZZZZZZZZZZZZZZZC
Output:
12ZC12Z3C24ZC
6/18/2017 9ECE /MIT/2009
III.ARITHMETIC CODING
 Mathematical compression.
Based on the coding of a input sequence using a rational number in ranges [0,1).
 Doesn´t use a discrete number of bits for each.
The main idea behind Arithmetic coding is to assign each symbol an interval.
6/18/2017 10ECE /MIT/2009
3.PROBLEMS OF HUFFMAN AND THE NEED OF ARITHMETIC
CODING , GENERAL COMPARISON?
ARITHMETIC CODING
• Huffman coding
 Less efficiency
 less edible.
……… .....in contrast
Faster
Enough storage
• Arithmetic Coding
 redundancy much reduced.
Can be used with any model
conjunction , adaptiveness ,sharp in any
model.
…………………………Dis advantage AC
 Too slow because mathematical
operations .
Significant amount of memory.
6/18/2017 11ECE /MIT/2009
CONTND….
1.5 Figure comparison between Huffman And Arithmetic coding 6/18/2017 12ECE /MIT/2009
4.ARITHMETIC ENCODING STEPS
• To code symbol s ,where symbols are numbered from 1 to n and symbol I has the
probability pr[i];
• low bound = 𝑖=0𝑝𝑟
𝑠−1
[𝑖]
• High bound = 𝑖=0𝑝𝑟
𝑠−1
[𝑖]
• Range=high-low
• Low=low + range *(low bound)
• High=low + range *(high bound)
6/18/2017 13ECE /MIT/2009
CONTND----
• Consider encoding the name MIT CAMPAS Again, we need the frequency of all the
characters in the text
• char freq.
• Space 0.1
• A 0.2
• C 0.1
• I 0.1
• M 0.2
• P 0.1
• S 0.1
• T 0.1
6/18/2017 14ECE /MIT/2009
CONTND----
• . character probability range
• space 0.1 [0.00, 0.10)
• A 0.2 [0.10, 0.30)
• C 0.1 [0.30, 0.40)
• I 0.1 [0.40, 0.50)
• M 0.2 [0.50, 0.70)
• P 0.1 [0.70, 0.80)
• S 0.1 [0.80, 0.90)
• T 0.1 [0.90, 1.00)
•
6/18/2017 15ECE /MIT/2009
CONTND----
• . ENCODING THEWORD MIT CAMPAS
• chr low high
• 0.0 1.0
• M 0.5 0.7
• I 0.54 0.55
• T 0.549 0.550
• Space 0.5490 0.5491
• C 0.54903 0.54941
• A 0.549301 0.549033
• M 0.5493015 0.5493017
• P 0.54930164 0.54930166
A 0.549301643 0.549316466
S 0.5493016438 0.5493016439
6/18/2017 16ECE /MIT/2009
CONTND
• .The final low value, 0.5493016438 will uniquely encode the name MIT CAMPAS.
• which in binary is approximately [0.11010 00000, 0.11010 01100).We can uniquely
identify this interval by outputting 1101000.
• Another example Encoding
suppose the alphabet is (a, e, i, O, u, !I, and a fixed model is used with
probabilities shown in Table I. Imagine trans mitting the message eaii! .
 Initially, both encoder and decoder know that the range is [0, 1).
 After seeing the first symbol, e, the encoder narrows it to [0.2, 04, the range the
model allocates to this symbol.
The second symbol, a, will narrow this new range to the first one-fifth of it,
6/18/2017 17ECE /MIT/2009
CONTND…
• .
Figure 1.7 frequency of alphabets
6/18/2017 18ECE /MIT/2009
CONTND…
• 1.8 Graphical representation of Arithmetic coding.
6/18/2017 19ECE /MIT/2009
HOW THE ARITHMETIC DECODER WORKS?
 Decoder detects the last suffix o.23355.
Relative to the fixed model of Table I,
.The entropy of the five-symbol message eaii! Is taking logarithm of each term would
be 4.22 .
6/18/2017 20ECE /MIT/2009
GENERALLY……..
 Arithmetic coding typically has a better compression ratio than Huffman coding, as it
produces a single symbol rather than several separate code words.
 Arithmetic coding is a lossless coding technique.
Few disadvantages of arithmetic coding.
I . whole code word must be received to start decoding the symbols.
 If corrupt bit in the code word, the entire message could become corrupt.
II .There is a limit to the precision of the number which can be encoded, thus limiting
the number of symbols to encode within a code word.
 There also exists many patents upon arithmetic coding, so the use of some of the
algorithms also call upon royalty fees.
6/18/2017 21ECE /MIT/2009
CONTND…
6/18/2017 22ECE /MIT/2009

More Related Content

What's hot

Lzw coding technique for image compression
Lzw coding technique for image compressionLzw coding technique for image compression
Lzw coding technique for image compression
Tata Consultancy Services
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
Ahmed Daoud
 
Video compression
Video compressionVideo compression
Video compression
DarkNight14
 
Thresholding.ppt
Thresholding.pptThresholding.ppt
Thresholding.ppt
shankar64
 
Image compression
Image compression Image compression
Image compression
GARIMA SHAKYA
 
Lecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image ProcessingLecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image Processing
VARUN KUMAR
 
Smoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainSmoothing Filters in Spatial Domain
Smoothing Filters in Spatial Domain
Madhu Bala
 
Image compression standards
Image compression standardsImage compression standards
Image compression standards
kirupasuchi1996
 
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
 
Digital Image Processing - Image Restoration
Digital Image Processing - Image RestorationDigital Image Processing - Image Restoration
Digital Image Processing - Image Restoration
Mathankumar S
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
Poonam Seth
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
A B Shinde
 
Transform coding
Transform codingTransform coding
Transform coding
Nancy K
 
Data Redundacy
Data RedundacyData Redundacy
Data Redundacy
Poonam Seth
 
JPEG Image Compression
JPEG Image CompressionJPEG Image Compression
JPEG Image Compression
Aishwarya K. M.
 
Wavelet based image compression technique
Wavelet based image compression techniqueWavelet based image compression technique
Wavelet based image compression techniquePriyanka Pachori
 
Image compression in digital image processing
Image compression in digital image processingImage compression in digital image processing
Image compression in digital image processing
DHIVYADEVAKI
 
Predictive coding
Predictive codingPredictive coding
Predictive coding
p_ayal
 

What's hot (20)

Lzw coding technique for image compression
Lzw coding technique for image compressionLzw coding technique for image compression
Lzw coding technique for image compression
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Huffman Coding
Huffman CodingHuffman Coding
Huffman Coding
 
Video compression
Video compressionVideo compression
Video compression
 
Thresholding.ppt
Thresholding.pptThresholding.ppt
Thresholding.ppt
 
Image compression
Image compression Image compression
Image compression
 
Lecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image ProcessingLecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image Processing
 
Smoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainSmoothing Filters in Spatial Domain
Smoothing Filters in Spatial Domain
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Image compression standards
Image compression standardsImage compression standards
Image compression standards
 
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
 
Digital Image Processing - Image Restoration
Digital Image Processing - Image RestorationDigital Image Processing - Image Restoration
Digital Image Processing - Image Restoration
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
 
Transform coding
Transform codingTransform coding
Transform coding
 
Data Redundacy
Data RedundacyData Redundacy
Data Redundacy
 
JPEG Image Compression
JPEG Image CompressionJPEG Image Compression
JPEG Image Compression
 
Wavelet based image compression technique
Wavelet based image compression techniqueWavelet based image compression technique
Wavelet based image compression technique
 
Image compression in digital image processing
Image compression in digital image processingImage compression in digital image processing
Image compression in digital image processing
 
Predictive coding
Predictive codingPredictive coding
Predictive coding
 

Similar to Arithmetic coding

Evaluation of Huffman and Arithmetic Algorithms for Multimedia Compression St...
Evaluation of Huffman and Arithmetic Algorithms for Multimedia Compression St...Evaluation of Huffman and Arithmetic Algorithms for Multimedia Compression St...
Evaluation of Huffman and Arithmetic Algorithms for Multimedia Compression St...
IJCSEA Journal
 
A Novel Design For Generating Dynamic Length Message Digest To Ensure Integri...
A Novel Design For Generating Dynamic Length Message Digest To Ensure Integri...A Novel Design For Generating Dynamic Length Message Digest To Ensure Integri...
A Novel Design For Generating Dynamic Length Message Digest To Ensure Integri...
IRJET Journal
 
Mpeg 2
Mpeg 2Mpeg 2
Design and Implementation of DMC for Memory Reliability Enhancement
Design and Implementation of DMC for Memory Reliability EnhancementDesign and Implementation of DMC for Memory Reliability Enhancement
Design and Implementation of DMC for Memory Reliability Enhancement
IRJET Journal
 
Comparision Of Various Lossless Image Compression Techniques
Comparision Of Various Lossless Image Compression TechniquesComparision Of Various Lossless Image Compression Techniques
Comparision Of Various Lossless Image Compression Techniques
IJERA Editor
 
Information Theory and Coding Question Bank
Information Theory and Coding Question BankInformation Theory and Coding Question Bank
Information Theory and Coding Question Bank
miraclebabu
 
Comparative Analysis of Huffman and Arithmetic Coding Algorithms for Image Co...
Comparative Analysis of Huffman and Arithmetic Coding Algorithms for Image Co...Comparative Analysis of Huffman and Arithmetic Coding Algorithms for Image Co...
Comparative Analysis of Huffman and Arithmetic Coding Algorithms for Image Co...
IRJET Journal
 
Design of Image Compression Algorithm using MATLAB
Design of Image Compression Algorithm using MATLABDesign of Image Compression Algorithm using MATLAB
Design of Image Compression Algorithm using MATLAB
IJEEE
 
Comprehensive Performance Evaluation on Multiplication of Matrices using MPI
Comprehensive Performance Evaluation on Multiplication of Matrices using MPIComprehensive Performance Evaluation on Multiplication of Matrices using MPI
Comprehensive Performance Evaluation on Multiplication of Matrices using MPI
ijtsrd
 
Coding and Indexing Shape Feature using Golomb-Rice Coding for CBIR Applications
Coding and Indexing Shape Feature using Golomb-Rice Coding for CBIR ApplicationsCoding and Indexing Shape Feature using Golomb-Rice Coding for CBIR Applications
Coding and Indexing Shape Feature using Golomb-Rice Coding for CBIR Applications
IJERDJOURNAL
 
arithmetic coding for signal and multimedia processing
arithmetic coding for signal and multimedia processingarithmetic coding for signal and multimedia processing
arithmetic coding for signal and multimedia processing
Karansingh415757
 
Error Detection and Correction in SRAM Cell Using Decimal Matrix Code
Error Detection and Correction in SRAM Cell Using Decimal Matrix CodeError Detection and Correction in SRAM Cell Using Decimal Matrix Code
Error Detection and Correction in SRAM Cell Using Decimal Matrix Code
iosrjce
 
Data compression
Data compressionData compression
Data compression
Chaitanya Belhekar
 
Digital image processing- Compression- Different Coding techniques
Digital image processing- Compression- Different Coding techniques Digital image processing- Compression- Different Coding techniques
Digital image processing- Compression- Different Coding techniques
sudarmani rajagopal
 
Radical Data Compression Algorithm Using Factorization
Radical Data Compression Algorithm Using FactorizationRadical Data Compression Algorithm Using Factorization
Radical Data Compression Algorithm Using Factorization
CSCJournals
 
Lossless Data Compression Using Rice Algorithm Based On Curve Fitting Technique
Lossless Data Compression Using Rice Algorithm Based On Curve Fitting TechniqueLossless Data Compression Using Rice Algorithm Based On Curve Fitting Technique
Lossless Data Compression Using Rice Algorithm Based On Curve Fitting Technique
IRJET Journal
 
Image compression using negative format
Image compression using negative formatImage compression using negative format
Image compression using negative format
eSAT Journals
 
Image compression using negative format
Image compression using negative formatImage compression using negative format
Image compression using negative format
eSAT Publishing House
 
11.the novel lossless text compression technique using ambigram logic and huf...
11.the novel lossless text compression technique using ambigram logic and huf...11.the novel lossless text compression technique using ambigram logic and huf...
11.the novel lossless text compression technique using ambigram logic and huf...Alexander Decker
 

Similar to Arithmetic coding (20)

Evaluation of Huffman and Arithmetic Algorithms for Multimedia Compression St...
Evaluation of Huffman and Arithmetic Algorithms for Multimedia Compression St...Evaluation of Huffman and Arithmetic Algorithms for Multimedia Compression St...
Evaluation of Huffman and Arithmetic Algorithms for Multimedia Compression St...
 
A Novel Design For Generating Dynamic Length Message Digest To Ensure Integri...
A Novel Design For Generating Dynamic Length Message Digest To Ensure Integri...A Novel Design For Generating Dynamic Length Message Digest To Ensure Integri...
A Novel Design For Generating Dynamic Length Message Digest To Ensure Integri...
 
Mpeg 2
Mpeg 2Mpeg 2
Mpeg 2
 
first_assignment_Report
first_assignment_Reportfirst_assignment_Report
first_assignment_Report
 
Design and Implementation of DMC for Memory Reliability Enhancement
Design and Implementation of DMC for Memory Reliability EnhancementDesign and Implementation of DMC for Memory Reliability Enhancement
Design and Implementation of DMC for Memory Reliability Enhancement
 
Comparision Of Various Lossless Image Compression Techniques
Comparision Of Various Lossless Image Compression TechniquesComparision Of Various Lossless Image Compression Techniques
Comparision Of Various Lossless Image Compression Techniques
 
Information Theory and Coding Question Bank
Information Theory and Coding Question BankInformation Theory and Coding Question Bank
Information Theory and Coding Question Bank
 
Comparative Analysis of Huffman and Arithmetic Coding Algorithms for Image Co...
Comparative Analysis of Huffman and Arithmetic Coding Algorithms for Image Co...Comparative Analysis of Huffman and Arithmetic Coding Algorithms for Image Co...
Comparative Analysis of Huffman and Arithmetic Coding Algorithms for Image Co...
 
Design of Image Compression Algorithm using MATLAB
Design of Image Compression Algorithm using MATLABDesign of Image Compression Algorithm using MATLAB
Design of Image Compression Algorithm using MATLAB
 
Comprehensive Performance Evaluation on Multiplication of Matrices using MPI
Comprehensive Performance Evaluation on Multiplication of Matrices using MPIComprehensive Performance Evaluation on Multiplication of Matrices using MPI
Comprehensive Performance Evaluation on Multiplication of Matrices using MPI
 
Coding and Indexing Shape Feature using Golomb-Rice Coding for CBIR Applications
Coding and Indexing Shape Feature using Golomb-Rice Coding for CBIR ApplicationsCoding and Indexing Shape Feature using Golomb-Rice Coding for CBIR Applications
Coding and Indexing Shape Feature using Golomb-Rice Coding for CBIR Applications
 
arithmetic coding for signal and multimedia processing
arithmetic coding for signal and multimedia processingarithmetic coding for signal and multimedia processing
arithmetic coding for signal and multimedia processing
 
Error Detection and Correction in SRAM Cell Using Decimal Matrix Code
Error Detection and Correction in SRAM Cell Using Decimal Matrix CodeError Detection and Correction in SRAM Cell Using Decimal Matrix Code
Error Detection and Correction in SRAM Cell Using Decimal Matrix Code
 
Data compression
Data compressionData compression
Data compression
 
Digital image processing- Compression- Different Coding techniques
Digital image processing- Compression- Different Coding techniques Digital image processing- Compression- Different Coding techniques
Digital image processing- Compression- Different Coding techniques
 
Radical Data Compression Algorithm Using Factorization
Radical Data Compression Algorithm Using FactorizationRadical Data Compression Algorithm Using Factorization
Radical Data Compression Algorithm Using Factorization
 
Lossless Data Compression Using Rice Algorithm Based On Curve Fitting Technique
Lossless Data Compression Using Rice Algorithm Based On Curve Fitting TechniqueLossless Data Compression Using Rice Algorithm Based On Curve Fitting Technique
Lossless Data Compression Using Rice Algorithm Based On Curve Fitting Technique
 
Image compression using negative format
Image compression using negative formatImage compression using negative format
Image compression using negative format
 
Image compression using negative format
Image compression using negative formatImage compression using negative format
Image compression using negative format
 
11.the novel lossless text compression technique using ambigram logic and huf...
11.the novel lossless text compression technique using ambigram logic and huf...11.the novel lossless text compression technique using ambigram logic and huf...
11.the novel lossless text compression technique using ambigram logic and huf...
 

Recently uploaded

Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 

Recently uploaded (20)

Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 

Arithmetic coding

  • 1. MU-MIT Arithmetic Coding GROUP MEMBERS 1.Gidey Leul 6/18/2017 1ECE /MIT/2009
  • 2. CONTENTS 1. What is Source Coding general concept? 2. What are Commonly Used Data compression algorithms? 3. Problems of Huffman and the need of Arithmetic coding , general comparison? 4. Arithmetic Encoding. 5. Arithmetic Decoding. 6/18/2017 2ECE /MIT/2009
  • 3. 1.GENERAL CONCEPT OF SOURCE CODING Source Coding : encoding information using fewer bits than the original representation. Importance of Data Compression is : A technique to reduce the quantity of data . preserve quality of themultimedia data. Allows more bytes to be packed than uncompressed. Saving storage ,saving Bandwidth . Reduce file transfer time . quick encode & send . i.e,mp4->mp3. 6/18/2017 3ECE /MIT/2009
  • 5. CONTND….. Compression can be either: I. LOSSY or II. lossles FIGURE 1.2 Comparision Loosy vs lossless 6/18/2017 5ECE /MIT/2009
  • 6. CONTND….. Figure 1.3 Quality comparison for lossy system o What is Lossy Compression?  after compression ,file cannot recover.  reduce image size .  redundant information lost.  i.e -mp3,JPEG,wav 6/18/2017 6ECE /MIT/2009
  • 7. Contnd… Reserved original , word press. text 6/18/2017 7ECE /MIT/2009
  • 8. 2.COMMONLY USED COMPRESSING ALGORITHMS • i.Huffman Coding • assign short codewords to those input blocks with high probabilities and long codewords to those with low probabilities. 6/18/2017 8ECE /MIT/2009
  • 9. CONTND….. ii. Run Length Encoding Algorithm:  Run length encoding is simple form of data compression.  consecutive runs of data are stored as single data value .  Each count(indicating how many times that data is repeating) .  It is useful for compressing simple graphic images . EXAMPLE: Input: ZZZZZZZZZZZZCZZZZZZZZZZZZCCCZZZZZZZZZZZZZZZZZZZZZZZZC Output: 12ZC12Z3C24ZC 6/18/2017 9ECE /MIT/2009
  • 10. III.ARITHMETIC CODING  Mathematical compression. Based on the coding of a input sequence using a rational number in ranges [0,1).  Doesn´t use a discrete number of bits for each. The main idea behind Arithmetic coding is to assign each symbol an interval. 6/18/2017 10ECE /MIT/2009
  • 11. 3.PROBLEMS OF HUFFMAN AND THE NEED OF ARITHMETIC CODING , GENERAL COMPARISON? ARITHMETIC CODING • Huffman coding  Less efficiency  less edible. ……… .....in contrast Faster Enough storage • Arithmetic Coding  redundancy much reduced. Can be used with any model conjunction , adaptiveness ,sharp in any model. …………………………Dis advantage AC  Too slow because mathematical operations . Significant amount of memory. 6/18/2017 11ECE /MIT/2009
  • 12. CONTND…. 1.5 Figure comparison between Huffman And Arithmetic coding 6/18/2017 12ECE /MIT/2009
  • 13. 4.ARITHMETIC ENCODING STEPS • To code symbol s ,where symbols are numbered from 1 to n and symbol I has the probability pr[i]; • low bound = 𝑖=0𝑝𝑟 𝑠−1 [𝑖] • High bound = 𝑖=0𝑝𝑟 𝑠−1 [𝑖] • Range=high-low • Low=low + range *(low bound) • High=low + range *(high bound) 6/18/2017 13ECE /MIT/2009
  • 14. CONTND---- • Consider encoding the name MIT CAMPAS Again, we need the frequency of all the characters in the text • char freq. • Space 0.1 • A 0.2 • C 0.1 • I 0.1 • M 0.2 • P 0.1 • S 0.1 • T 0.1 6/18/2017 14ECE /MIT/2009
  • 15. CONTND---- • . character probability range • space 0.1 [0.00, 0.10) • A 0.2 [0.10, 0.30) • C 0.1 [0.30, 0.40) • I 0.1 [0.40, 0.50) • M 0.2 [0.50, 0.70) • P 0.1 [0.70, 0.80) • S 0.1 [0.80, 0.90) • T 0.1 [0.90, 1.00) • 6/18/2017 15ECE /MIT/2009
  • 16. CONTND---- • . ENCODING THEWORD MIT CAMPAS • chr low high • 0.0 1.0 • M 0.5 0.7 • I 0.54 0.55 • T 0.549 0.550 • Space 0.5490 0.5491 • C 0.54903 0.54941 • A 0.549301 0.549033 • M 0.5493015 0.5493017 • P 0.54930164 0.54930166 A 0.549301643 0.549316466 S 0.5493016438 0.5493016439 6/18/2017 16ECE /MIT/2009
  • 17. CONTND • .The final low value, 0.5493016438 will uniquely encode the name MIT CAMPAS. • which in binary is approximately [0.11010 00000, 0.11010 01100).We can uniquely identify this interval by outputting 1101000. • Another example Encoding suppose the alphabet is (a, e, i, O, u, !I, and a fixed model is used with probabilities shown in Table I. Imagine trans mitting the message eaii! .  Initially, both encoder and decoder know that the range is [0, 1).  After seeing the first symbol, e, the encoder narrows it to [0.2, 04, the range the model allocates to this symbol. The second symbol, a, will narrow this new range to the first one-fifth of it, 6/18/2017 17ECE /MIT/2009
  • 18. CONTND… • . Figure 1.7 frequency of alphabets 6/18/2017 18ECE /MIT/2009
  • 19. CONTND… • 1.8 Graphical representation of Arithmetic coding. 6/18/2017 19ECE /MIT/2009
  • 20. HOW THE ARITHMETIC DECODER WORKS?  Decoder detects the last suffix o.23355. Relative to the fixed model of Table I, .The entropy of the five-symbol message eaii! Is taking logarithm of each term would be 4.22 . 6/18/2017 20ECE /MIT/2009
  • 21. GENERALLY……..  Arithmetic coding typically has a better compression ratio than Huffman coding, as it produces a single symbol rather than several separate code words.  Arithmetic coding is a lossless coding technique. Few disadvantages of arithmetic coding. I . whole code word must be received to start decoding the symbols.  If corrupt bit in the code word, the entire message could become corrupt. II .There is a limit to the precision of the number which can be encoded, thus limiting the number of symbols to encode within a code word.  There also exists many patents upon arithmetic coding, so the use of some of the algorithms also call upon royalty fees. 6/18/2017 21ECE /MIT/2009