GithubHelp home page GithubHelp logo

high-order-lz77's Introduction

HOLZ: High-Order Entropy Encoding of Lempel-Ziv Factor Distances

Computes the High-Order Entropy Encoding for

  • the Lempel-Ziv 77 parsing
  • the bit-optimal parsing [1]

build

git clone https://github.com/koeppl/high-order-lz77.git
cd high-order-lz77
git submodule init
git submodule update
mkdir build
cd build
cmake ..
make
./holz -i Makefile

Caveats

The code assumes that there is no \0 byte in the input. One way would be to remove all \0 bytes, but then the decompression would not return the original file. Another way would be to use an escaper such as defined in https://github.com/koeppl/stringology-rust In the following example, we apply this escaper to use the byte 254 as an escape character, so '254' becomes '254 254', and '0' becomes '254 1'.

	cargo build
	cargo run --bin escape -- -i <INFILE> -e 254 -f '0' -t '1' -r -o <OUTFILE>

(Maybe call cargo update -p clap_derive --precise 3.0.0-beta.2 if cargo build fails.) Appending the parameter '-r' reverts the escaping.

Thanks

We used MitI_7's dynamic wavelet-matrix implementation for the experiments, of which we include a modified version in the folder WaveletMatrix

References

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.