Fast computers, impossible tasks
Computers perform billions of operations a second, so it can be surprising that some simple-sounding problems defeat them. Finding the shortest route that visits a set of cities once each and returns home, scheduling exams so no student has a clash, or packing boxes into lorries as tightly as possible all become impossibly slow to solve exactly once they grow large. The reason lies not in the speed of hardware but in mathematics. Computer scientists study computational complexity: how the amount of work an algorithm needs grows as the problem gets bigger. That growth, more than anything else, separates problems that are merely large from problems that are truly hard.
Polynomial versus exponential
Some tasks grow gently. Sorting a list of names takes a bit more than twice as long when the list doubles. Tasks whose work grows like the size raised to a fixed power, such as squared or cubed, are said to run in polynomial time and are considered tractable. Others grow exponentially. If the work doubles every time one item is added, then 10 items mean about 1,000 steps but 20 items mean about a million, and 60 items more than a billion billion. Some grow even faster. A tenfold faster computer barely helps with exponential problems: it lets you handle only a few more items in the same time, not ten times as many.
The travelling salesman
The classic example is the travelling salesman problem. A delivery van in Dubai must visit a set of addresses and return to its depot by the shortest route. With 10 stops, there are 181,440 possible round trips, easily checked by computer. With 20 stops there are about 61 million billion. Checking them all at a billion routes a second would take nearly two years, and every extra stop multiplies the total again. No known method solves every case exactly in polynomial time. In practice, delivery firms use clever algorithms that find very good routes, usually within a small percentage of the best, in seconds, accepting a near-perfect answer instead of a guaranteed best one.
P versus NP
Many hard problems share a curious feature: a proposed answer is easy to check, even if it is hard to find. Given a completed Sudoku, you can verify it in moments; solving a large blank grid is far harder. Problems whose answers can be checked quickly form a class called NP. Problems that can be solved quickly form a class called P. Every problem in P is also in NP. The great open question is whether the reverse is true: if an answer can be checked quickly, can it always be found quickly? In 2000 the Clay Mathematics Institute made P versus NP one of its seven Millennium Prize Problems, with a $1 million reward.
The hardest of the hard
In 1971 the computer scientist Stephen Cook showed that some problems in NP are as hard as every other problem in the class: if one of them could be solved quickly, all could. Thousands of such NP-complete problems are now known, from timetabling and circuit design to protein folding models and certain puzzles. Most experts believe P does not equal NP, meaning these problems really are intractable, but nobody has proved it. The question matters because much of modern security relies on problems believed to be hard. A proof that P equals NP, with a practical method, could undermine some encryption, although widely used systems rest on problems not known to be NP-complete.
Living with hard problems
Hardness in theory does not mean helplessness in practice. Engineers use approximation algorithms with guaranteed quality, heuristics that work well on typical cases, and solvers that exploit structure in real-world data, routinely handling scheduling and routing problems with millions of variables. Quantum computers are sometimes assumed to solve all hard problems, but researchers believe they would speed up only certain kinds, not NP-complete problems in general. The practical lesson is to ask how a problem grows, not just how big it is today. A task that takes a second for 30 items may take years for 60, and recognising that early saves time, money and frustration.
Sources & further reading
Figures are rounded and widely published; check the linked organisations for the latest editions. These organisations do not endorse this website.



