Universal Turing machine

In computer science, a universal Turing machine (UTM) is a Turing machine capable of computing any computable sequence,[1] as described by Alan Turing in his seminal paper "On Computable Numbers, with an Application to the Entscheidungsproblem". Common sense might say that a universal machine is impossible, but Turing proves that it is possible.[a] He suggested that we may compare a human in the process of computing a real number to a machine which is only capable of a finite number of conditions ; which will be called "m-configurations".[2] He then described the operation of such machine, as described below, and argued:

It is my contention that these operations include all those which are used in the computation of a number.[3]

Alan Turing introduced the idea of such a machine in 1936–1937.

Introduction

Davis makes a persuasive argument that Turing's conception of what is now known as "the stored-program computer", of placing the "action table"—the instructions for the machine—in the same "memory" as the input data, strongly influenced John von Neumann's conception of the first American discrete-symbol (as opposed to analog) computer—the EDVAC. Davis quotes Time magazine to this effect, that "everyone who taps at a keyboard ... is working on an incarnation of a Turing machine", and that "John von Neumann [built] on the work of Alan Turing".[4]

Davis makes a case that Turing's Automatic Computing Engine (ACE) computer "anticipated" the notions of microprogramming (microcode) and RISC processors.[5] Knuth cites Turing's work on the ACE computer as designing "hardware to facilitate subroutine linkage";[6] Davis also references this work as Turing's use of a hardware "stack".[7]

As the Turing machine was encouraging the construction of computers, the UTM was encouraging the development of the fledgling computer sciences. An early, if not the first, assembler was proposed "by a young hot-shot programmer" for the EDVAC.[8] Von Neumann's "first serious program ... [was] to simply sort data efficiently".[9] Knuth observes that the subroutine return embedded in the program itself rather than in special registers is attributable to von Neumann and Goldstine.[b] Knuth furthermore states that

The first interpretive routine may be said to be the "Universal Turing Machine" ... Interpretive routines in the conventional sense were mentioned by John Mauchly in his lectures at the Moore School in 1946 ... Turing took part in this development also; interpretive systems for the Pilot ACE computer were written under his direction.[10]

Davis briefly mentions operating systems and compilers as outcomes of the notion of program-as-data.[11]

Mathematical theory

With this encoding of action tables as strings, it becomes possible, in principle, for Turing machines to answer questions about the behaviour of other Turing machines. Most of these questions, however, are undecidable, meaning that the function in question cannot be calculated mechanically. For instance, the problem of determining whether an arbitrary Turing machine will halt on a particular input, or on all inputs, known as the Halting problem, was shown to be, in general, undecidable in Turing's original paper. Rice's theorem shows that any non-trivial question about the output of a Turing machine is undecidable.

A universal Turing machine can calculate any recursive function, decide any recursive language, and accept any recursively enumerable language. According to the Church–Turing thesis, the problems solvable by a universal Turing machine are exactly those problems solvable by an algorithm or an effective method of computation, for any reasonable definition of those terms. For these reasons, a universal Turing machine serves as a standard against which to compare computational systems, and a system that can simulate a universal Turing machine is called Turing complete.

An abstract version of the universal Turing machine is the universal function, a computable function which can be used to calculate any other computable function. The UTM theorem proves the existence of such a function.

Efficiency

Without loss of generality, the input of Turing machine can be assumed to be in the alphabet {0, 1}; any other finite alphabet can be encoded over {0, 1}. The behavior of a Turing machine M is determined by its transition function. This function can be easily encoded as a string over the alphabet {0, 1} as well. The size of the alphabet of M, the number of tapes it has, and the size of the state space can be deduced from the transition function's table. The distinguished states and symbols can be identified by their position, e.g. the first two states can by convention be the start and stop states. Consequently, every Turing machine can be encoded as a string over the alphabet {0, 1}. Additionally, we convene that every invalid encoding maps to a trivial Turing machine that immediately halts, and that every Turing machine can have an infinite number of encodings by padding the encoding with an arbitrary number of (say) 1's at the end, just like comments work in a programming language. It should be no surprise that we can achieve this encoding given the existence of a Gödel number and computational equivalence between Turing machines and μ-recursive functions. Similarly, our construction associates to every binary string α, a Turing machine Mα.

