Computational complexity

From rnavarych/alpha-engineer · View interactive version

Computational complexity is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Analyzes computational complexity — P vs NP classification, NP-completeness proofs and reductions, approximation algorithms (PTAS, FPTAS) with provable guarantees, parameterized complexity (FPT, kernelization), randomized algorithms (Las Vegas, Monte Carlo), and practical heuristics for intractable

How to use this skill

Skill file

Computational Complexity

When to use

Core principles

  1. Classify before solving — knowing a problem is NP-hard changes the entire strategy
  2. Reduction direction matters — reduce FROM a known hard problem TO yours to prove hardness
  3. Approximation ratio is a guarantee, not a hope — an unproven heuristic is not an approximation algorithm
  4. Small parameter = FPT opportunity — exponential in k is fine when k ≤ 20
  5. Amplify randomized correctness — repeat Monte Carlo k times to push error below 2^(-k)

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.