SlideShare a Scribd company logo
1 of 8
Download to read offline
JIMMA UNIVERSITY
INSTITUTE OF TECHNOLOGY
SCHOOL OF ELECTRICAL AND COMPUTER ENGINEERING
Assignment: Adaptive Huffman coding
Name Id
Ramadan Hundessa………………RM0046/13-0
Date:january/06/22
Jimma, Ethiopia
1. Overview of Adaptive Huffman coding
In Adaptive Huffman coding we should remember two steps are . nodes should be increasing
order and of the frequency and sum of the frequency in parent node greater than all the
frequency of the side node .so taking these two facts in count it grow the Huffman tree using the
Adaptive Huffman coding [3],[4]
Adaptive Huffman coding is an adaptive coding technique based on Huffman coding. It
permits building the code as the symbols are being transmitted, having no initial knowledge of
source distribution, that allows one-pass encoding and adaptation to changing conditions in
data.[8]
There are a number of implementations of this method, the most notable are FGK (Faller-
Gallager-Knuth) and Vitter algorithm.
FGK algorithm
It is an online coding technique based on Huffman coding. Having no initial knowledge of
occurrence frequencies, it permits dynamically adjusting the Huffman's tree as data are being
transmitted. In a FGK Huffman tree, a special external node, called 0-node, is used to identify a
newly coming character.
Vitter
Encoder and decoder start with only the root node, which has the maximum number. In the
beginning it is our initial NYT(Not yet transferred) node. When we transmit an NYT symbol, we
have to transmit code for the NYT node, then for its generic code. For every symbol that is
already in the tree, we only have to transmit code for its leaf node.
During the pass calculate the frequencies
• Update the Huffman tree accordingly
– Coder – new Huffman tree computed after transmitting the
symbol
– Decoder – new Huffman tree computed after receiving the
symbol
• Symbol set and their initial codes must be known
ahead of time.
• Need NYT (not yet transmitted symbol) to indicate a
new leaf is needed in the tree.
2. Encoding and updating process process of string “MISSISSIPPI” will be given as
follows :
First of all in the for the string (MISSISSIPPI) we write an empty node always we first insert
empty node after doing this we insert m
so we put two empty node here and put the frequency of m here that is m:1 we should always
update the parent node so 1+0 =1 now we insert i so again we put two empty node and insert
i in it and the frequency of i:1 and update its parent node which was empty so after putting it
becomes 1
now we can put s so we again make two empty node and insert s in the right node and insert
the frequency of s which is s:1 and update its parent node we also update the i parent node
which is now 1+1=2
now we will see all left hand side nodes are greater than right hand side so in this case we will
see that it is not in proper order so we will re-loop this node( ) we go back and
interchange this node .[5]
so in the string (MISSISSIPPI) MISS comes on right hand side and PPI go to left side) after
interchange we will get this tree
after each update in parent node we omit the previous frequency and write new after add in the
previous.
now we have to add next s but there is already s so we just update the frequency but to do
this we will see problem with updating see what will happened when we 1 more s in the
previous s frequency
so we will interchange this 1:s with 1:m
so then we continue the operation s is already here so we update it and it becomes 2 now it
look healthy tree so now we add new frequency of I here but there is already I so we just
update the I so it will become 2 and if go to remaining parent node they all will add 1 more in
them see
now we take next s from the string and update it ,now it becomes 3 now we do interchange
these two nodes so s frequency will go to right side.So this is the update tree
next is again frequency i so we add new string it in it will be now 3 then we take string p there
is no p that why we put this frequency in empty node so update here the parent node
but here we will see 5 > 4 so we will interchange them with each other because they should be
either less or equal to the right hand side.
now we again insert next p and if we see here we have p so we update the frequency it
become 2 and its parent node become 1+1=3 and their parent node will become 3+3=6 and
lastly 6+4=10 at the root node
now if we look at the tree we will see it is again not a healthy tree because 2> 1 so we have to
interchange it but now at this time we will interchange 1:m with 2:p
so due to this interchange whole tree will change the nodes frequency now it become healthy tree
.now we add last character i we have i so we update its frequency it will become 4 then we
update its parent node it will become
if we check the integrating of the tree it is in increasing order so it is healthy tree all the parent
node are greater than its child node.
Steps for decoding adaptive Huffman algorithm :
 Generate codes for each character using Huffman tree (if not given)
 Using prefix matching, replace the codes with characters.
 The characters a to h have the set of frequencies based on the first 8 Fibonacci numbers as
