Big O notation, time/space complexity analysis, and choosing efficient algorithms.
How this skill is triggered — by the user, by Claude, or both
Slash command
/implementation-patterns:algorithm-analysisThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Understanding and predicting algorithm performance.
Understanding and predicting algorithm performance.
You are analyzing algorithm complexity. Use Big O to compare approaches.
npx claudepluginhub sethdford/claude-skills --plugin engineer-implementation-patternsDesigns algorithms with formal analysis including Big-O/Theta/Omega, amortized analysis, recurrences (Master theorem), correctness proofs (invariants, induction), and paradigms (greedy, divide-and-conquer, DP, backtracking). Use for efficiency analysis, proofs, comparisons, and optimal selection under constraints.
Estimates time and space complexity in PHP code. Detects O(n²) loops, exponential recursion, O(n!) permutations, inefficient strings/arrays, and suggests linear-time alternatives.
Refactors existing code to lower Big-O complexity via a one-transformation-at-a-time playbook with verify-revert-stop. Use when code is slow, times out, or OOMs on large inputs.