Starting from the above encoding, in 1966 F. C. Hennie and R. E. Stearns showed that given a Turing machine Mα that halts on input x within N steps, then there exists a multi-tape universal Turing machine that halts on inputs α, x (given on different tapes) in CN log N, where C is a machine-specific constant that does not depend on the length of the input x, but does depend on M's alphabet size, number of tapes, and number of states. Effectively this is an simulation, using Donald Knuth's Big O notation.[12] The corresponding result for space-complexity rather than time-complexity is that we can simulate in a way that uses at most CN cells at any stage of the computation, an simulation.[13]

Smallest machines

When Alan Turing came up with the idea of a universal machine he had in mind the simplest computing model powerful enough to calculate all possible functions that can be calculated. Claude Shannon first explicitly posed the question of finding the smallest possible universal Turing machine in 1956. He showed that two symbols were sufficient so long as enough states were used (or vice versa), and that it was always possible to exchange states for symbols. He also showed that no universal Turing machine of one state could exist.

Marvin Minsky discovered a 7-state 4-symbol universal Turing machine in 1962 using 2-tag systems. Other small universal Turing machines have since been found by Yurii Rogozhin and others by extending this approach of tag system simulation. If we denote by (m, n) the class of UTMs with m states and n symbols the following tuples have been found: (15, 2), (9, 3), (6, 4), (5, 5), (4, 6), (3, 9), and (2, 18).[14][15][16] Rogozhin's (4, 6) machine uses only 22 instructions, and no standard UTM of lesser descriptional complexity is known.

However, generalizing the standard Turing machine model admits even smaller UTMs. One such generalization is to allow an infinitely repeated word on one or both sides of the Turing machine input, thus extending the definition of universality and known as "semi-weak" or "weak" universality, respectively. Small weakly universal Turing machines that simulate the Rule 110 cellular automaton have been given for the (6, 2), (3, 3), and (2, 4) state-symbol pairs.[17] The proof of universality for Wolfram's 2-state 3-symbol Turing machine further extends the notion of weak universality by allowing certain non-periodic initial configurations. Other variants on the standard Turing machine model that yield small UTMs include machines with multiple tapes or tapes of multiple dimension, and machines coupled with a finite automaton.

Machines with no internal states

If multiple heads are allowed on a Turing machine then no internal states are required; as "states" can be encoded in the tape. For example, consider a tape with 6 colours: 0, 1, 2, 0A, 1A, 2A. Consider a tape such as 0,0,1,2,2A,0,2,1 where a 3-headed Turing machine is situated over the triple (2,2A,0). The rules then convert any triple to another triple and move the 3-heads left or right. For example, the rules might convert (2,2A,0) to (2,1,0) and move the head left. Thus in this example, the machine acts like a 3-colour Turing machine with internal states A and B (represented by no letter). The case for a 2-headed Turing machine is very similar. Thus a 2-headed Turing machine can be Universal with 6 colours. It is not known what the smallest number of colours needed for a multi-headed Turing machine is or if a 2-colour Universal Turing machine is possible with multiple heads. It also means that rewrite rules are Turing complete since the triple rules are equivalent to rewrite rules. Extending the tape to two dimensions with a head sampling a letter and its 8 neighbours, only 2 colours are needed, as for example, a colour can be encoded in a vertical triple pattern such as 110.

Also, if the distance between the two heads is variable (the tape has "slack" between the heads), then it can simulate any Post tag system, some of which are universal.[18]

Example of coding

For those who would undertake the challenge of designing a UTM exactly as Turing specified see the article by Davies in Copeland (2004). Davies corrects the errors in the original and shows what a sample run would look like. He successfully ran a (somewhat simplified) simulation.

