Blum's speed-up theorem states that there exists a total computable predicate such that for any algorithm computing
with running time
,
there exists another algorithm computing
with computation time
.
This means that there is no algorithm for the predicate that is even nearly optimal.