Nondeterministic Turing machine

In theoretical computer science, a nondeterministic Turing machine (NTM) is a theoretical model of computation whose governing rules specify more than one possible action when in some given situations. That is, an NTM's next state is not completely determined by its action and the current symbol it sees, unlike a deterministic Turing machine.

NTMs are sometimes used in thought experiments to examine the abilities and limits of computers. One of the most important open problems in theoretical computer science is the P versus NP problem, which (among other equivalent formulations) concerns the question of how difficult it is to simulate nondeterministic computation with a deterministic computer.

Background

In essence, a Turing machine is imagined to be a simple computer that reads and writes symbols one at a time on an endless tape by strictly following a set of rules. It determines what action it should perform next according to its internal state and what symbol it currently sees. An example of one of a Turing Machine's rules might thus be: "If you are in state 2 and you see an 'A', then change it to 'B', move left, and switch to state 3."

Deterministic Turing machine

In a deterministic Turing machine (DTM), the set of rules prescribes at most one action to be performed for any given situation.

A deterministic Turing machine has a transition function that, for a given state and symbol under the tape head, specifies three things:

  • the symbol to be written to the tape (it may be the same as the symbol currently in that position, or not even write at all, resulting in no practical change),
  • the direction (left, right or neither) in which the head should move, and
  • the subsequent state of the finite control.

For example, an X on the tape in state 3 might make the DTM write a Y on the tape, move the head one position to the right, and switch to state 5.

Intuition

Comparison of deterministic and nondeterministic computation

In contrast to a deterministic Turing machine, in a nondeterministic Turing machine (NTM) the set of rules may prescribe more than one action to be performed for any given situation. For example, an X on the tape in state 3 might allow the NTM to:

  • Write a Y, move right, and switch to state 5

or

  • Write an X, move left, and stay in state 3.

Resolution of multiple rules

How does the NTM "know" which of these actions it should take? There are two ways of looking at it. One is to say that the machine is the "luckiest possible guesser"; it always picks a transition that eventually leads to an accepting state, if there is such a transition. The other is to imagine that the machine "branches" into many copies, each of which follows one of the possible transitions. Whereas a DTM has a single "computation path" that it follows, an NTM has a "computation tree". If at least one branch of the tree halts with an "accept" condition, the NTM accepts the input.

Definition

A nondeterministic Turing machine can be formally defined as a six-tuple , where

  • is a finite set of states
  • is a finite set of symbols (the tape alphabet)
  • is the initial state
  • is the blank symbol
  • is the set of accepting (final) states
  • is a relation on states and symbols called the transition relation. is the movement to the left, is no movement, and is the movement to the right.

The difference with a standard (deterministic) Turing machine is that, for deterministic Turing machines, the transition relation is a function rather than just a relation.

Configurations and the yields relation on configurations, which describes the possible actions of the Turing machine given any possible contents of the tape, are as for standard Turing machines, except that the yields relation is no longer single-valued. (If the machine is deterministic, the possible computations are all prefixes of a single, possibly infinite, path.)

The input for an NTM is provided in the same manner as for a deterministic Turing machine: the machine is started in the configuration in which the tape head is on the first character of the string (if any), and the tape is all blank otherwise.

An NTM accepts an input string if and only if at least one of the possible computational paths starting from that string puts the machine into an accepting state. When simulating the many branching paths of an NTM on a deterministic machine, we can stop the entire simulation as soon as any branch reaches an accepting state.

Alternative definitions

As a mathematical construction used primarily in proofs, there are a variety of minor variations on the definition of an NTM, but these variations all accept equivalent languages.

The head movement in the output of the transition relation is often encoded numerically instead of using letters to represent moving the head Left (-1), Stationary (0), and Right (+1); giving a transition function output of . It is common to omit the stationary (0) output,[1] and instead insert the transitive closure of any desired stationary transitions.

Some authors add an explicit reject state,[2] which causes the NTM to halt without accepting. This definition still retains the asymmetry that any nondeterministic branch can accept, but every branch must reject for the string to be rejected.

Computational equivalence with DTMs

Any computational problem that can be solved by a DTM can also be solved by a NTM, and vice versa. However, it is believed that in general the time complexity may not be the same.

DTM as a special case of NTM

NTMs include DTMs as special cases, so every computation that can be carried out by a DTM can also be carried out by the equivalent NTM.

DTM simulation of NTM

It might seem that NTMs are more powerful than DTMs, since they can allow trees of possible computations arising from the same initial configuration, accepting a string if any one branch in the tree accepts it. However, it is possible to simulate NTMs with DTMs, and in fact this can be done in more than one way.

