Crates.io | minimizer-queue |
lib.rs | minimizer-queue |
version | 1.2.3 |
source | src |
created_at | 2024-05-29 20:40:42.059072 |
updated_at | 2024-06-25 18:40:25.685225 |
description | Fast computation of minimizers using a monotone queue |
homepage | https://crates.io/crates/minimizer-queue |
repository | https://github.com/imartayan/minimizer-queue |
max_upload_size | |
id | 1256094 |
size | 16,819 |
Fast computation of minimizers using a monotone queue.
use minimizer_queue::MinimizerQueue;
let mut queue = MinimizerQueue::new(3); // width 3
queue.insert(1);
queue.insert(2);
queue.insert(3);
queue.get_min(); // element with the smallest hash among 1, 2 and 3
queue.insert(4);
queue.get_min(); // element with the smallest hash among 2, 3 and 4