Undecidablity
Undecidablity
The language that is accepted by Turing Machine is called as Recursively enumerable language.
It is also called as Turing acceptable language.
Recursive language :
Accept (T) = L
Loop(T) =
Accept (T) = L
Every Turing Decidable language is Turing Every Turing acceptable language need not be
acceptable Turing Decidable
Undeciadability:
A class of problems is said to be decidable if there exists some definite algorithm which always
terminates with the correct answer. We can also say that the problem is decidable if there exists a
Turing machine which gives correct answer for every statement in the domain of the problem.
The class of problems for which there is no Turing Machine that gives correct answer for every
input instance said to be undecidable problems. These problems are also called as unsolvable
problems. Some examples of undecidable problems are:
1. Halting Problem
Halting Problem:
1] The machine starting at this configuration will halt after a finite no of steps.
Given Turing machine M with the input ‘dT’ will ever halt or not is called as Halting
problem.
In reality, there is no Turing machine which takes any other Turing machine as input and decides
whether it halts or not. Therefore the Halting problem is unsolvable.
Proof:
Assume that the Halting problem is proved using contradiction. Consider a Turing machine A,
which takes configuration of any other Turing machine T and the input as (t,dT). So, the Turing
machine A can determine whether the Turing machine T will ever halt or not for a given input.
For every input (t,dT) to „A‟ if the Turing machine T halts for input „t‟ ,‟A‟ reaches to “accept
halt” if the Turing machine T does not halts for input „t‟ ,‟A‟ reaches to “reject halt”. This
working of Turing machine A is shown in figure:
Now, we will construct another Turing machine B with both the input as dT. first copies input dT
to „A‟ with one modification .i.e. whenever „A‟ reach to an “accept halt” „B‟ Loops forever.
whenever „A‟ reach to an “reject halt” „B‟ Halts. It loops if „T’ halts for input t=dT while it
halts if „T’ does not halts for input t=dT
Now we will construct another Turing machine B Such that T=B with input. Then we get „B’
halts for input t=dB if and only if „B’ does not halts for input t=dB and loops forever if and
only if „B’ halts for input t=dB This is the contradiction. Hence we can conclude that machine
A does not exists. Thus, the Halting problem is unsolvable.
The problem is to determine if there is a sequence of one or more integers i1, i2, …, im such that:
xi1xi2…xim = yi1yi2…yim
Solution:
We have to find such sequence using which if we list out the elements of A and B then it will
generate same strings.
x2 x1 x1= y2 y1 y1
bbbbbba = bbbbbbba
x2 x1 x1 x3 = y2 y1 y1 y3
babbbbbba = babbbbbba
Thus, x2 x1 x1 x3 = y2 y1 y1 y3
A = {10, 011, 101} B = {101, 11, 011} have a solution? Justify your answer.
Solution:
A1 A3 A1 = B1 B3 B1
1010110 = 101011
A1 A1 A3 = B1 B1 B3
1010101 = 1010011
A->1010
B->101101
A->10101
B->101011
Still the strings are not identical. After this step we have only one choice of the sequences to
select , (3,3). But still produce dissimilar strings. Thus this PCP instance has no solution.
Example 3:Determine the solution for the following instance of the PCP
B = {0,0, 1111,01}
Solution:
A1 A3 A2 A4 A4 A3 = B1 B3 B2 B4 B4 B3
01111001011111 = 01111001011111
Thus, A1 A3 A2 A4 A4 A3 = B1 B3 B2 B4 B4 B3
Solution:
A1 A3 A1 A1 A3 A2 A2 = B1 B3 B1 B1 B3 B2 B2
1001100100100= 1001100100100
Thus, A1 A3 A1 A1 A3 A2 A2 = B1 B3 B1 B1 B3 B2 B2
Rice’s Theorem:
There are several other problems which are undecidable. We can use the reduction technique to
show the problem is undecidable. Such problems include State entry problem whether given
Turing Machine M enter in a particular state or not.
Proof: The property which is true for some recursively enumerable languages and which is
false for other recursively enumerable languages is called as non-trivial property.
Let x be a nontrivial property that is not possessed by all recursively enumerable languages. This
problem can be reduced by consisting pair of (M,w) such that L possesses x iff w € L(M).We
take a UTM U that takes pair of (M,w) its output is yes iff x is possessed by L.
As L is recursively enumerable language, there must be a TM that accepts x€L. Now we design
machine M‟ to decide x as shown below.
UTM U takes pair s(M,w) and checks if w € L(M).It O/P is “yes” then machine M L accepts the
string x & O/P of machine M‟ is “yes”. Thus possessing the trivial property reduces the problem
of Lu. Since Lu is not recursive therefore possession of x by L is also not decidable.
Greibach Theorem:
Greibach's theorem states that certain properties of formal language classes are undecidable. It is
used to prove that problems related to CFG are undecidable.
Theorem:
A linear bounded automaton is a non deterministic TM which has a single tape whose length is not
infinite but bounded by a linear function of length of the input string. The set of strings accepted by
non deterministic LBA is the set of string generated by the context sensitive grammar excluding null
string.
A linear bounded automaton (LBA) is a restricted form of Turing machine, with following
restrictions
The input tape includes two special symbols as left end marker (<) and right end marker
(>) to indicate the end on both of the sides.
The head is not allowed to move beyond the end marker.
The head is not allowed to change these end marker.
LBA Model consists of:
1. Input tape
2. Working tape
May-2014(CBGS)
1 Write short note on Rice‟s theorem 05
2 Write short note on Recursive and Recursively Enumerable languages. 05
Dec-2014(CBGS)
1 Compare Recursive and Recursively Enumerable languages 05
May-2014
1 Write short note on Halting Problem 05
2 Write short note on Rice‟s theorem 05
Dec-2014
1 Write short note on Halting Problem 05
2 Write short note on Post correspondence problem 05
May-13
1 Define the term undecidability 02
2 Write short note on Rice‟s theorem 05
3 Write short note on Recursive and Recursively Enumerable languages. 05
DEC-13
1 Write short note on Recursive and Recursively Enumerable languages 05
2 Write short note on Post correspondence problem 05
May-12
1 Write short note on Post correspondence problem 05
DEC-12
1 Write short note on Rice‟s theorem 05
May-11
1 Write short note on Post correspondence problem 05
2 Write short note on Greibach theorem 05
DEC-11
1 Write short note on Post correspondence problem 05
2 Write short note on Halting Problem 05
May-10
1 Define Post correspondence problem & Refer Example1 10
DEC-10
1 Write short note on Post correspondence problem 05
2 Write short note on Recursive and Recursively Enumerable languages. 05