https://github.com/cristobalm/repaircompression

RePair compression in C++

https://github.com/cristobalm/repaircompression

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (3.6%) to scientific vocabulary

Keywords

compression compression-algorithm compression-implementations compression-library repair
Last synced: 5 months ago · JSON representation

Repository

RePair compression in C++

Basic Info
  • Host: GitHub
  • Owner: CristobalM
  • License: mit
  • Language: C++
  • Default Branch: main
  • Homepage:
  • Size: 49.8 KB
Statistics
  • Stars: 3
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
compression compression-algorithm compression-implementations compression-library repair
Created over 4 years ago · Last pushed over 4 years ago

https://github.com/CristobalM/RePairCompression/blob/main/

# RePair Compression

This is a C++ implementation of the RePair compression
(N. J. Larsson and A. Moffat, "Off-line dictionary-based compression," in Proceedings of the IEEE, vol. 88, no. 11, pp. 1722-1732, Nov. 2000, doi: 10.1109/5.892708).

# Build

```
mkdir build
cd build
cmake ..
make
```

# Usage

```
./build/CompressFile inputfile.txt outputfile.bin
./build/DecompressFile outputfile.bin decompressed.txt
```

# Library

* Include the src directory
* Link the static library libRePairCompression.a

# API Usage

```c++
auto rePairDs = RePairCompression::compress(inputString);
std::stringstream ss;
rePairDs->dump(ss);  // can be any std::ostream

auto deserialized = RePairCompression::load(ss); // can be any std::istream
auto decompressedString = deserialized->decompress();

// now decompressedString == inputString
```


Owner

  • Name: Cristobal Miranda T.
  • Login: CristobalM
  • Kind: user

GitHub Events

Total
Last Year