follows:
a : 1, b : 1, c : 2, d : 3, e : 5, f : 8, g : 13, h : 21
The decoding result will be:
3. CONCLUSION
In this paper we proof that how Huffman is cool and efficient algorithm in the filed of
compression although there are more applications are available in the filed of compression like
arithmetic coding and Lempel ziv, but mostly we see in our daily life Huffman algorithm work
in our Iphone Ipods etc because it is not complex and more optimal among the family of symbol
code. Huffman coding is a greedy algorithm so for the compression of data it is consider good
that use longer bit instead of more frequent bits but Arithmetic coding gives greater
compression, is faster for adaptive models, and clearly separates the model from the channel
encoding.
4. REFRENCES
[1].Gary Stix. Profile: David A. Huffman. Scientific American, 265(3):54, 58, September 1991.
[2]. Fundamentals of Information Theory and Coding Design
By Roberto Togneri, Christopher J.S deSilva
[3] Web Page Compression using
Huffman Coding Technique
Manjeet Gupta (Assistant professor)
Department of CSE JMIT Radaur
,Brijesh Kumar (associate professor)
Department of IT Lingyaya’s university.
[4] Fundamental Data Compression
Author(s):Ida Mengyi Pu
[5] A fast Adaptive Huffman coding algorithm
Communications, IEEE Transactions on (Volume:41 , Issue: 4 )
[6] An efficient decoding technique for Huffman codes. Rezaul Alam Chowdhury(Department of
Computer Science and Engineering, Bangladesh University of Engineering and Technology,
Dhaka-1000, Bangladesh)
Irwin King(Department of Computer Science and Engineering, The Chinese University of Hong
Kong, Hong Kong, People’s Republic of China)
[7] Evaluation of Huffman and Arithmetic
Algorithms for Multimedia Compression Standards
Asadollah Shahbahrami,Ramin Bahrampour
,Mobin Sabbaghi Rostami,
Mostafa Ayoubi Mobarhan,
Department of Computer Engineering,
Faculty of Engineering, University of Guilan, Rasht, Iran
[8] Ze-Nian Li; Mark S. Drew; Jiangchuan Liu (9 April 2014). Fundamentals of Multimedia.
Springer Science & Business Media. ISBN 978-3-319-05290-8.

More Related Content

What's hot

Triple Data Encryption Standard (t-DES)
Triple Data Encryption Standard (t-DES) Triple Data Encryption Standard (t-DES)
Triple Data Encryption Standard (t-DES) Hardik Manocha
 
4.5 equalizers and its types
4.5   equalizers and its types4.5   equalizers and its types
4.5 equalizers and its typesJAIGANESH SEKAR
 
noise in pcm | Communication Systems
noise in pcm | Communication Systemsnoise in pcm | Communication Systems
noise in pcm | Communication SystemsLearn By Watch
 
Mobile computing unit2,SDMA,FDMA,CDMA,TDMA Space Division Multi Access,Frequ...
Mobile computing unit2,SDMA,FDMA,CDMA,TDMA  Space Division Multi Access,Frequ...Mobile computing unit2,SDMA,FDMA,CDMA,TDMA  Space Division Multi Access,Frequ...
Mobile computing unit2,SDMA,FDMA,CDMA,TDMA Space Division Multi Access,Frequ...Pallepati Vasavi
 
Arithmetic coding
Arithmetic codingArithmetic coding
Arithmetic codingVikas Goyal
 
Frame relay
Frame relay Frame relay
Frame relay balub4
 
Wireless local loop
Wireless local loopWireless local loop
Wireless local loopSANJUU7
 
Evolution of mobile radio communication
Evolution of mobile radio communicationEvolution of mobile radio communication
Evolution of mobile radio communicationjadhavmanoj01
 
Data structures & problem solving unit 1 ppt
Data structures & problem solving unit 1 pptData structures & problem solving unit 1 ppt
Data structures & problem solving unit 1 pptaviban
 

What's hot (20)

Huffman Coding
Huffman CodingHuffman Coding
Huffman Coding
 