Multiplicity of configuration states

One approach is to use a DTM of which the configurations represent multiple configurations of the NTM, and the DTM's operation consists of visiting each of them in turn, executing a single step at each visit, and spawning new configurations whenever the transition relation defines multiple continuations.

Multiplicity of tapes

Another construction simulates NTMs with 3-tape DTMs, of which the first tape always holds the original input string, the second is used to simulate a particular computation of the NTM, and the third encodes a path in the NTM's computation tree.[3] The 3-tape DTMs are easily simulated with a normal single-tape DTM.

Time complexity and P versus NP

In the second construction, the constructed DTM effectively performs a breadth-first search of the NTM's computation tree, visiting all possible computations of the NTM in order of increasing length until it finds an accepting one. Therefore, the length of an accepting computation of the DTM is, in general, exponential in the length of the shortest accepting computation of the NTM. This is believed to be a general property of simulations of NTMs by DTMs. The P = NP problem, the most famous unresolved question in computer science, concerns one case of this issue: whether or not every problem solvable by a NTM in polynomial time is necessarily also solvable by a DTM in polynomial time.

Bounded nondeterminism

An NTM has the property of bounded nondeterminism. That is, if an NTM always halts on a given input tape T then it halts in a bounded number of steps, and therefore can only have a bounded number of possible configurations.

Comparison with quantum computers

The suspected shape of the range of problems solvable by quantum computers in polynomial time (BQP). Note that the figure suggests and . If this is not true then the figure should look different.

Because quantum computers use quantum bits, which can be in superpositions of states, rather than conventional bits, there is sometimes a misconception that quantum computers are NTMs.[4] However, it is believed by experts (but has not been proven) that the power of quantum computers is, in fact, incomparable to that of NTMs; that is, problems likely exist that an NTM could efficiently solve that a quantum computer cannot and vice versa.[5][better source needed] In particular, it is likely that NP-complete problems are solvable by NTMs but not by quantum computers in polynomial time.

Intuitively speaking, while a quantum computer can indeed be in a superposition state corresponding to all possible computational branches having been executed at the same time (similar to an NTM), the final measurement will collapse the quantum computer into a randomly selected branch. This branch then does not, in general, represent the sought-for solution, unlike the NTM, which is allowed to pick the right solution among the exponentially many branches.

See also

References

  1. ^ Garey, Michael R.; David S. Johnson (1979). Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman. ISBN 0-7167-1045-5.
  2. ^ Erickson, Jeff. "Nondeterministic Turing Machines" (PDF). U. Illinois Urbana-Champaign. Retrieved 2019-04-07.
  3. ^ Lewis, Harry R.; Papadimitriou, Christos (1981). "Section 4.6: Nondeterministic Turing machines". Elements of the Theory of Computation (1st ed.). Englewood Cliffs, New Jersey: Prentice-Hall. pp. 204–211. ISBN 978-0132624787.
  4. ^ The Orion Quantum Computer Anti-Hype FAQ, Scott Aaronson.
  5. ^ Tušarová, Tereza (2004). "Quantum complexity classes". arXiv:cs/0409051..

General

