Assignment TAFL
Assignment TAFL
Now for sequence 1, 2, 1, 3 first list will yield aabbaaabb and second list will
yield same string aabbaaabb so, the solution to this PCP becomes 1, 2, 1, 3. Post
Correspondence Problems can be represented in two ways:
1. Domino’s Form:
2. Table Form:
Example-1:
A B
1 1 111
2 10111 10
3 10 0
Step-1: We will start with tile in which numerator and denominator are starting
with same number, so we can start with either 1 or 2. Let’s go with second tile,
string made by numerator- 10111, string made by denominator is 10.
Step-3: There is extra 1 in numerator to match this 1 we will add first tile in
sequence, string made by numerator is now 10111 1 1, string made by
denominator is 10 111 111.
Step-4: Now there is extra 1 in denominator to match it we will add third tile,
string made by numerator is 10111 1 1 10, string made by denominator is 10
111 111 0.
Final Solution - 2 1 1 3
Example - 2
Find whether the lists M = (abb, aa, aaa) and N = (bba, aaa, aa) have a Post
Correspondence Solution.
X1 X2 X3
M Abb Aa Aaa
N Bba Aaa aa
Here,
x2x1x3 = ‘aaabbaaa’
x2x1x3 = y2y1y3
Example 3:
Obtain the solution for the following system of posts correspondence problem. A
= {100, 0, 1}, B = {1, 100, 00}
Solution: Consider the sequence 1, 3, 2. The string obtained from A = babababb.
The string obtained from B = bababbbb. These two strings are not equal. Thus if
we try various combination from both the sets to find the unique sequence, we
could not get such a sequence. Hence there is no solution for this system.
Example 4:
Obtain the solution for the following system of posts correspondence problem, X
= {100, 0, 1}, Y = {1, 100, 00}.
Examples:
Rice's Theorem states that determining whether a Turing machine halts on empty
input is undecidable. That means there is no algorithm that can decide for all
Turing machines whether they halt on an empty input or not.
2. Recognizing Palindromes
Rice's Theorem applies here as well. Deciding whether a given Turing machine
recognizes a language of palindromes is undecidable because it's a non-trivial
property that can't be determined universally for all Turing machines.
Again, Rice's Theorem comes into play. Determining whether a Turing machine
accepts a language with an even number of strings is an undecidable problem.
Once more, Rice's Theorem applies. The property of recognizing a language with
strings of prime length is non-trivial and thus undecidable for a given Turing
machine.
On input x
• Run M on w
• If M does not accept (or doesn't halt), then do not accept x (or do not halt)
• If M accepts w then run M0 on x. If M0 accepts x, then accept x.
• If M accepts w and N accepts the same language as M0, Then L(M) = L(M0)
∈p
• If M does not accept w and N accepts φ, Then L(N) = φ ∉ p
that can be stated as: “The assumption that the intuitive notion of computable
functions can be identified with partial recursive functions.”
Or in simple words we can say that “Every computation that can be carried out in
the real world can be effectively performed by a Turing Machine.”
In 1930, this statement was first formulated by Alonzo Church and is usually
referred to as Church’s thesis, or the Church-Turing thesis. However, this
hypothesis cannot be proved. The recursive functions can be computable after
taking following assumptions:
2. Let ‘F’ be the computable function and after performing some elementary
operations to ‘F’, it will transform a new function ‘G’ then this function ‘G’
automatically becomes the computable function.
• Proof
For any decision problem, rather than constructing a Turing machine solution, let
us describe an effective procedure which solves the problem.
The Church-Turing thesis explains that a decision problem Q has a solution if and
only if there is a Turing machine that determines the answer for every q ϵ Q. If
no such Turing machine exists, the problem is said to be undecidable.