The following example is taken from Turing (1937). For more about this example, see Turing machine examples.

Turing used seven symbols { A, C, D, R, L, N, ; } to encode each 5-tuple; as described in the article Turing machine, his 5-tuples are only of types N1, N2, and N3. The number of each "m‑configuration" (instruction, state) is represented by "D" followed by a unary string of A's, e.g. "q3" = DAAA. In a similar manner, he encodes the symbols blank as "D", the symbol "0" as "DC", the symbol "1" as DCC, etc. The symbols "R", "L", and "N" remain as is.

After encoding each 5-tuple is then "assembled" into a string in order as shown in the following table:

Current m‑configuration Tape symbol Print-operation Tape-motion Final m‑configuration Current m‑configuration code Tape symbol code Print-operation code Tape-motion code Final m‑configuration code 5-tuple assembled code
q1 blank P0 R q2 DA D DC R DAA DADDCRDAA
q2 blank E R q3 DAA D D R DAAA DAADDRDAAA
q3 blank P1 R q4 DAAA D DCC R DAAAA DAAADDCCRDAAAA
q4 blank E R q1 DAAAA D D R DA DAAAADDRDA

Finally, the codes for all four 5-tuples are strung together into a code started by ";" and separated by ";" i.e.:

;DADDCRDAA;DAADDRDAAA;DAAADDCCRDAAAA;DAAAADDRDA

This code he placed on alternate squares—the "F-squares" – leaving the "E-squares" (those liable to erasure) empty. The final assembly of the code on the tape for the U-machine consists of placing two special symbols ("e") one after the other, then the code separated out on alternate squares, and lastly the double-colon symbol "::" (blanks shown here with "." for clarity):

ee.;.D.A.D.D.C.R.D.A.A.;.D.A.A.D.D.R.D.A.A.A.;.D.A.A.A.D.D.C.C.R.D.A.A.A.A.;.D.A.A.A.A.D.D.R.D.A.::......

The U-machine's action-table (state-transition table) is responsible for decoding the symbols. Turing's action table keeps track of its place with markers "u", "v", "x", "y", "z" by placing them in "E-squares" to the right of "the marked symbol" – for example, to mark the current instruction z is placed to the right of ";" x is keeping the place with respect to the current "m‑configuration" DAA. The U-machine's action table will shuttle these symbols around (erasing them and placing them in different locations) as the computation progresses:

ee.; .D.A.D.D.C.R.D.A.A. ; zD.A.AxD.D.R.D.A.A.A.;.D.A.A.A.D.D.C.C.R.D.A.A.A.A.;.D.A.A.A.A.D.D.R.D.A.::......

Turing's action-table for his U-machine is very involved.

Roger Penrose provides examples of ways to encode instructions for the Universal machine using only binary symbols { 0, 1 }, or { blank, mark | }. Penrose goes further and writes out his entire U-machine code. He asserts that it truly is a U-machine code, an enormous number that spans almost 2 full pages of 1's and 0's.[19]

Asperti and Ricciotti described a multi-tape UTM defined by composing elementary machines with very simple semantics, rather than explicitly giving its full action table. This approach was sufficiently modular to allow them to formally prove the correctness of the machine in the Matita proof assistant.[20]

See also

Notes

  1. ^ From lecture transcript attributed to John von Neumann, as quoted by Copeland in Copeland & Fan (2023).
  2. ^ In particular: Burks, Goldstine & von Neumann (1971) [1946].

References

