1 / 34

A Review of Data Compression Techniques

Introduction. Data compression is the process of encoding data so that it takes less storage space or less transmission time than it would if it were not compressed.Compression is possible because most real-world data is very redundant . Different Compression Techniques . Mainly two types of data C

menora
Download Presentation

A Review of Data Compression Techniques

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


    2. Introduction Data compression is the process of encoding data so that it takes less storage space or less transmission time than it would if it were not compressed. Compression is possible because most real-world data is very redundant

    3. Different Compression Techniques Mainly two types of data Compression techniques are there. Loss less Compression. Useful in spreadsheets, text, executable program Compression. Lossy less Compression. Compression of images, movies and sounds.

    4. Types of Loss less data Compression Dictionary coders. Zip (file format). Lempel Ziv. Entropy encoding. Huffman coding (simple entropy coding). Run-length encoding.

    5. Dictionary-Based Compression Dictionary-based algorithms do not encode single symbols as variable-length bit strings; they encode variable-length strings of symbols as single tokens. The tokens form an index into a phrase dictionary. If the tokens are smaller than the phrases they replace, compression occurs.

    6. Types of Dictionary Static Dictionary. Semi-Adaptive Dictionary. Adaptive Dictionary. Lempel Ziv algorithms belong to this category of dictionary coders. The dictionary is being built in a single pass, while at the same time encoding the data. The decoder can build up the dictionary in the same way as the encoder while decompressing the data.

    7. Using a English Dictionary the string: “A good example of how dictionary based compression works” Gives : 1/1 822/3 674/4 1343/60 928/75 550/32 173/46 421/2 Using the dictionary as lookup table, each word is coded as x/y, where, x gives the page no. and y gives the number of the word on that page. If the dictionary has 2,200 pages with less than 256 entries per page: Therefore x requires 12 bits and y requires 8 bits, i.e., 20 bits per word (2.5 bytes per word). Using ASCII coding the above string requires 48 bytes, whereas our encoding requires only 20 (<-2.5 * 8) bytes: 50% compression. Dictionary-Based Compression: Example

    9. LZW Algorithm It is An improved version of LZ78 algorithm. Published by Terry Welch in 1984. A dictionary that is indexed by “codes” is used. The dictionary is assumed to be initialized with 256 entries (indexed with ASCII codes 0 through 255) representing the ASCII table.

    10. The LZW Algorithm (Compression) W = NIL; while (there is input){ K = next symbol from input; if (WK exists in the dictionary) { W = WK; } else { output (index(W)); add WK to the dictionary; W = K; } }

    12. The LZW Algorithm (Compression) Example Input string is The Initial Dictionary contains symbols like a, b, c, d with their index values as 1, 2, 3, 4 respectively. Now the input string is read from left to right. Starting from a.

    13. The LZW Algorithm (Compression) Example W = Null K = a WK = a In the dictionary.

    14. The LZW Algorithm (Compression) Example K = b. WK = ab is not in the dictionary. Add WK to dictionary Output code for a. Set W = b

    15. The LZW Algorithm (Compression) Example K = d WK = bd Not in the dictionary. Add bd to dictionary. Output code b Set W = d

    16. The LZW Algorithm (Compression) Example K = a WK = da not in the dictionary. Add it to dictionary. Output code d Set W = a

    17. The LZW Algorithm (Compression) Example K = b WK = ab It is in the dictionary.

    18. The LZW Algorithm (Compression) Example K = d WK = abd Not in the dictionary. Add W to the dictionary. Output code for W. Set W = d

    30. Advantages As LZW is adaptive dictionary coding no need to transfer the dictionary explicitly. It will be created at the decoder side. LZW can be made really fast, it grabs a fixed number of bits from input, so bit parsing is very easy, and table look up is automatic.

    32. Conclusion LZW has given new dimensions for the development of new compression techniques. It has been implemented in well known compression format like Acrobat PDF and many other types of compression packages. In combination with other compression techniques many other different compression techniques are developed like LZMS.

    33. REFERENCES [1] http://www.bambooweb.com/articles/d/a/Data_Compression.html [2] http://tuxtina.de/files/seminar/LempelZivReport.pdf [3] BELL, T. C., CLEARY, J. G., AND WITTEN, I. H. Text Compression. Prentice Hall, Upper Sadle River, NJ, 1990. [4] http://www.cs.cf.ac.uk/Dave/Multimedia/node214.html [5] http://download.cdsoft.co.uk/tutorials/rlecompression/Run-Length Encoding (RLE) Tutorial.htm [6] David Salomon, Data Compression The Complete Reference, Second Edition. Springer-Verlac, New York, Inc, 2001 reprint. [7] http://www.programmersheaven.com/2/Art_Huffman_p1.htm [8] http://www.programmersheaven.com/2/Art_Huffman_p2.htm [9] Khalid Sayood, Introduction to Data Compression Second Edition, Chapter 5, pp. 137-157, Harcourt India Private Limited.

    34. Thank You

More Related