Short: Without an distribution model, you can't. I.e. you have to give
us more information what kind of data do you want to compress ( text,
image, music, video, radio, etc. pp. ). Compression is always based on
redundancy.

Length: RLE, Golomb-Code.

On Nov 4, 12:06 pm, neeraj agarwal <[email protected]> wrote:
>  i have a file contain only 0's and 1's,
>  how can i compress it efficiently.
> say for e.g
> (000101010110110101001011101011101010101010.....................................
> .........................................................................................................
> )obviously
>  order of 1 and 0 is not same as above.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to