Footnotes

  1. ^ Turing (1937), p. 241.
  2. ^ Turing (1937), p. 231.
  3. ^ Turing (1937), p. 232.
  4. ^ Davis (2000), p. 193 quoting Time magazine of 29 March 1999.
  5. ^ Davis (2000), p. 188.
  6. ^ Knuth (1973), p. 225.
  7. ^ Davis (2000), p. 237 footnote 18.
  8. ^ Davis (2000), p. 192.
  9. ^ Davis (2000), p. 184.
  10. ^ Knuth (1973), p. 226.
  11. ^ Davis (2000), p. 185.
  12. ^ Arora & Barak (2009), Theorem 1.9.
  13. ^ Arora & Barak (2009), Exercises 4.1.
  14. ^ Rogozhin (1996).
  15. ^ Kudlek & Rogozhin (2002).
  16. ^ Neary & Woods (2009).
  17. ^ Neary & Woods (2009b).
  18. ^ Minsky (1967), p. 269.
  19. ^ Penrose (1989), pp. 71–73.
  20. ^ Asperti & Ricciotti (2015).

Original paper and correction

  • Turing, A. M. (1937). "On Computable Numbers, with an Application to the Entscheidungsproblem" (PDF). Proceedings of the London Mathematical Society. 2. 42 (1): 230–265. doi:10.1112/plms/s2-42.1.230.
  • Turing, A. M. (1938). "On Computable Numbers, with an Application to the Entscheidungsproblem: A correction". Proceedings of the London Mathematical Society. 2. 43 (6): 544–6. doi:10.1112/plms/s2-43.6.544.

Other works cited

Further reading

Read other articles:

The Voice NewspaperFormatTabloidOwner(s)The Francistowner (Pty) Ltd.Founder(s)Beata KasaleDon Laurence MoorePublisherThe Francistowner (Pty) Ltd.Editor-in-chiefEmang BokhutloFounded1993LanguageEnglish and SetswanaWebsitethevoicebw.com[1] The Voice is a print and online newspaper based in Botswana founded by Beata Kasale and Don Laurence Moore. The Voice was founded in Francistown in 1993 as The Francistowner Extra;[2] in 1999 it opened offices in the national capital, Gaboron...

 

 

