Ask your own question, for FREE!
Computer Science 23 Online
OpenStudy (anonymous):

how data compression work?

OpenStudy (anonymous):

It breaks down to two different types of data compression: Lossy data compression: Data is converted to a format which uses less bits, (thus less space) however some information is lost in the process. The bits which are removed are marked as "of marginal importance." Lossless data compression: Data converted to a format which not only uses less bits, but also retains all of the information. The bits which are reduced are marked as "redundant."

OpenStudy (anonymous):

yeah just like that

OpenStudy (anonymous):

There are basically two approaches to compress data: 1. Repitition elimination: In this method repetition patterns of strings are detected. Each string is replaced with some smaller code. Ex. aaaaaaaaaaaaaaaabbbbaaac It can be written as a16b4a3c (16 times a, 4 times b, 3 times a, c) RLE algorithm employes this method to compress data. 2. Encoding: In this method, frequency of different characters is calculated. High frequency characters are assigned smallest possible code, and low frequency characters are assigned longer code. Huffman Encoding is one popular example which uses this method for compression. Both methods are for lossless compression.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!