Jump to content

Comp sci/data compression puzzle

Featured Replies

Some types of compressed files can be compressed further, losslessly...

http://www.fastcompany.com/3050180/tech-forecast/these-engineers-just-built-their-own-pied-piper-compression-algorithm

yet it is known that there is no possible algorithm that can losslessly compress all possible input data. This puzzle's about that.

 

----

 

There is a type of data stream that is a fixed length N bits of binary data.
The data is statistically random; every possible variation of 0s and 1s is as likely as any other.
There is an optimal lossless compression algorithm that reduces the data size of as many of the possible data variations as is mathematically possible, and produces a variable-length output of M bits.
The uncompress algorithm knows the value of N and the size of the compressed data stream.
1. How many of the possible data streams cannot be compressed, ie. where M >= N?
2. For large N, what's the average size savings achieved by the algorithm?
3. Describe or write pseudocode for such an algorithm (compress and uncompress).
4. The CEO of Hooli is offering $1M for your algorithm. Do you take it, or try to develop it with your own startup company?

 

 

Some types of compressed files can be compressed further, losslessly...

 

video to msd. It isn't lossless but I wouldn't notice the difference on my crappy screen

Edited by fiveworlds

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.