Artikel ini tidak memiliki referensi atau sumber tepercaya sehingga isinya tidak bisa dipastikan. Tolong bantu perbaiki artikel ini dengan menambahkan referensi yang layak. Tulisan tanpa sumber dapat dipertanyakan dan dihapus sewaktu-waktu.Cari sumber: Kasinem is Coming – berita · surat kabar · buku · cendekiawan · JSTOR Kasinem Is ComingSutradaraHasto BrotoProduserLetsman TendySkenarioBagus LaksonoPemeranNaysila MirdadNadya PashaAgatha ChelseaPenata&#...

 

 

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Oktober 2022. Beliau adalah Ahmar bin Sawa' bin Jaz' bin Auf bin Amr bin Sadus bin Syaiban bin Dzuhl As-Sadusi Al-Bashri (Bahasa Arab : أحمر بن سواء بن جزء بن عوف بن عمرو بن سدوس بن شيبان بن ذهل السدوسي الب�...

Pour les articles homonymes, voir Henri II et Henri Ier. Pour les articles homonymes, voir Henri de France, Henri d'Orléans, Henri de Valois et Henri de Bretagne. Si ce bandeau n'est plus pertinent, retirez-le. Cliquez ici pour en savoir plus. Certaines informations figurant dans cet article ou cette section devraient être mieux reliées aux sources mentionnées dans les sections « Bibliographie », « Sources » ou « Liens externes » (septembre 2...

 

 

Protein-coding gene in the species Homo sapiens CCKBRAvailable structuresPDBOrtholog search: PDBe RCSB List of PDB id codes1L4TIdentifiersAliasesCCKBR, CCK-B, CCK2R, GASR, cholecystokinin B receptorExternal IDsOMIM: 118445 MGI: 99479 HomoloGene: 7258 GeneCards: CCKBR Gene location (Human)Chr.Chromosome 11 (human)[1]Band11p15.4Start6,259,806 bp[1]End6,272,127 bp[1]Gene location (Mouse)Chr.Chromosome 7 (mouse)[2]Band7 E3|7 55.86 cMStart105,074,938 bp[2&#...

 

 

YmirPenemuan[1]Ditemukan olehBrett J. GladmanSitus penemuanObservatoire de la Cote d'AzurTanggal penemuan2000PenamaanNama alternatifS/2000 S1, Saturn XIXKata sifat bahasa InggrisYmirianCiri-ciri orbit[2]Sumbu semimayor23,040,000 kmEksentrisitas0.3349Periode orbit3.6 tahun (1315.14 h)Anomali rata-rata244.521°Inklinasi173.125°Bujur node menaik194.086°Argumen perihelion22.668°Satelit dariSaturnusCiri-ciri fisikDimensi18 km[3]Massa5.1×101...

Newspaper published by the LDS Church Deseret NewsTruth and LibertyDeseret.com homepage and Deseret MagazineTypeDaily (online)Semiweekly (print, local edition)Weekly (print, national edition)Monthly (magazine)FormatBroadsheetOwner(s)LDS Church via Deseret Management CorporationPublisherBurke OlsenEditorDoug Wilks and Hal BoydFoundedJune 15, 1850; 173 years ago (1850-06-15)Headquarters55 N 300 WSalt Lake City, Utah, U.S.[1]Circulation40,719 Weekday (print)109,330 Sund...

 

 

Kodoku no Gourmet孤独のグルメGenreMasakan MangaPenerbitFusoshaMajalahWeekly Spa!DemografiSeinenTerbit1994 – sekarangVolume1 Drama televisiSaluranasliTV TokyoTayang 4 Januari 2012 – 21 Maret 2012Episode12 Drama televisiKodoku no Gourmet Season 2SaluranasliTV TokyoTayang 10 Oktober 2012 – 26 Desember 2012Episode12 Drama televisiKodoku no Gourmet Season 3SaluranasliTV TokyoTayang 10 Juli 2013 – 25 September 2013Episode12 Drama televisiKodoku no Gourmet Season 4SaluranasliTV TokyoTa...

 

 

Type of naval warship This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Protected cruiser – news · newspapers · books · scholar · JSTOR (July 2015) (Learn how and when to remove this message) The Russian protected cruiser Oleg was a Bogatyr-class protected cruiser Protected cruisers, a type of cruising warship...

† Египтопитек Реконструкция внешнего вида египтопитека Научная классификация Домен:ЭукариотыЦарство:ЖивотныеПодцарство:ЭуметазоиБез ранга:Двусторонне-симметричныеБез ранга:ВторичноротыеТип:ХордовыеПодтип:ПозвоночныеИнфратип:ЧелюстноротыеНадкласс:Четвероно...

 

 

The Sandman: Dream CountryCover of The Sandman: Dream Country  (1991), trade paperback collected edition, art by Dave McKeanPublisherDC ComicsPublication dateJuly–October 1990Title(s)The Sandman #17–20Main character(s)DreamISBNISBN 1-85286-441-9Creative teamWriter(s)Neil Gaiman with material from William ShakespeareArtist(s)Kelley JonesCharles Vess Colleen DoranDave McKeanMalcolm Jones IIIRobbie BuschSteve OliffPenciller(s)Kelley JonesCharles Vess Colleen DoranInker(s)Malcolm Jo...

 

 

هذه المقالة عن المجموعة العرقية الأتراك وليس عن من يحملون جنسية الجمهورية التركية أتراكTürkler (بالتركية) التعداد الكليالتعداد 70~83 مليون نسمةمناطق الوجود المميزةالبلد  القائمة ... تركياألمانياسورياالعراقبلغارياالولايات المتحدةفرنساالمملكة المتحدةهولنداالنمساأسترالي�...

1991 studio album by OsvajačiKrv i ledStudio album by OsvajačiReleased1991RecordedStudio LA, Belgrade, 1990GenreGlam metalHeavy metalLength37:01LabelPGP-RTBProducerLaza RistovskiVlada NegovanovićOsvajači chronology Krv i led(1991) Sam(1995) Krv i led (Serbian Cyrillic: Крв и лед; trans. Blood and Ice) is the 1991 debut album from former Yugoslav and Serbian hard rock/heavy metal band Osvajači. Track 8, Jedna me devojka neće, is a cover of Uriah Heep's Stealin', translated...

 

 

Asian political and economic intergovernmental organization Not to be confused with OECD. Economic Cooperation Organization Azerbaijani: İqtisadi Əməkdaşlıq Təşkilatı Kazakh: Экономикалық Ынтымақтастық Ұйымы Kyrgyz: Экономикалык Кызматташтык Уюму Pashto: د اقتصادي او همکاريو سازمان Persian: سازمان همکاری اقتصادی Tajik: Ташкилоти ҳамкории иқтисодӣ Turkish: Ekonom...

 

 

Family of food and ornamental plants Not to be confused with the heather family Ericaceae, the arum family Araceae or the ivy family Araliaceae. Palm tree and Palm leaves redirect here. For other uses, see Palm tree (disambiguation). For the French pastry, see palmier. For the South Asian style of document, see palm-leaf manuscript. ArecaceaeTemporal range: 80–0 Ma PreꞒ Ꞓ O S D C P T J K Pg N Late Cretaceous – Recent Coconut (Cocos nucifera) in Martinique Scientific classificatio...

No debe confundirse con Viajar (canal de televisión) el canal difunto español de la misma temática. Viajar Eslogan Viajar, siempre volvésTipo de canal Televisión por suscripciónProgramación TurismoPropietario Non Stop TVOperado por Non Stop TVPaís  ArgentinaFundación 2011Inicio de transmisiones 1 de diciembre de 2011Cese de transmisiones 15 de julio de 2017 (TDT)Formato de imagen 16:9 480i SDTVÁrea de transmisión  ArgentinaUbicación Buenos Aires ciudadNombre anterior Arg...

 

 

هذه المقالة تحتاج للمزيد من الوصلات للمقالات الأخرى للمساعدة في ترابط مقالات الموسوعة. فضلًا ساعد في تحسين هذه المقالة بإضافة وصلات إلى المقالات المتعلقة بها الموجودة في النص الحالي. (يوليو 2019) منتخب لاتفيا لكرة الأرض تعديل مصدري - تعديل   منتخب لاتفيا الوطني لهوكي العشب...

 

 

Questa voce o sezione sull'argomento unità militari non cita le fonti necessarie o quelle presenti sono insufficienti. Puoi migliorare questa voce aggiungendo citazioni da fonti attendibili secondo le linee guida sull'uso delle fonti. Segui i suggerimenti del progetto di riferimento. Uno squadrone è una tipologia di unità militare terrestre, aerea o navale. In caso di unità militare terrestre è un'unità di cavalleria (anche corazzata) o di altre armi o servizi. In caso di unità m...

Voce principale: Offenbacher Fußball-Club Kickers 1901. Offenbacher Fußball-Club Kickers 1901Stagione 2004-2005Sport calcio Squadra Kickers Offenbach Allenatore Hans-Jürgen Boysen All. in seconda Manfred Binz Regionalliga sud1º posto Coppa di GermaniaPrimo turno Maggiori presenzeCampionato: Sieger, Thier (34)Totale: Sieger, Thier (35) Miglior marcatoreCampionato: Türker (16)Totale: Türker (16) StadioStadion am Bieberer Berg Maggior numero di spettatori11 064 vs. Darmstadt Min...

 

 

Former junior college in Yonkers, New York Elizabeth Seton CollegeTypePrivateActive1961–1989 (merged with Iona College)Religious affiliationRoman Catholic (Sisters of Charity of New York)Academic affiliationsMiddle States Association of Colleges and SchoolsBudget$6.5 million (1989)[1]PresidentMary Ellen Brosnan (1989)Undergraduates980 (1988),[1]400 day students580 weekend studentsLocationYonkers, New York, United StatesCampusYonkers: suburban, 21 acres (8.5 ha)Manhattan...