Algorithm design

From rnavarych/alpha-engineer · View interactive version

Algorithm design is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Designs algorithms with formal analysis — Big-O/Theta/Omega, amortized analysis, recurrence relations (Master theorem), correctness proofs (loop invariants, induction, reduction), and paradigm selection (greedy, divide-and-conquer, dynamic programming, backtracking). Use when analyzing efficiency, p

How to use this skill

Skill file

Algorithm Design

When to use

Core principles

  1. Prove before you code — choose a paradigm and establish correctness argument before implementation
  2. Tight bounds over loose bounds — Big-Theta tells the truth; Big-O alone can mislead
  3. Constants matter at small n — O(n log n) with large constants can lose to O(n²) for n < 10,000
  4. Amortized cost is not average cost — a single expensive operation does not break O(1) amortized
  5. Greedy requires proof — exchange argument or cut property; intuition is not a proof

Reference Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.