GithubHelp home page GithubHelp logo

soraber / bloomfilter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kzintas/bloomfilter

0.0 0.0 0.0 1.39 MB

An implementation of basic Bloom Filter and Block Bloom Filter in C++

C++ 87.23% C 3.44% Shell 2.71% Python 6.61%

bloomfilter's Introduction

BloomFilter

An implementation of basic Bloom Filter and Block Bloom Filter in C++

The repository is available here

Command Line Interface

To make the command line interface work, execute the following two commands.

 shopt -s expand_aliases
source .bash_aliases 

Basic Bloom Filter

Insert

To insert in the Basic Bloom Filter, run-

bf build -k <key file> -f <fpr> -n <num. distinct keys> -o <output file>

This command reads in the keys in the file <key file>, which contains <num. distinct keys> distinct input keys, and constructs a bloom filter with a target false positive rate of <fpr>. The constructed Bloom filter is written to the file <output file>.

Query

To query the Basic Bloom Filter, run-

bf query -i <input file> -q <queries>

This command reads in the serialized input file (created by the build command above), and issue each of the queries in the query file.

Blocked Bloom Filter

Insert

To insert in the Blocked Bloom Filter, run-

bbf build -k <key file> -f <fpr> -n <num. distinct keys> -o <output file>

This command reads in the keys in the file <key file>, which contains <num. distinct keys> distinct input keys, and constructs a blocked bloom filter with a target false positive rate of <fpr>. The constructed Bloom filter is written to the file <output file>.

Query

To query the Blocked Bloom Filter, run-

bbf query -i <input file> -q <queries>

This command reads in the serialized input file (created by the build command above), and issue each of the queries in the query file.

bloomfilter's People

Contributors

kzintas avatar mimita3635 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.