When we say that an algorithm is polynomial time, we usually measure time as a function of the input size. For 3-SAT, there are several natural sizes: the number of variables
For polynomial time, these choices lead to the same broad notion. If every variable occurs in some clause, then
Conversely,
A 3-clause has three literal positions. For each position there are at most
This is only an upper bound, since it also counts repeated literals and different orderings of the same clause. That is fine here. It shows that
The polynomial world is coarse
Thus measuring by
For example, suppose an algorithm runs in time
Conversely, since
So a polynomial in
The exponent of the polynomial may change, but the result is still polynomial time. This is the key point: for the question of whether a problem is in polynomial time, these measures are interchangeable.
This is why the P versus NP question does not need a careful discussion of whether 3-SAT is measured by variables or by clauses. Polynomial time is too coarse to notice the difference.
The exponent is the terrain
Subexponential time is different. Now the exponent itself is the object of study. The difference between
is exactly the difference we care about. A polynomial change in the parameter can move a bound across the line between single-exponential and subexponential.
That is the small trap behind the exponential time hypothesis. It wants to say that 3-SAT has no subexponential algorithm, but it must first decide what the parameter is.
One possible statement uses the number of variables:
Another uses the number of clauses
The good news is that this ambiguity disappears. Impagliazzo, Paturi, and Zane showed that the natural formulations using
In the usual form, ETH says:
Here
A stronger kind of hardness
ETH is stronger than
The statement
But it says nothing about algorithms that are slower than every polynomial and still much faster than
This time bound is not polynomial, because of the exponential term
But it is subexponential in
So the same algorithm would contradict ETH. This is the middle zone: not polynomial, but still subexponential.
Thus
This gives ETH its role in exact algorithms. It says that some improvements over brute force are meaningful, but that a subexponential algorithm for 3-SAT would be a major collapse of our current picture.
Geometry changes the search
Planar graph problems show the other side of the story. Planar vertex cover, planar independent set, and planar dominating set remain hard in the usual NP-complete sense, but they admit algorithms of the form
The point is not that planarity makes these problems easy. They are still NP-complete. The point is that planarity gives the graph a shape. A planar graph has a small separator: a set of only
This boundary is where the hard global interaction is concentrated. If we know what happens on the separator, then the two sides no longer need to coordinate with each other directly. They only need to agree with the fixed boundary choice.
Vertex Cover
For a problem such as vertex cover, the boundary choice says which separator vertices are selected. There are only
such choices.
Colouring
For colouring problems, each separator vertex may have three possible colours, so the boundary has up to
states. This still has the same subexponential shape. Since
and
is just a constant, a separator of size gives The important quantity is therefore not the exact constant base, but the number of separator vertices in the exponent.
After one boundary choice is fixed, the graph falls into pieces. The left piece and the right piece can be solved independently, because every path between them had to pass through the separator. This is the algorithmic value of the separator: it turns one large search into a boundary search plus two smaller searches.
Recursing gives a subexponential running time. At the top level we pay
Thus a piece of size at most
The resulting recurrence has the shape
Here
Now apply this shrink repeatedly. The root problem has size
So there are two lessons at once. Geometry can make some NP-complete problems subexponential by exposing small boundaries. ETH says that we should not expect the same miracle for 3-SAT itself, where no such planar separator structure is present.