1 PCM & Encoding
1  PCM & Encoding1  PCM & Encoding
1 PCM & Encoding
 
Triple Data Encryption Standard (t-DES)
Triple Data Encryption Standard (t-DES) Triple Data Encryption Standard (t-DES)
Triple Data Encryption Standard (t-DES)
 
4.5 equalizers and its types
4.5   equalizers and its types4.5   equalizers and its types
4.5 equalizers and its types
 
Audio and Video Compression
Audio and Video CompressionAudio and Video Compression
Audio and Video Compression
 
noise in pcm | Communication Systems
noise in pcm | Communication Systemsnoise in pcm | Communication Systems
noise in pcm | Communication Systems
 
Chapter 6 os
Chapter 6 osChapter 6 os
Chapter 6 os
 
Mobile computing unit2,SDMA,FDMA,CDMA,TDMA Space Division Multi Access,Frequ...
Mobile computing unit2,SDMA,FDMA,CDMA,TDMA  Space Division Multi Access,Frequ...Mobile computing unit2,SDMA,FDMA,CDMA,TDMA  Space Division Multi Access,Frequ...
Mobile computing unit2,SDMA,FDMA,CDMA,TDMA Space Division Multi Access,Frequ...
 
Speech coding techniques
Speech coding techniquesSpeech coding techniques
Speech coding techniques
 
Is 41 network signaling
Is 41 network signalingIs 41 network signaling
Is 41 network signaling
 
Arithmetic coding
Arithmetic codingArithmetic coding
Arithmetic coding
 
Frame relay
Frame relay Frame relay
Frame relay
 
Congestion control and quality of service
Congestion control and quality of serviceCongestion control and quality of service
Congestion control and quality of service
 
comparison of CDMA, TDMA,OFDM,CDMA-2000, SSMA,WCDMA
comparison of CDMA, TDMA,OFDM,CDMA-2000, SSMA,WCDMA comparison of CDMA, TDMA,OFDM,CDMA-2000, SSMA,WCDMA
comparison of CDMA, TDMA,OFDM,CDMA-2000, SSMA,WCDMA
 
Wireless local loop
Wireless local loopWireless local loop
Wireless local loop
 
EC6651 COMMUNICATION ENGINEERING UNIT 1
EC6651 COMMUNICATION ENGINEERING UNIT 1EC6651 COMMUNICATION ENGINEERING UNIT 1
EC6651 COMMUNICATION ENGINEERING UNIT 1
 
Evolution of mobile radio communication
Evolution of mobile radio communicationEvolution of mobile radio communication
Evolution of mobile radio communication
 
Power control in 3 g
Power control in 3 gPower control in 3 g
Power control in 3 g
 
Speech encoding techniques
Speech encoding techniquesSpeech encoding techniques
Speech encoding techniques
 
Data structures & problem solving unit 1 ppt
Data structures & problem solving unit 1 pptData structures & problem solving unit 1 ppt
Data structures & problem solving unit 1 ppt
 

Similar to Adaptive huffman coding

j001adcpresentation-2112170415 23.pdf
j001adcpresentation-2112170415      23.pdfj001adcpresentation-2112170415      23.pdf
j001adcpresentation-2112170415 23.pdfHarshSharma71048
 
Huffman Algorithm and its Application by Ekansh Agarwal
Huffman Algorithm and its Application by Ekansh AgarwalHuffman Algorithm and its Application by Ekansh Agarwal
Huffman Algorithm and its Application by Ekansh AgarwalEkansh Agarwal
 
Acquisition of Long Pseudo Code in Dsss Signal
Acquisition of Long Pseudo Code in Dsss SignalAcquisition of Long Pseudo Code in Dsss Signal
Acquisition of Long Pseudo Code in Dsss SignalIJMER
 
INSTRUCTIONS For this assignment you will be generating all code on y.pdf
 INSTRUCTIONS For this assignment you will be generating all code on y.pdf INSTRUCTIONS For this assignment you will be generating all code on y.pdf
INSTRUCTIONS For this assignment you will be generating all code on y.pdfadayarboot
 
Huffman's algorithm in Data Structure
 Huffman's algorithm in Data Structure Huffman's algorithm in Data Structure
