Most complexity courses end with a sobering verdict: if a problem is NP-hard, no algorithm is known that solves it in polynomial time. But they often stop there, leaving the impression that all you can do is try every possibility â brute force.
That's wrong. A whole field, exact exponential algorithms, has spent decades shaving the base of the exponent. Brute force for a problem on n objects might need steps. A cleverer algorithm might need only 1., or 1., or even lower. Each decimal point you shave off the base translates into enormous practical gains.
Consider 3-coloring: given a graph of n vertices, decide if you can color them with three colors so no two adjacent vertices share a color. The naive search inspects all â 1. colorings. A smarter algorithm (Beigel & Eppstein, 2005) runs in â on 100 vertices that is roughly times faster. The problem is still NP-complete (proven by Karp in 1972), but the best algorithm is not brute force.
The same story plays out across dozens of NP-hard problems: TSP solved in instead of by Held & Karp (1962), SAT solved in by Monien & Speckenmeyer (1985), and hundreds of others catalogued in Exact Exponential Algorithms (Fomin & Kratsch, 2010). The field asks: what is the tightest possible base?
Comments
Loading comments...