SlideShare a Scribd company logo
1 of 22
Download to read offline
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

Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image CompressionMathankumar S
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression modelslavanya marichamy
 
Frequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesFrequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesDiwaker Pant
 
Log Transformation in Image Processing with Example
Log Transformation in Image Processing with ExampleLog Transformation in Image Processing with Example
Log Transformation in Image Processing with ExampleMustak Ahmmed
 
Image restoration and degradation model
Image restoration and degradation modelImage restoration and degradation model
Image restoration and degradation modelAnupriyaDurai
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationMostafa G. M. Mostafa
 
Predictive coding
Predictive codingPredictive coding
Predictive codingp_ayal
 
Interpixel redundancy
Interpixel redundancyInterpixel redundancy
Interpixel redundancyNaveen Kumar
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image FundamentalsA B Shinde
 
MPEG video compression standard
MPEG video compression standardMPEG video compression standard
MPEG video compression standardanuragjagetiya
 

What's hot (20)

Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
 
Subband Coding
Subband CodingSubband Coding
Subband Coding
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
 
Frequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesFrequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement Techniques
 
Log Transformation in Image Processing with Example
Log Transformation in Image Processing with ExampleLog Transformation in Image Processing with Example
Log Transformation in Image Processing with Example
 
Image restoration and degradation model
Image restoration and degradation modelImage restoration and degradation model
Image restoration and degradation model
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
 
Predictive coding
Predictive codingPredictive coding
Predictive coding
 
Interpixel redundancy
Interpixel redundancyInterpixel redundancy
Interpixel redundancy
 
Data Redundacy
Data RedundacyData Redundacy
Data Redundacy
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Bit plane coding
Bit plane codingBit plane coding
Bit plane coding
 
Lzw coding technique for image compression
Lzw coding technique for image compressionLzw coding technique for image compression
Lzw coding technique for image compression
 
Unit3 dip
Unit3 dipUnit3 dip
Unit3 dip
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Image compression
Image compression Image compression
Image compression
 
JPEG Image Compression
JPEG Image CompressionJPEG Image Compression
JPEG Image Compression
 
Source coding
Source codingSource coding
Source coding
 
MPEG video compression standard
MPEG video compression standardMPEG video compression standard
MPEG video compression standard
 

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
 
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 EnhancementIRJET 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 TechniquesIJERA Editor
 
Information Theory and Coding Question Bank
Information Theory and Coding Question BankInformation Theory and Coding Question Bank
Information Theory and Coding Question Bankmiraclebabu
 
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 MATLABIJEEE
 
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 MPIijtsrd
 
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 ApplicationsIJERDJOURNAL
 
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 processingKaransingh415757
 
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 Codeiosrjce
 
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 FactorizationCSCJournals
 
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 TechniqueIRJET Journal
 
Image compression using negative format
Image compression using negative formatImage compression using negative format
Image compression using negative formateSAT Journals
 
Image compression using negative format
Image compression using negative formatImage compression using negative format
Image compression using negative formateSAT 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

Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
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
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 

Recently uploaded (20)

Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
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
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 

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