huffman_ decoding_ algorithm for tree huffman encoded data

1 Ansicht (letzte 30 Tage)
Hi,
I have tree huffman encoded data, i want to know tree huffman decoding alogrithm .

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 23 Sep. 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.

Weitere Antworten (0)

Kategorien

Mehr zu Denoising and Compression finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by