Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

CS 701 VIVA Q/A

Turing Machines
A mathematical model of a hypothetical computing machine which can use a predefined set of
rules to determine a result from a set of input variables.
Multi-tape Turing Machines
Multi-tape Turing Machines have multiple tapes where each tape is accessed with a separate
head. Each head can move independently of the other heads. Initially the input is on tape 1 and
others are blank. At first, the first tape is occupied by the input and the other tapes are kept blank.
A Multi-tape Turing machine can be formally described as a 6-tuple (Q, X, B, δ, q0, F) where
 Q is a finite set of states
 X is the tape alphabet
 B is the blank symbol
 δ is a relation on states and symbols where
δ: Q × Xk → Q × (X × {Left_shift, Right_shift, No_shift })k
where there is k number of tapes
 q0 is the initial state
 F is the set of final states
Note − Every Multi-tape Turing machine has an equivalent single-tape Turing machine.
Non-Deterministic Turing Machine
In a Non-Deterministic Turing Machine, for every state and symbol, there are a group of
actions the TM can have. So, here the transitions are not deterministic. The computation of a
non-deterministic Turing Machine is a tree of configurations that can be reached from the start
configuration.
An input is accepted if there is at least one node of the tree which is an accept
configuration, otherwise it is not accepted. If all branches of the computational tree halt on all
inputs, the non-deterministic Turing Machine is called a Decider and if for some input, all
branches are rejected, the input is also rejected.
A non-deterministic Turing machine can be formally defined as a 6-tuple (Q, X, ∑, δ, q 0, B,
F) where −
 Q is a finite set of states
 X is the tape alphabet
 ∑ is the input alphabet
 δ is a transition function;
δ : Q × X → P(Q × X × {Left_shift, Right_shift}).
 q0 is the initial state
 B is the blank symbol
 F is the set of final states
CS 701 VIVA Q/A

Two-stack Turing machine[edit]


Two-stack Turing machines have a read-only input and two storage tapes. If a head moves left
on either tape a blank is printed on that tape, but one symbol from a “library” can be printed.

A universal Turing machine (UTM) is a Turing machine that can simulate an arbitrary Turing
machine on arbitrary input. The universal machine essentially achieves this by reading both the
description of the machine to be simulated as well as the input thereof from its own tape

State transition Function


the function that defines the transitions of a state transition system in computing, which may
refer more specifically to a

 Turing machine,
 finite-state machine, or
 cellular automaton

Decidable Language
A language is called Decidable or Recursive if there is a Turing machine which accepts and
halts on every input string w. Every decidable language is Turing-Acceptable.

A decision problem P is decidable if the language L of all yes instances to P is


decidable.
For a decidable language, for each input string, the TM halts either at the accept or the reject
state as depicted in the following diagram −
CS 701 VIVA Q/A

Decidable Language
Definition: A language is called decidable if there exists a method - any method at all - to
determine whether a given word belongs to that language or not.
What is difference between "recognizable" and "decidable" in context of Turing
machines?
Answer:
A language is Recognizableif there is a Turing Machine which will halt and
accept only the strings in that language and for strings not in the language; the TM either rejects,
or does not halt at all.
Note: there is no requirement that the Turing Machine should halt for strings not in the
language.
A language is Decidableif there is a Turing Machine which will accept strings in the language
and reject strings not in the language.
For an undecidable language, there is no Turing Machine which accepts the language and
makes a decision for every input string w (TM can make decision for some input string though).

A decision problem P is called “undecidable” if the language L of all yes instances to P is not
decidable. Undecidable languages are not recursive languages, but sometimes, they may be
recursively enumerable languages.

we have got a contradiction. Hence, the halting problem is undecidable.


CS 701 VIVA Q/A

The halting problem


Alan Turing proved in 1936 that a general algorithm to solve the halting
problem for all possible program-input pairs cannot exist. A key part of the proof
was a mathematical definition of a computer and program, which became known
as a Turing machine; the halting problem is undecidable over Turing machines.
P class NP class
P class include those languages or Where NP class include those
problems which are recognized by some problems of language which are
deterministic Turing machine in recognized by some non-deterministic
polynomial time Turing machine in polynomial time

What is NP-complete?
In computational complexity theory, a decision problem is NP-
complete when it is both in NP and NP-hard. The set of NP-complete problems is
often denoted byNP-C or NPC. The abbreviation NP refers to "nondeterministic
polynomial time".
difference betweencomputabilityand complexity theory?
Computability Complexity
Computability is about what can be Complexity is about how efficiently can
computed. it be computed.

Post correspondence problem PCP?


The Post correspondence problem is an undecidable decision problem that
was introduced by Emil Post in 1946. Because it is simpler than the halting
problem and the Entscheidungsproblem it is often used in proofs of undecidability.

]]

You might also like