Skip to content
/ huffman Public

Implementation of the Huffman compression algorithm

Notifications You must be signed in to change notification settings

ichko/huffman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Huffman

Implementation of the Huffman compression algorithm

Interface

  • void exportArchive(const char* dstName);
  • void importArchive(const char* dstName);
  • void exportExtract(const char* dstName);
  • bool compressFile(const char* fileName);
  • string decompress();
  • void compress(string& input);
  • double compressionRate();

Example

#include "archive.h"

int main() {
    archive arch;
    arch.importArchive(fileName);
    std::cout << arch.decompress() << std::endl;
    std::cout << arch.compressionRate() << std::endl;
    
    return 0;
}

About

Implementation of the Huffman compression algorithm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages