Català Castellano
> Photos | Software | About
> Box | Intranet

Compression

Program written in Java that encodes a text file. This program can use two different algorithms to carry out the task, these algorithms are, Huffman and Lz77 algorithm. These algorithms were developed by David Huffman and Abraham Lempel and Jacob Ziv respectively. They are called lossless, which means that when you decompress a file firstly compressed, we have the same file as the original.

Source Code

Name Version Platform Coments Donwloads
Compressio 0.1 Any Compressio.tar.gz

Bynaris

Name Version Platform Coments Donwloads
Compressio 0.1 Any Java Bynari compressio.jar

Documentació

Name Autor Format Donwloads
Memòria pràctiques Borja Roig PDF Donwload



To compile and run this program we need a version of the Java Virtual Machine equal to or higher than 1.6. (If using an earlier version will compile errors).

Subfolder bits .- For management binary files
Subfolder diccionari .- Algorithm Lz77
Subfolder huffman .- Huffman Algorithm
Subfolder principal .- Main program

It has been created a main program that is used in the following way:

Use:

Program [type] [Action] [files...]

Type
-h
Use Huffman algorithm
-l
Use the algorithm Lz77

Action
-e file
Encodes the file given.
-d coded_file decoded_file
Generates the decoded_file of a given coded_file

Program -s file
Output statistics for the algorithms with this file

This program supports plain text files that do not contain special characters, in other words, which do not contain accents, ñ o ç.

Shotokan - shotokan.roig@gmail.com