Construction of a self-printing (quine) Turing machine program with the possibility of printing any other program
Abstract The Turing machine (TM) is a fundamental mathematical model in the field of algorithmic processes. To our knowledge, the printing of a TM program by itself (starting with the blank tape) has not been practically realized yet, despite the fact that the reproduction of the program describing the driving algorithm is a key step in self-replication. Although, there exist so-called self-describing algorithms/machines, they print not their (complete) program itself, only some (abbreviated) representation of it. Our present work is to contribute to fill this gap by means of constructing the program of a new kind of TMs, that we call self-printing TMs. While printing their own program (starting with the blank tape), the possibility of printing any (other) TM program is built in the proposed self-printing (or quine) TMs. This kind of universality is utilized to improve von Neumann’s fundamental self-replicating system, in the sense that the improved system requires less working components. As a practical contribution, a particular self-printing TM program, with 146,852 functional instructions, is provided. By running this program, one can directly check its self-printing ability. Apart from the theoretical and mathematical respects on self-replication, the proposed self-printing TM may serve as a tool for studying fundamental life-like phenomena (like mutation and evolution) in their pure (most direct) form, in the field of artificial and biological life.
Authors
- Richárd Kicsiny (ORCID: https://orcid.org/0000-0001-6395-095X)
- Zoltán Varga
Institutions
- Magyar Agrár- és Élettudományi Egyetem (HU)
Publication Details
- Journal
- Discover Computing
- Published
- 2026-07-27
- DOI
- https://doi.org/10.1007/s10791-026-10314-7
- Primary Topic
- Cellular Automata and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Magyar Agrár- és Élettudományi Egyetem