From role-algorithms
Implements sorting (quicksort, Timsort, radix, counting) and searching (binary variants, KMP, Rabin-Karp, Aho-Corasick) algorithms plus external sorting. Use for custom sort orders, efficient searches, string matching, order statistics.
How this skill is triggered — by the user, by Claude, or both
Slash command
/role-algorithms:sorting-and-searchingThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Selecting a sorting algorithm based on stability, memory, key type, or data distribution
references/comparison-and-noncomparison-sorts.md — quicksort (introsort fallback), merge sort, heapsort, Timsort (galloping mode), comparison lower bound, counting sort, radix sort (LSD/MSD), bucket sort with selection guidereferences/binary-search-and-order-statistics.md — standard search, lower/upper bound (bisect_left/right), binary search on answer space, fractional binary search, quickselect, median-of-medians, streaming median with two heapsreferences/string-searching-and-external.md — KMP failure function, Rabin-Karp rolling hash, Boyer-Moore bad-character and good-suffix rules, Aho-Corasick automaton, suffix arrays with LCP, external k-way merge sort, I/O optimization strategiesnpx claudepluginhub rnavarych/alpha-engineer --plugin role-algorithmsImplements 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.
Activates approximate and math-optimal algorithms (Bloom, HyperLogLog, Count-Min, MinHash/LSH, FFT, JL projection) for large-scale data when classical O(n log n) is the floor.
Big O notation, time/space complexity analysis, and choosing efficient algorithms.