HiveBrain v1.2.0
Get Started
← Back to all entries
snippetMinor

Convert a non-deterministic Turing machine into a deterministic Turing machine

Submitted by: @import:stackexchange-cs··
0
Viewed 0 times
nonconvertintodeterministicmachineturing

Problem

How can we systematically convert a non-deterministic Turing machine into a deterministic Turing machine that recognizes the same language?

Solution

The deterministic machine simulates all possible computations of a nondeterministic machine, basically in parallel. Whenever there are two choices, the deterministic machine spawns two computations. This proces is sometimes called dovetailing. The tape of the deterministic simulator contains a list of configurations of the nondeterministic one, and performs a step on each of these in turn. This requires quite some administration, and the capability to move aroud data when one of the simulated configurations extends its allotted space.

Context

StackExchange Computer Science Q#16796, answer score: 7

Revisions (0)

No revisions yet.