Code Monkey home page Code Monkey logo

h0_bv's Introduction

Efficient $H_0$ -based bitvector compression

This repository contains code related to our project to further research related to rrr_vectors from https://github.com/simongog/sdsl-lite

Repo contents

$H_0$ bitvector implementations

  • h0_bv.hpp: implementation for decoding blocks using balansed recurrence.
  • h0_it.hpp: implementation for decoding blocks iteratively in 8 block chunks with $b = 64$.
  • h0_63.hpp: implementation for decoding blocks iteratively in 8 block chunks with $b = 63$.
  • h0_gap.hpp: sparsified lookup table implementation.
  • weightedDeBrujin.py: generates headers for our weighed deBrujin sequence based implementation.

Hybrid bitvector implementations

  • hyb_vanilla.hpp: same as the hybrid bitvector in the SDSL.
  • hyb_it.hpp: hybrid bitvector implementation with option of encoding using the h0_it block implementation.
  • hyb_256.hpp: broken hybrid bitvector implementation wth optino of encoding using the SDSL rrr_bitvector with $b = 256$.

Benchmarking code

  • rrr_time_and_space.cpp: Code to run benchmarks. Adapted from SDSL.
  • tester.sh: Compiles and runs all test, generates test outputs in res folder.
  • Makefile: Contains rules for creating all the benchmakring binaries.
  • results.ipynb: Contains code for generating plots and exploring results.

Besides this there is debugging code, that is probably best left untouched untill it gets removed.

Running

https://github.com/simongog/sdsl-lite should be installed on the system used for testing. The default install location is set up in the Makefile. If SDSL is not installed in the default location, the paths used in ISDSL and SDSL_INCLUDE should be updated.

With sdsl installed, tests can be run by calling tester.sh <path/to/data/files> in the repository root.

Results will be stored in the res folder.

Test data can be retrieved from:

h0_bv's People

Contributors

saskeli avatar

Watchers

 avatar  avatar

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.