Get your own website
Python
C
Java
 
Python result:
C result:
Java result:
Initial word: lossless
Huffman code: 10110001011100
Conversion table: {'s': '0', 'l': '10', 'o': '110', 'e': '111'}
Decoded word: lossless
Word: lossless
Huffman code: 10110001011100
Conversion table:
e: 111
l: 10
o: 110
s: 0
Decoded word: lossless
Initial word: lossless
Huffman code: 10110001011100
Conversion table: {s=0, e=111, l=10, o=110}
Decoded word: lossless