Imagine you have a list of n integers and you want to know: do any three of them add up to exactly zero?
This is the 3SUM problem, and at first glance it looks trivially easy. You can check every triple in steps by brute force. With a sort-and-scan trick you can do it in â sort the list, then for each element a, walk two pointers inward from both ends looking for b and c such that a + b + c = 0.
Can you do better? Nobody knows. For over 30 years, every attempt to break the barrier has failed. No sub-quadratic algorithm has been found, and computer scientists conjecture that none exists.
That conjecture â the 3SUM Conjecture â would be just a curious open question, except for one thing: researchers found they could reduce dozens of computational geometry problems to 3SUM. Proving any of those problems is sub-quadratic would automatically disprove the 3SUM Conjecture, and vice versa. The conjecture became the bedrock of an entire web of conditional lower bounds, a way to say "this problem is at least as hard as 3SUM" without solving P vs NP first.
Comments
Loading comments...