Description
This library was written as part of CMSC858D - Algorithms, Data Structures and Inference for High-throughput Genomics Class Homework.
The official version of the library is hosted on github at this repository, while crates.io version is hosted at this page.
Installation
You can download the source code from github and build the project using cargo build or add it to your project as a dependency from crates.io.
Usage
Below are some ways to instantiate and use given constructs.
BitVector
use BitVec;
let size = 16;
let b1 = new_with_random;
let b2 = new_with_zeros;
let b3 = new_with_vec;
let b4 = new; // uses new with zeros
let b5 = b1 + b2;
let b6 = b1.incr;
let b7 = b1.concat;
let b8 = b1.extract;
let bit = b1.get;
Rank Support
use BitVec;
use RankSupport;
let size = 16;
let b1 = new_with_random;
let r = new;
let index = 3;
let res = r.rank1;
let res_prime = dummy_rank;
r.save;
let r2 = load.unwrap;
Select Support
use BitVec;
use RankSupport;
use SelectSupport;
let b = new_with_random;
let r = new;
let s = new;
let select = s.select1;
Sparse Array
use SparseArray;
let size = 32;
let mut sa: = new;
sa.append;
let res = sa.get_at_index.unwrap;
assert_eq!;