r/OCEANnetworking • u/Herschberg • 38m ago
Not everything needs AI. Sometimes, a better algorithm is the answer.
Not everything needs AI. Sometimes, a better algorithm is the answer.
There's a growing tendency in software development to reach for AI to solve every problem. But more AI doesn't automatically mean better results. Sometimes, like John Henry vs the steam drill, a human being wins.
I recently became dissatisfied with the approach taken by Claude Code to solve a particular matching problem. Rather than continuing to throw more tokens, context, and expensive model calls at it, I decided to rethink the problem from the ground up.
So I dusted off my 100% human math skills and I built my own algorithm.
The results were pretty striking:
The new approach does the job more effectively. The original AI matching call that failed processed 1,074,594 tokens... essentially the entire table. That works out to roughly $2.15 per call on Sonnet 5.5.
My new approach: Around 3,500 input tokens and 400 output tokens, costing approximately $0.011 per call on Sonnet or $0.0006 on Haiku. No - that's not a typo... there really are those zeroes to the right of the decimal.
Even at scale: A shortlist of 100 entries costs just around $0.03 on Sonnet.
That's not a marginal improvement. It's a fundamentally different way of approaching the problem.
In short - AI is a tool, not a default architecture.
Sometimes an LLM is exactly what you need. Sometimes a carefully designed algorithm, a bit of engineering, and a human willingness to question the obvious approach will outperform an AI-heavy solution - at a tiny fraction of the cost.
We shouldn't measure engineering progress by how much AI we use. We should measure it by how effectively we solve problems. Use AI where it adds value... not just because you can.
(And yes, I recognize the irony in my use of an AI-generated cover image for this)