Implement arithmetic coding using c in linux (1)-specific operations, linux Arithmetic

Source: Internet
Author: User

Implement arithmetic coding using c in linux (1)-specific operations, linux Arithmetic

Reprinted with the source: http://blog.csdn.net/wang_zheng_kai

Enables students to use development tools to compress the learned data.

Tianjin Institute of Industry and Information Technology

This article includes two parts:

Implement arithmetic coding using c in linux (1)-specific operations

Implement arithmetic coding using c in linux (2) -- specific code


Ubuntu14.04 use C language for arithmetic coding (fixed)

 

1. Open ubuntu14.04. The interface is as follows:


2. Press Ctrl + Alt + t to open Terminal and execute the command ls to view the arithmetic code fixed_arithmetic.c.


3. Execute the following command to compile the code.


4. Generate the executable program fixed_arithmetic.


5. Run the program as follows.


6. Enter the number of source symbols.

 

7. input the source symbol and Its Probability in sequence


8. Enter the message queue to be compiled and end the input.


9. Press enter to display the compilation and decoding results.


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.