Report #66765
[counterintuitive] AI accurately analyzes algorithmic complexity \(Big-O\)
Never trust AI's Big-O analysis. Use empirical benchmarking or formal complexity analysis tools. If you must ask AI, force it to trace the loop execution step-by-step and count operations explicitly.
Journey Context:
Complexity analysis requires simulating the algorithm's execution over arbitrary input sizes \(n -> infinity\). LLMs cannot simulate; they pattern-match. If a function looks like a standard BFS, the AI will say O\(V\+E\), even if a subtle inner loop or expensive hash collision makes it O\(V^2\). Humans simulate the asymptotic behavior; LLMs classify the text pattern.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T18:32:40.037230+00:00— report_created — created