huffman_ decoding_ algorithm for tree huffman encoded data
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Durga srinivasu Jarajapu
il 23 Set 2019
Risposto: Walter Roberson
il 23 Set 2019
Hi,
I have tree huffman encoded data, i want to know tree huffman decoding alogrithm .
0 Commenti
Risposta accettata
Walter Roberson
il 23 Set 2019
Put your pointer at the root of the decoding tree
Repeat:
Are you at a leaf of the decoding tree? If so then emit the associated value and reset your pointer to the root of the tree
If not then are you at end of encoding data? If so stop.
If not then input one bit from the encoded data, and use it to decide which of the two leaves to set the pointer to.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Large Files and Big Data in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!