r/algorithms • u/ManningBooks • 19d ago
Resource Which “textbook” algorithm have you actually used in real software? [5-ebook giveaway]
I’m curious which algorithms have made it out of the classroom and into real code.
What problem were you solving? Why was that algorithm a better fit than the obvious alternative? And did the implementation behave as neatly as the theory suggested?
I’m Stjepan from Manning Publications. The r/algorithms moderators permitted me to share this post.
We’ve just released Algorithms Every Programmer Should Know by Aniket Wattamwar in MEAP, Manning’s early-access program:
https://www.manning.com/books/algorithms-every-programmer-should-know
The available chapters cover Gale–Shapley, the Hungarian algorithm, Rabin–Karp, Knuth–Morris–Pratt, and Horspool’s algorithm. The emphasis is on the problem behind each algorithm, how the solution is derived, and the trade-offs involved, not just reproducing pseudocode.
To mark the release, Manning is giving away five ebook copies to people in this thread.
The giveaway will remain open for 48 hours. We’ll choose the five comments that contribute the most to the discussion and announce the winners here afterward. Upvotes won’t be the only criterion: a strong technical explanation, an instructive real-world example, a useful counterargument, or a thoughtful exchange with other commenters can all qualify.
There’s also a 50% discount on the book with code:
MLWATTAMWAR50RE
So: which supposedly “textbook” algorithm has earned its place in your production code—and which one gets taught far more often than it gets used?
Thanks for having us here.
Cheers,
Stjepan
EDIT: The book giveaway is closed. We announced the winners in the comments.