D200 file Compression questions

Started Mar 8, 2006 | Discussions thread
Bill Hall Contributing Member • Posts: 890
I agree

There are methods of compressing data with no loss at all. Zip files, as was stated above, do this. Otherwise, an executable file likely would no longer be executable after it was compressed and uncompressed. An example of lossless compression is run length encoding (RLE). It works by not repeating values. Say you have 100 ASCII zero characters:

000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Instead of sending all 100 zeros, RLE would send one character indicating that the data after it was compressed data (you could use, say, hex 1), a count, and the character. So the hundred zeros become three hex characters:
01 64 40

That's about a 33:1 compression with no loss whatever.

-- hide signature --

There's no place like 127-0-0-1!

Keyboard shortcuts:
FForum PPrevious NNext WNext unread UUpvote SSubscribe RReply QQuote BBookmark MMy threads
Color scheme? Blue / Yellow