Huffman's algorithm in Data StructureVrushali Dhanokar
 
Sunzip user tool for data reduction using huffman algorithm
Sunzip user tool for data reduction using huffman algorithmSunzip user tool for data reduction using huffman algorithm
Sunzip user tool for data reduction using huffman algorithmDr Sandeep Kumar Poonia
 
Digital Communication GRP1 (1).pptx
Digital Communication GRP1 (1).pptxDigital Communication GRP1 (1).pptx
Digital Communication GRP1 (1).pptxgidati3640
 
Paper id 24201469
Paper id 24201469Paper id 24201469
Paper id 24201469IJRAT
 
Ppt of discrete structure copy - copy - copy
Ppt of discrete structure   copy - copy - copyPpt of discrete structure   copy - copy - copy
Ppt of discrete structure copy - copy - copyMRA7860
 
Effective Algorithm for n Fibonacci Number By: Professor Lili Saghafi
Effective Algorithm for n Fibonacci Number By: Professor Lili SaghafiEffective Algorithm for n Fibonacci Number By: Professor Lili Saghafi
Effective Algorithm for n Fibonacci Number By: Professor Lili SaghafiProfessor Lili Saghafi
 
2.3 unit-ii-text-compression-a-outline-compression-techniques-run-length-codi...
2.3 unit-ii-text-compression-a-outline-compression-techniques-run-length-codi...2.3 unit-ii-text-compression-a-outline-compression-techniques-run-length-codi...
2.3 unit-ii-text-compression-a-outline-compression-techniques-run-length-codi...Helan4
 
Hufman coding basic
Hufman coding basicHufman coding basic
Hufman coding basicradthees
 
Concepts of Temporal CNN, Recurrent Neural Network, Attention
Concepts of Temporal CNN, Recurrent Neural Network, AttentionConcepts of Temporal CNN, Recurrent Neural Network, Attention
Concepts of Temporal CNN, Recurrent Neural Network, AttentionSaumyaMundra3
 
The method of comparing two audio files
The method of comparing two audio filesThe method of comparing two audio files
The method of comparing two audio filesMinh Anh Nguyen
 
The method of comparing two audio files
The method of comparing two audio filesThe method of comparing two audio files
The method of comparing two audio filesMinh Anh Nguyen
 
Pulse code modulation (PCM)
Pulse code modulation (PCM)Pulse code modulation (PCM)
Pulse code modulation (PCM)Mahima Shastri
 

Similar to Adaptive huffman coding (20)

j001adcpresentation-2112170415 23.pdf
j001adcpresentation-2112170415      23.pdfj001adcpresentation-2112170415      23.pdf
j001adcpresentation-2112170415 23.pdf
 
Huffman Algorithm and its Application by Ekansh Agarwal
Huffman Algorithm and its Application by Ekansh AgarwalHuffman Algorithm and its Application by Ekansh Agarwal
Huffman Algorithm and its Application by Ekansh Agarwal
 
Acquisition of Long Pseudo Code in Dsss Signal
Acquisition of Long Pseudo Code in Dsss SignalAcquisition of Long Pseudo Code in Dsss Signal
Acquisition of Long Pseudo Code in Dsss Signal
 
INSTRUCTIONS For this assignment you will be generating all code on y.pdf
 INSTRUCTIONS For this assignment you will be generating all code on y.pdf INSTRUCTIONS For this assignment you will be generating all code on y.pdf
INSTRUCTIONS For this assignment you will be generating all code on y.pdf
 
Huffman's algorithm in Data Structure
 Huffman's algorithm in Data Structure Huffman's algorithm in Data Structure
Huffman's algorithm in Data Structure
 
Sunzip user tool for data reduction using huffman algorithm
Sunzip user tool for data reduction using huffman algorithmSunzip user tool for data reduction using huffman algorithm
Sunzip user tool for data reduction using huffman algorithm
 
Huffman Text Compression Technique
Huffman Text Compression TechniqueHuffman Text Compression Technique
Huffman Text Compression Technique
 
Digital Communication GRP1 (1).pptx
Digital Communication GRP1 (1).pptxDigital Communication GRP1 (1).pptx
Digital Communication GRP1 (1).pptx
 
Paper id 24201469
Paper id 24201469Paper id 24201469
Paper id 24201469
 
