Author: Marcus Hutter (2000)
Subject: Theoretical Computer Science / Algorithmic Information Theory
Abstract
In the field of computational complexity, the search for the most efficient algorithm for a given task is often hindered by theoretical paradoxes and massive overheads. This report presents a theoretical breakthrough: a universal procedure, $M_{p^*}$, which is provably the asymptotically fastest algorithm (within a constant factor of 5) for any formally described problem. By restricting the search space to programs with formal correctness proofs, the procedure sidesteps Blum’s Speed-up Theorem and establishes a direct link between computational speed and Kolmogorov complexity.
Introduction
Computer science has long sought a general-purpose method to find the "best" possible code for any given task. While specialized algorithms exist for specific problems like sorting or matrix multiplication, a universal optimizer has remained elusive. Previous attempts, such as Levin Search, provided optimality for function inversion but suffered from exponential multiplicative overhead. Furthermore, Blum’s Speed-up Theorem suggested that for certain problems, a "fastest" algorithm might not even exist, as one could always construct a more complex program that runs faster.
In his 2000 technical report, Marcus Hutter describes a procedure that overcomes these hurdles. He constructs an algorithm that is theoretically the fastest possible way to solve any formally specified problem, maintaining a runtime within a factor of 5 of the optimal provable solution.
The Problem: Levin Search and Blum’s Paradox
To understand Hutter's contribution, one must look at the two primary obstacles in algorithmic optimization:
- Levin Search: While optimal for inverting functions, Levin Search carries a multiplicative overhead of $2^{length(program)}$. This makes it practically unusable for complex programs.
- Blum’s Speed-up Theorem: This theorem proves that some problems allow for infinite speed-up; for any algorithm solving the problem, there exists another algorithm that is significantly faster, though potentially much larger. This implies there is no "bottom" or "fastest" algorithm for these specific cases.
Hutter’s goal was to create a general-purpose algorithm that works for any problem—not just function inversion—while avoiding the infinite speed-up trap to find a single, asymptotically optimal solution.
The $M_{p^*}$ Procedure
The core of Hutter's approach is the algorithm $M_{p^*}$. It operates by running three distinct sub-algorithms in parallel, utilizing a specific resource-sharing schedule: 10% of CPU time is allocated to Algorithm A, 10% to Algorithm B, and the remaining 80% to Algorithm C.
- Algorithm A (The Proof Searcher): This component enumerates all possible strings in a formal logic system to find valid mathematical proofs. It specifically searches for proofs that a program $p$ is functionally equivalent to the problem specification and possesses a provable time bound $t_p$.
- Algorithm B (The Time Evaluator): For every program identified by Algorithm A, this component calculates the specific time bound $t_p(x)$ for the current input $x$.
- Algorithm C (The Executor): This component executes the program that currently holds the smallest proven time bound.
Bypassing the Speed-up Theorem
The most significant innovation in Hutter's work is the use of provability as a filter. Blum’s Speed-up Theorem relies on the existence of programs that are faster but whose correctness or speed cannot be formally proven within a fixed axiomatic system. By restricting $M_{p^*}$ to programs that are provably correct and have provable time bounds, Hutter turns an uncomputable search into a computable one. This effectively sidesteps the paradox of infinite speed-up by limiting the search space to the realm of formal logic.
Key Results and Asymptotic Optimality
Hutter demonstrates that the fastest program for a task is intrinsically linked to its Kolmogorov Complexity—the shortest description of the data. He proves that the fastest program is among the shortest programs that can be proven to solve the task.
Theorem 1 states that for any algorithm $p$ that provably solves a problem with a time bound $t_p(x)$, the universal algorithm $M_{p^*}$ will solve it in:
$$time_{M_{p^*}}(x) \leq 5 \cdot t_p(x) + d_p \cdot time_{t_p}(x) + c_p$$
In this equation, $d_p$ and $c_p$ are constants independent of the input $x$. Because 80% of the CPU time is dedicated to the best candidate found so far, the total runtime is guaranteed to be within a factor of 5 ($1/0.8 = 1.25$, scaled with search overhead) of the theoretical optimum as the problem size $x$ increases.
Limitations and Practicality
Despite its theoretical elegance, $M_{p^*}$ is not yet a practical tool. The primary limitation is the additive constant ($c_p$). Because the algorithm must enumerate every possible proof starting from length 1, the initial "search" phase for any non-trivial problem would likely exceed the age of the universe. Additionally, the requirement that a problem be formally specified in a logic system presents a high barrier for real-world application.
Conclusion
Marcus Hutter’s work provides a definitive theoretical answer to the quest for a universal fastest algorithm. While the "astronomical" constants prevent immediate implementation, the framework offers a roadmap for future research. Hutter suggests that replacing brute-force enumeration with advanced automated theorem provers or utilizing "holographic proofs" could eventually reduce these constants, potentially bringing the "perfect algorithm" closer to reality.
Summary updated