[Paper Review] Program-Size Versus Time Complexity, Speed-Up and Slowdown Phenomena in Small Turing Machines
This paper experimentally investigates the trade-off between program-size complexity and time complexity in small Turing machines (2,2), (3,2), and a sample of (4,2) machines. By exhaustively analyzing all such machines, it reveals that adding more states generally causes significant slowdowns—average slowdowns exceed 2,300 times—while speed-ups are rare and minimal, indicating a pervasive slow-down phenomenon in the micro-cosmos of small TMs.
The aim of this paper is to undertake an experimental investigation of the trade-offs between program-size and time computational complexity. The investigation includes an exhaustive exploration and systematic study of the functions computed by the set of all 2-color Turing machines with 2, 3 and 4 states--denoted by (n,2) with n the number of states--with particular attention to the runtimes and space usages when the machines have access to larger resources (more states). We report that the average runtime of Turing machines computing a function almost surely increases as a function of the number of states, indicating that machines not terminating (almost) immediately tend to occupy all the resources at hand. We calculated all time complexity classes to which the algorithms computing the functions found in both (2,2) and (3,2) belong to, and made a comparison among these classes. For a selection of functions the comparison was extended to (4,2). Our study revealed various structures in the micro-cosmos of small Turing machines. Most notably we observed "phase-transitions" in the halting-probability distribution that we explain. Moreover, it is observed that short initial segments fully define a function computed by a Turing machine.
Motivation & Objective
- To explore the relationship between program-size complexity (description length) and time complexity in small Turing machines.
- To investigate how increasing the number of states affects runtime performance for functions computed by (2,2), (3,2), and (4,2) Turing machines.
- To identify structural patterns, phase transitions, and computational behaviors in the 'micro-cosmos' of small TMs.
- To quantify speed-up and slowdown phenomena across different machine sizes and assess their statistical significance.
Proposed method
- Exhaustive enumeration and simulation of all 2-color Turing machines with 2, 3, and a sample of 4 states.
- Systematic computation of runtimes, space usage, and output patterns for inputs 0 through 20.
- Classification of all computed functions by their time complexity classes and comparison across machine sizes.
- Statistical analysis of halting probabilities and runtime distributions to detect phase transitions.
- Calculation of speed-up and slowdown factors by comparing algorithm performance across (2,2) and (3,2) machines.
- Estimation of probabilities for speed-up vs. slowdown to assess statistical significance of observed trends.
Experimental results
Research questions
- RQ1How does increasing the number of states in a 2-color Turing machine affect the average runtime of functions it computes?
- RQ2What is the frequency and magnitude of speed-up versus slowdown when moving from (2,2) to (3,2) Turing machines?
- RQ3Are there detectable phase transitions in the halting probability distribution as a function of computation steps?
- RQ4To what extent do small initial input segments determine the full behavior of a Turing machine?
- RQ5How does the (4,2) machine space compare to (3,2) in terms of speed-up and slowdown trends?
Key findings
- On average, adding more states leads to a significant increase in runtime, with the average algorithm in (3,2) taking 2,379.75 times longer than the slowest in (2,2).
- The maximum slowdown observed was approximately 1.198 × 10⁶ times slower, indicating extreme performance degradation with added states.
- Only 122 out of 3,414 algorithms in (3,2) computing functions from (2,2) were faster, a probability of ~10⁻¹⁰⁸ under a 50/50 speed-up assumption, confirming slowdown as statistically dominant.
- Speed-ups were rare but present: 19 out of 74 functions in (2,2) had at least one faster algorithm in (3,2), with an average speed-up factor of 1.23.
- In (4,2), only 0.0069 of functions showed linear speed-up (2.5–3× faster), confirming the (3,2) trend that speed-up is scarce and minimal.
- The halting probability distribution exhibited clear phase transitions, suggesting structural shifts in computational behavior at critical step counts.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.