Ppt of discrete structure copy - copy - copy
Ppt of discrete structure   copy - copy - copyPpt of discrete structure   copy - copy - copy
Ppt of discrete structure copy - copy - copy
 
Effective Algorithm for n Fibonacci Number By: Professor Lili Saghafi
Effective Algorithm for n Fibonacci Number By: Professor Lili SaghafiEffective Algorithm for n Fibonacci Number By: Professor Lili Saghafi
Effective Algorithm for n Fibonacci Number By: Professor Lili Saghafi
 
2.3 unit-ii-text-compression-a-outline-compression-techniques-run-length-codi...
2.3 unit-ii-text-compression-a-outline-compression-techniques-run-length-codi...2.3 unit-ii-text-compression-a-outline-compression-techniques-run-length-codi...
2.3 unit-ii-text-compression-a-outline-compression-techniques-run-length-codi...
 
Hufman coding basic
Hufman coding basicHufman coding basic
Hufman coding basic
 
Text compression
Text compressionText compression
Text compression
 
Block codes
Block codesBlock codes
Block codes
 
Concepts of Temporal CNN, Recurrent Neural Network, Attention
Concepts of Temporal CNN, Recurrent Neural Network, AttentionConcepts of Temporal CNN, Recurrent Neural Network, Attention
Concepts of Temporal CNN, Recurrent Neural Network, Attention
 
The method of comparing two audio files
The method of comparing two audio filesThe method of comparing two audio files
The method of comparing two audio files
 
Lossless
LosslessLossless
Lossless
 
The method of comparing two audio files
The method of comparing two audio filesThe method of comparing two audio files
The method of comparing two audio files
 
Pulse code modulation (PCM)
Pulse code modulation (PCM)Pulse code modulation (PCM)
Pulse code modulation (PCM)
 

Recently uploaded

BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998YohFuh
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxolyaivanovalion
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 

Recently uploaded (20)

BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptx
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 

