Mobi format File Decompression Practice

Source: Internet
Author: User

The previous article introduced the Mobi file format compression principle, this article tests the decompression effect.

In order to confirm our English text This compression principle, we chose the Big "Collins Dictionary (English version)" Mobi file. Compressed file 10 trillion, using the example of the program, randomly from the file $20000 address to intercept a small segment (random) run the program, the effect is as follows:


1. In the picture, the first place is garbled (in line with what we see: There is no index before, so copy).

2. Once a text output is available, the program restores the original text based on the encoding.

3. Change the address, we can get different content. (Legato notation also restores normal).

4. Because the algorithm is simple and fast, it can decode in real time.

5. Similarly, we can also write our own compression program according to this compression principle.


Mobi format File Decompression Practice

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.