Read other articles:

  Paloma perdiz de las Marianas MachoEstado de conservaciónCasi amenazado (UICN 3.1)[1]​TaxonomíaReino: AnimaliaFilo: ChordataClase: AvesOrden: ColumbiformesFamilia: ColumbidaeGénero: PampusanaEspecie: P. xanthonura(Temminck, 1823)Sinonimia Gallicolumba xanthonuraAlopecoenas xanthonurus [editar datos en Wikidata] La paloma perdiz de las Marianas o paloma perdiz de Marianas (Pampusana xanthonura) es una especie de ave columbiforme de la familia Columbidae propia de...

 

  Turdoide matorralero Estado de conservaciónPreocupación menor (UICN 3.1)[1]​TaxonomíaDominio: EukaryotaReino: AnimaliaFilo: ChordataClase: AvesOrden: PasseriformesFamilia: LeiothrichidaeGénero: TurdoidesEspecie: T. striata(Dumont, 1823)Distribución Sinonimia Turdoides striatusMalacocercus terricolorCossyphus striatusCrateropus canorus [editar datos en Wikidata] Espécimen adulto de la sp. orientalis en Kolkata, West Bengal, India El turdoide matorralero (Turdo...

 

  هذه المقالة عن المملكة النبطية أو مملكة الأنباط. لمعانٍ أخرى، طالع نبطية (توضيح). الأنباط المملكة النبطية القرن الرابع ق.م – 106 م المملكة النبطية في أقصى اتساعها. عاصمة البتراء نظام الحكم ملكية اللغة الرسمية لغة عربية نبطية،  والآرامية  اللغة آرامية نبطيةع...

Halaman ini berisi artikel tentang the tertiary education college in Paris. Untuk other uses, lihat Collège de France (disambiguation). Collège de FranceCoat of arms of the Collège de France, given by Louis XIV with letters patent in 1699bahasa Latin: Collegium Franciæ RegiumNama sebelumnyaCollège royal, Collège impérialMotoDocet omnia (Latin)Moto dalam bahasa InggrisTeaches allJenisPublicDidirikan1530; 492 tahun lalu (1530) (royal charter)PendiriFrancis I of FranceAfilia...

 

2023 South Korean television series AgencyPromotional posterHangul대행사Revised RomanizationDaehaengsaMcCune–ReischauerTaehaengsa GenreWorkplace[1]Written bySong Soo-han[2]Directed byLee Chang-min[2]StarringLee Bo-youngSon Na-eunJo Sung-haHan Joon-wooMusic byKim Hyun-jongAhn So-yeongCountry of originSouth KoreaOriginal languageKoreanNo. of episodes16ProductionExecutive producersKim So-jungShin Seon-joo (CP)Hwang Hyeon-mi (CP)ProducersPark Jin-youngSon Jae-seongRun...

 

This article may lend undue weight to the opinion of Flyvbjerg et al. Please help improve it by rewriting it in a balanced fashion that contextualizes different points of view. (September 2023) (Learn how and when to remove this template message) Extremely large-scale investment project For a list of megaprojects, see List of megaprojects. For a list of megaprojects specifically related to transportation, see List of transport megaprojects. Itaipu Dam, an example of a 20th-century megaproject...

Political party in the United Kingdom Rock 'n' Roll Loony Party LeaderChris Screwy DriverFounded2000; 23 years ago (2000)Split fromOfficial Monster Raving Loony PartyHeadquartersCannockIdeologySatirePolitics of the United KingdomPolitical partiesElections The Rock 'n' Roll Loony Party was a minor political party in the United Kingdom. Founded in 2000, the group split from the Official Monster Raving Loony Party after the death of Screaming Lord Sutch.[1] Ste...

 

1995 popular science book Longitude: The True Story of a Lone Genius Who Solved the Greatest Scientific Problem of His Time First edition (US)AuthorDava SobelGenrePopular SciencePublisherWalker & Company (US)Fourth Estate (UK)Publication date1995Pages191ISBN978-0-8027-1529-6OCLC183660066 Longitude: The True Story of a Lone Genius Who Solved the Greatest Scientific Problem of His Time is a 1995 best-selling book by Dava Sobel about John Harrison, an 18th-century clockmaker who created the ...

 

1979 strategy board game 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: Dune board game – news · newspapers · books · scholar · JSTOR (August 2007) (Learn how and when to remove this template message) DuneBox art from the original 1979 release.DesignersBill EberleJack KittredgePeter OlotkaPublishersOri...

Brześć redirects here. For other uses, see Brześć (disambiguation). Brest-Litovsk redirects here. For the treaty, see Treaty of Brest-Litovsk. City in Brest Region, BelarusBrest Брэст (Belarusian)Брест (Russian)CityFrom top, left to right: Fortress church of Saint NicholasFortressOld Bank of Poland buildingSeat of regional authoritiesExaltation of the Holy Cross churchCity History Museum FlagCoat of armsBrestLocation of Brest in BelarusCoordinates: 52°08′05″N 23°...

 

Bombo FicaBornDaniel Haroldo Fica Roa (1963-09-04) September 4, 1963 (age 60)Purén, ChileNationalityChileanOccupation(s)Humorist, comedian, actorYears active1986–presentPolitical partyCommunist Party of ChileChildren8 Daniel Haroldo Fica Roa, better known by his artistic name Bombo Fica (born 4 September 1963), is a Chilean humorist, comedian and actor. Life and career Daniel Haroldo Fica Roa[1] was born in Purén[2][3] on September 4, 1963.[4] Fic...

 

Pune Metro's Purple Line terminal metro station in Pimpri-Chinchwad, India PCMC BhavanPune Metro stationGeneral informationLocationMorewadi, Pimpri Colony, Pimpri Chinchwad, Maharashtra 411018Coordinates18°37′46″N 73°48′12″E / 18.6294°N 73.8033°E / 18.6294; 73.8033Owned byMaharashtra Metro Rail Corporation Limited (MAHA-METRO)Operated byPune MetroLine(s)Purple LinePlatformsSide platformPlatform-1 → Civil CourtPlatform-2 → Train Terminates HereTracks2Con...

Indian actress and producer Shweta Shindeat the premiere of Deool BandBornSatara, Maharashtra, IndiaNationalityIndianOccupationsActressModelProducerYears active1998–presentSpouse Sandeep Bhansali ​(m. 2007)​[1]Websiteshwetashindeofficial.com Shweta Shinde is an Indian actress and producer, known for Lagira Zhala Ji's producer and Doctor Don. She launched Vajra Productions with Film director Sanjay Khambe in 2016.[2][3][4] Per...

 

The Simpsons and Philosophy: The D'oh! of Homer Book coverAuthorWilliam Irwin, Mark T. Conard, Aeon J. SkobleIllustratorJoan Sommers DesignCountryUnited StatesLanguageEnglishSeriesPopular Culture and Philosophy (Vol. 2)SubjectPhilosophy, The SimpsonsGenreNon-fictionPublisherOpen CourtPublication dateFebruary 28, 2001Pages256ISBN0-8126-9433-3Preceded bySeinfeld and Philosophy: A Book about Everything and Nothing Followed byThe Matrix and Philosophy  The Simpsons and Philoso...

 

British crime drama TV series The Murders at White House Farm redirects here. For the events on which the series is based, see White House Farm murders. White House FarmGenre True crime Drama Written by Kris Mrksa Giula Sandler Directed byPaul WhittingtonStarring Freddie Fox Mark Addy Gemma Whelan Mark Stanley Alexa Davies Cressida Bonas Amanda Burton Nicholas Farrell Stephen Graham Alfie Allen Country of originUnited KingdomOriginal languageEnglishNo. of episodes6ProductionExecutive producer...

Shopping mall in New York, United StatesWilton MallExterior of Wilton MallLocationWilton, New York, United StatesCoordinates43°06′08″N 73°44′15″W / 43.10221°N 73.7375°W / 43.10221; -73.7375Address3065 NY Route 50Opening date1990DeveloperWilmorite PropertiesManagementMacerichOwnerMacerichNo. of stores and services70No. of anchor tenants5Total retail floor area708,000 sq ft (65,800 m2)[1]No. of floors1Public transit access 450, 452Websi...

 

Traditions within Hinduism centered on one or more gods or goddesses Part of a series onHinduism Hindus History Timeline Origins History Indus Valley Civilisation Historical Vedic religion Dravidian folk religion Śramaṇa Tribal religions in India Traditions Major traditions Shaivism Shaktism Smartism Vaishnavism List Deities Trimurti Brahma Vishnu Shiva Tridevi Saraswati Lakshmi Parvati Other major Devas / Devis Vedic: Agni Ashvins Chandra Indra Prajapati Pushan Rudra Surya Ushas ...

 

Indoor arena in Washington, D.C. United States historic placeUline Ice Company Plant and Arena ComplexU.S. National Register of Historic Places Uline Arena in 2008Location1132, 1140, and 1146 3rd St. NE, Washington, District of ColumbiaCoordinates38°54′18″N 77°0′11″W / 38.90500°N 77.00306°W / 38.90500; -77.00306Area3.9 acres (1.6 ha)Built1941ArchitectKubitz & Koenig; et al.Architectural styleModern MovementNRHP reference No.07000448&...

Filipino historian This article includes a list of references, related reading, or external links, but its sources remain unclear because it lacks inline citations. Please help to improve this article by introducing more precise citations. (June 2012) (Learn how and when to remove this template message) History of the Filipino People redirects here. For Filipino history, see History of the Philippines. In this Philippine name, the middle name or maternal family name is Andal and the ...

 

Ski jumping competition 2022–23 FIS Ski Jumping World CupDiscipline Men WomenOverall Halvor Egner Granerud (2) Eva PinkelnigNations Cup  Austria (20)  Austria (5)Ski flying Stefan Kraft (3) —Stage eventsRaw Air Halvor Egner Granerud Ema KlinecFour Hills Tournament Halvor Egner Granerud —Planica7 Stefan Kraft —Silvester Tournament — Eva PinkelnigCompetitionEdition 44th 12thLocations 19 13Individual 33 27Team 5 1Mixed 1 1Rescheduled 1 – ←2021–222023–24→ The 2022–...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!