News for hackers. Stuff that matters.
Re:Ask HN: What's Your Favorite Algorithm? by tothrowaway on Saturday November 12, 2022 @01:01AM (#33570423)
The Hungarian algorithm. It solves the assignment problem (the optimal way to assign workers to tasks given their completion time of each task). The assignment problem looks hopelessly O(n!), but by some magic, the algorithm can solve it in polynomial time.

There are no comments on this comment yet.