NP-hard
Named by 2 essays across 2 fields — each of them below, with the objects they name alongside it.
The fewest swaps to a winner
When no candidate beats every other head to head, Charles Dodgson proposed in 1876 to elect the one that is closest to doing so — the candidate that the fewest swaps of neighbouring names on the ballots would turn into a winner of every contest. The rule is easy to state and hard to compute: the count needs a search, and deciding the winner is provably among the hardest problems of its kind. A much simpler count, the votes still to be won, usually agrees, more often the larger the electorate.
There is a relation such that
A graph can be coloured with three colours exactly when there are three sets of its points such that every point lies in one and no edge joins two points of the same set. The sets are a guess; once guessed, the rest is a list of simple checks. Ronald Fagin proved in 1974 that this shape of sentence — 'there exist relations such that' followed by first-order conditions — describes exactly the problems whose solutions can be checked quickly, the class called NP. The central question of computer science is therefore also a question about what sentences can say.
Named alongside it
The objects these essays reach for when they reach for this one.
Exhaustive searchApproximationBorda countCondorcet winnerEhrenfeucht fraisse gameGraph colouringMajority ruleQuantifierSecond-order logicVoting rule