Using C to implement arithmetic coding on Linux (a)--concrete operation

Source: Internet
Author: User
Tags arithmetic message queue

Reprint Annotated Source: Http://blog.csdn.net/wang_zheng_kai

Let students use development tools, practice learning data compression coding

Tianjin University of Technology, School of letters and electricity

This article consists of two parts:

Using C to implement arithmetic coding on Linux (a)--concrete operation

Using C to implement arithmetic coding on Linux (ii)--specific code


ubuntu14.04 arithmetic coding with C language (fixed)

1, open the ubuntu14.04 system, the interface is as follows:


2, press ctrl+alt+t, open terminal, execute command LS View the code of the arithmetic code FIXED_ARITHMETIC.C


3. Execute the following command to compile the code.


4, Generate executable program fixed_arithmetic.


5. Run the program according to the following command.


6. Enter the number of signal source symbols.

7. Enter the source symbol in turn and its corresponding probability


8. Enter the message queue to compile and end the input with ' * '.


9, enter, display the compilation and decoding results.


Using C to implement arithmetic coding on Linux (a)--concrete operation

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.