Adaptive huffman coding

  • 1. JIMMA UNIVERSITY INSTITUTE OF TECHNOLOGY SCHOOL OF ELECTRICAL AND COMPUTER ENGINEERING Assignment: Adaptive Huffman coding Name Id Ramadan Hundessa………………RM0046/13-0 Date:january/06/22 Jimma, Ethiopia
  • 2. 1. Overview of Adaptive Huffman coding In Adaptive Huffman coding we should remember two steps are . nodes should be increasing order and of the frequency and sum of the frequency in parent node greater than all the frequency of the side node .so taking these two facts in count it grow the Huffman tree using the Adaptive Huffman coding [3],[4] Adaptive Huffman coding is an adaptive coding technique based on Huffman coding. It permits building the code as the symbols are being transmitted, having no initial knowledge of source distribution, that allows one-pass encoding and adaptation to changing conditions in data.[8] There are a number of implementations of this method, the most notable are FGK (Faller- Gallager-Knuth) and Vitter algorithm. FGK algorithm It is an online coding technique based on Huffman coding. Having no initial knowledge of occurrence frequencies, it permits dynamically adjusting the Huffman's tree as data are being transmitted. In a FGK Huffman tree, a special external node, called 0-node, is used to identify a newly coming character. Vitter Encoder and decoder start with only the root node, which has the maximum number. In the beginning it is our initial NYT(Not yet transferred) node. When we transmit an NYT symbol, we have to transmit code for the NYT node, then for its generic code. For every symbol that is already in the tree, we only have to transmit code for its leaf node. During the pass calculate the frequencies • Update the Huffman tree accordingly – Coder – new Huffman tree computed after transmitting the symbol – Decoder – new Huffman tree computed after receiving the symbol • Symbol set and their initial codes must be known ahead of time. • Need NYT (not yet transmitted symbol) to indicate a new leaf is needed in the tree.
  • 3. 2. Encoding and updating process process of string “MISSISSIPPI” will be given as follows : First of all in the for the string (MISSISSIPPI) we write an empty node always we first insert empty node after doing this we insert m so we put two empty node here and put the frequency of m here that is m:1 we should always update the parent node so 1+0 =1 now we insert i so again we put two empty node and insert i in it and the frequency of i:1 and update its parent node which was empty so after putting it becomes 1 now we can put s so we again make two empty node and insert s in the right node and insert the frequency of s which is s:1 and update its parent node we also update the i parent node which is now 1+1=2 now we will see all left hand side nodes are greater than right hand side so in this case we will see that it is not in proper order so we will re-loop this node( ) we go back and interchange this node .[5] so in the string (MISSISSIPPI) MISS comes on right hand side and PPI go to left side) after
  • 4. interchange we will get this tree after each update in parent node we omit the previous frequency and write new after add in the previous. now we have to add next s but there is already s so we just update the frequency but to do this we will see problem with updating see what will happened when we 1 more s in the previous s frequency so we will interchange this 1:s with 1:m
  • 5. so then we continue the operation s is already here so we update it and it becomes 2 now it look healthy tree so now we add new frequency of I here but there is already I so we just update the I so it will become 2 and if go to remaining parent node they all will add 1 more in them see now we take next s from the string and update it ,now it becomes 3 now we do interchange these two nodes so s frequency will go to right side.So this is the update tree next is again frequency i so we add new string it in it will be now 3 then we take string p there is no p that why we put this frequency in empty node so update here the parent node but here we will see 5 > 4 so we will interchange them with each other because they should be either less or equal to the right hand side. now we again insert next p and if we see here we have p so we update the frequency it become 2 and its parent node become 1+1=3 and their parent node will become 3+3=6 and lastly 6+4=10 at the root node
  • 6. now if we look at the tree we will see it is again not a healthy tree because 2> 1 so we have to interchange it but now at this time we will interchange 1:m with 2:p so due to this interchange whole tree will change the nodes frequency now it become healthy tree .now we add last character i we have i so we update its frequency it will become 4 then we update its parent node it will become if we check the integrating of the tree it is in increasing order so it is healthy tree all the parent node are greater than its child node. Steps for decoding adaptive Huffman algorithm :  Generate codes for each character using Huffman tree (if not given)  Using prefix matching, replace the codes with characters.  The characters a to h have the set of frequencies based on the first 8 Fibonacci numbers as follows: a : 1, b : 1, c : 2, d : 3, e : 5, f : 8, g : 13, h : 21 The decoding result will be:
  • 7. 3. CONCLUSION In this paper we proof that how Huffman is cool and efficient algorithm in the filed of compression although there are more applications are available in the filed of compression like arithmetic coding and Lempel ziv, but mostly we see in our daily life Huffman algorithm work in our Iphone Ipods etc because it is not complex and more optimal among the family of symbol code. Huffman coding is a greedy algorithm so for the compression of data it is consider good that use longer bit instead of more frequent bits but Arithmetic coding gives greater compression, is faster for adaptive models, and clearly separates the model from the channel encoding.
  • 8. 4. REFRENCES [1].Gary Stix. Profile: David A. Huffman. Scientific American, 265(3):54, 58, September 1991. [2]. Fundamentals of Information Theory and Coding Design By Roberto Togneri, Christopher J.S deSilva [3] Web Page Compression using Huffman Coding Technique Manjeet Gupta (Assistant professor) Department of CSE JMIT Radaur ,Brijesh Kumar (associate professor) Department of IT Lingyaya’s university. [4] Fundamental Data Compression Author(s):Ida Mengyi Pu [5] A fast Adaptive Huffman coding algorithm Communications, IEEE Transactions on (Volume:41 , Issue: 4 ) [6] An efficient decoding technique for Huffman codes. Rezaul Alam Chowdhury(Department of Computer Science and Engineering, Bangladesh University of Engineering and Technology, Dhaka-1000, Bangladesh) Irwin King(Department of Computer Science and Engineering, The Chinese University of Hong Kong, Hong Kong, People’s Republic of China) [7] Evaluation of Huffman and Arithmetic Algorithms for Multimedia Compression Standards Asadollah Shahbahrami,Ramin Bahrampour ,Mobin Sabbaghi Rostami, Mostafa Ayoubi Mobarhan, Department of Computer Engineering, Faculty of Engineering, University of Guilan, Rasht, Iran [8] Ze-Nian Li; Mark S. Drew; Jiangchuan Liu (9 April 2014). Fundamentals of Multimedia. Springer Science & Business Media. ISBN 978-3-319-05290-8.