Guest User

[7/18/2014] Challenge #171 [Hard] Intergalatic Bitstream

a guest
Jul 19th, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. >> python message.py 'REMEMBER TO DRINK YOUR OVALTINE'
  2. Read Message of 248 Bits.
  3. Message:REMEMBER TO DRINK YOUR OVALTINE
  4. Compressing 248 Bits into 144 Bits. (41pc compression)
  5. Compressed Message:010000011001000110011111001000010100000000110010000010100100011110001111011000001111000000101111011101000000001011111001010111010011011110000001
  6. Sending Message.
  7. Decompressing Message into 248 Bits.
  8. Decompressed Message:REMEMBER TO DRINK YOUR OVALTINE
  9. Message Matches!
  10.  
  11. >> python message.py 'GIANTS BEAT DODGERS 10 TO 9 AND PLAY TOMORROW AT 1300'
  12. Read Message of 424 Bits.
  13. Message:GIANTS BEAT DODGERS 10 TO 9 AND PLAY TOMORROW AT 1300
  14. Compressing 424 Bits into 252 Bits. (40pc compression)
  15. Compressed Message:101101110101100000110110000011110010000101010011000010100010101010110001010001100000111101001111000100000011001000001111101100000101100010100000111011010101111100000000001100101001001001000100001011111000000001010011000011110100111110101111000111110001
  16. Sending Message.
  17. Decompressing Message into 424 Bits.
  18. Decompressed Message:GIANTS BEAT DODGERS 10 TO 9 AND PLAY TOMORROW AT 1300
  19. Message Matches!
  20.  
  21. >> python message.py 'SPACE THE FINAL FRONTIER THESE ARE THE VOYAGES OF THE BIT STREAM DAILY PROGRAMMER TO SEEK OUT NEW COMPRESSION'
  22. Read Message of 872 Bits.
  23. Message:SPACE THE FINAL FRONTIER THESE ARE THE VOYAGES OF THE BIT STREAM DAILY PROGRAMMER TO SEEK OUT NEW COMPRESSION
  24. Compressing 872 Bits into 484 Bits. (44pc compression)
  25. Compressed Message:0110111001011111010100010000001111000001000011110011011110000101110100001111001101000010100000110111000101000000001111000001011000010000010101000001000000111100000100001111100100101111000001011011000101100000001011110011000000111100000100001111001001110011000001100011010000010101100100001010010101111101111100000000111001000010101101000101100110010001010000000011001000000110000100011111011000000010111101110011000010000001111110000000111101010010100111100100000101100110011100101000
  26. Sending Message.
  27. Decompressing Message into 872 Bits.
  28. Decompressed Message:SPACE THE FINAL FRONTIER THESE ARE THE VOYAGES OF THE BIT STREAM DAILY PROGRAMMER TO SEEK OUT NEW COMPRESSION
  29. Message Matches!
Add Comment
Please, Sign In to add comment