From role-algorithms
Implements and selects optimal data structures—hash tables (chaining, Robin Hood), balanced BSTs (AVL, Red-Black), heaps, tries, skip lists, segment/Fenwick trees, Bloom filters, Union-Find—for performance constraints, custom collections, memory optimization.
How this skill is triggered — by the user, by Claude, or both
Slash command
/role-algorithms:data-structuresThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Choosing the right data structure before writing a collection or lookup mechanism
references/hash-and-trees.md — hash collision strategies (chaining, open addressing, Robin Hood, cuckoo), perfect hashing, AVL vs Red-Black vs B-tree selection matrixreferences/heaps-and-advanced.md — binary/d-ary/Fibonacci/pairing heap trade-offs, tries, radix trees, segment trees with lazy propagation, Fenwick trees, skip listsreferences/probabilistic-and-unionfind.md — Bloom filters (optimal k formula, counting variant), Count-Min Sketch, HyperLogLog, Union-Find with path compression and union by rank, full selection decision matrixnpx claudepluginhub rnavarych/alpha-engineer --plugin role-algorithmsCovers asymptotic complexity, data structure selection, sorting, searching, DP, graph, greedy, string algorithms, and at-scale streaming/sketching tools. Triggered by algorithm selection, performance review, and scaling problems.
Choosing optimal data structures based on access patterns and performance requirements.
Proposes approximate algorithms (Bloom filters, HyperLogLog, Count-Min Sketch, MinHash/LSH, FFT, Johnson-Lindenstrauss projection) for large datasets (n ≥ 10^6). Use when exact classical O(n log n) is too slow and approximate/math solutions are acceptable.