Skip to content

burtgulash/fav2011-pc-aric

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aric - Arithmetic coding utility

Seminar assignment from course Programming in C. Aim of this assignment is to make a program to compress and decompress arbitrary files using arithmetic coding.

Usage

usage: aric -c FILE COMPRESSED
       aric -d COMPRESSED FILE

To compress an input FILE to COMPRESSED output file use the flag -c. To decompress the COMPRESSED file back use the second option -d with output file FILE.

Example usage

Compress

./aric -c coder.c out.aric
    output: 3883 bytes to 2879 bytes

Decompress

./aric -d out.aric coder_decompressed.c
    output: 2878 bytes to 3883 bytes

Verify that the original file is identical to the decompressed file

if cmp -s coder.c coder_decompressed.c
then
    echo OK
else
    echo FAILED
fi

Documentation

Stub of documentation for the assignment in czech language.

Course details

About

Aric - Arithmetic coding utility

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published