This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

need help on how to encode words using huffman code

By: a guest on Feb 27th, 2012  |  syntax: None  |  size: 0.34 KB  |  views: 26  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. 0 xxxxxxxx
  2. | +- token code for N
  3. +--- ESCAPE
  4.        
  5. ESCAPE:00
  6. END-STREAM:01
  7. N:1
  8.        
  9. 0 xxxxxxxx 0 yyyyyyyy
  10.              +- token code for E
  11.        
  12. ESCAPE:00
  13. END-STREAM:01
  14. N:10
  15. E:11
  16.        
  17. 0 xxxxxxxx 0 yyyyyyyy 11 0 zzzzzzzz
  18.                       |    +- token code for D
  19.                       +------ second E
  20.        
  21. ESCAPE:00
  22. END-STREAM:011
  23. N:010
  24. E:11
  25. D:10
clone this paste RAW Paste Data