dsa
Copyright 2026 ResQ Software. Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at- Quick membership checks for large sets
- Spam filtering
- Distributed cache lookup
- Network packet deduplication
Example:
- Network traffic analysis
- Heavy hitter detection
- Approximate frequency queries
Example:
Example:
Example:
- Prefix-based autocomplete
- String storage and lookup
- Pattern matching
Example:
Classes
| Name | Description |
|---|---|
BloomFilter | Bloom filter for probabilistic set membership. |
BoundedHeap | Bounded heap for top-K element selection. |
CountMinSketch | Count-Min sketch for frequency estimation. |
Graph | Generic directed weighted graph. |
Trie | Trie (prefix tree) for efficient string prefix operations. |
Functions
| Return | Name | Description |
|---|---|---|
std::vector< std::size_t > | rabin_karp | Rabin-Karp string matching algorithm. |
rabin_karp
inline
Parameters
-
textText to search in -
patPattern to search for