Undecidable Problem of Turing Machine

Automata Undecidable Problem of Turing Machine

Undecidable problems areproblems which cannot be solved by any Turing machine.

Example: Post Correspondence Problem is the type of undecidable Problem.

Post Correspondence Problem

Post Correspondence problem is a type of undecidable problem also called PCP. This type of problem was firstly introduced by Emil post in 1946.The Post Correspondence Problem over an alphabet ? belongs to a class of yes/no problems, and is stated as follows:

Consider the lists F = (f1,f2,………,fn), and

S = (s1,s2,………….,sn) of non-empty strings over an alphabet ? = {0,1}.

For each i, the pair (fi, si ) is said to be a corresponding pair. We can say this instance of Post Correspondence problem has a solution, if there is a sequence of one or more integers i1,i2,i3……………ik that, when interpreted as indexes for strings in the F and S lists yields the same string, that is

fi1,fi2………………..fik = si1,si2………………..sik.

We can say the sequence i1,i2,………………..ik is a solution to this instance of Post Correspondence problem. Example of the Post Correspondence problem is:

Example 1:

Consider the following two lists:

F = (1013, 1, 10)

S = (10, 13, 0)

Is this, Post Correspondence Problem have a solution or not?

Solution:

List of F and S can be written as:

Undecidable Problem of Turing Machine

Let k =4

i1 = 1, i2 = 2, i3 = 2, i4 = 3

The solution is the list 1,2,2,3.

The solution for the given Post Correspondence Problem find by concatenating or joining the corresponding strings in order for the two lists.

1013    1        1         10        =        10        13           13        0

f1        f2        f2        f3        =          s1        s2        s2        s3

                        10160             =          10160

                        f1f2f2f3        =          s1s2s2s3

 Hence, It is proved that Post Correspondence Problem have a solution.

Example 2:

Consider the following two lists:

F = (ba, a, a)

S = (ba2, ab, a2)

Is this, Post Correspondence Problem have a solution or not?

Solution:

List of F and S can be written as:

Undecidable Problem of Turing Machine

Each substring of list S is greater than each substring of List F i.e.

| fi | < | si | for all i.

Hence the string generating by a sequence of substring of F is always shorter than the string generated by the sequence of corresponding substring of S.

Hence, it is proved that Post Correspondence Problem has no solution.

Example 3:

Consider the following two lists:

F = (ab, a, abaaa)

S = (b, a3 ,ab,)

Is this, Post Correspondence Problem have a solution or not?

Solution:

List of F and S can be written as:

Undecidable Problem of Turing Machine

Let k =4

i1 = 3,

i2 = 2,

i3 = 2,

i4 = 1

The solution is the list 3,2,2,1.

The solution for the given Post Correspondence Problem can be found by concatenating or joining the corresponding strings in order for the two lists.

abaaa   a        a         ab        =        ab       a3           a3        b

f3        f2        f2        f1        =          s3        s2        s2        s1

                  abaaaaaab         =          ab a3 a3b

                        aba6b             =          aba6b

                        f3f2f2f1        =          s3s2s2s1

 Hence, It is proved that Post Correspondence Problem have a solution.

Example 4:

Consider the following two lists:

F = (11, 111, 001, 010)

S = (10110, 000, 0101, 0)

Is this Post Correspondence Problem have a solution or not?

Solution:

List of F and S can be written as:

Undecidable Problem of Turing Machine

Let k =4

The solution is the list 4,1,3,4.

The solution for the given Post Correspondence Problem can be found by concatenating or joining the corresponding strings in order for the two lists.

010   11      001     010        =        0      10110    0101  0

f4        f1        f3        f4        =          s4        s1        s3        s4

                        01011001010     = 01011001010

                        f4f1f3f4        =          s4s1s3s4

 Hence, It is proved that Post Correspondence Problem have a solution.

Example 5:

Consider the following two lists:

F = (b, a, ba, baa, ab)

S = (aba, ba, bab, a, baa)

Is this Post Correspondence Problem have a solution or not?

Solution:

List of F and S can be written as:

Undecidable Problem of Turing Machine

The solution is the list 3,1,5,2,4,4,2,4.

The solution for the given Post Correspondence Problem can be found by concatenating or joining the corresponding strings in order for the two lists.

ba   b     ab    a   baa   baa    a       baa     =     bab     aba   baa   ba    a    a     ba    a

f3    f1   f5     f2   f4     f4       f2      f4      =      s3       s1       s5     s2   s4    s4    s2     s4              

babababaabaaabaa                                   =                             babababaabaaabaa

babababa2b a3ba2                                      =                                  babababa2b a3ba2

f3f1f5f2f4f4f2f4                                         =                                  s3s1s5s2s4s4s2s4

 Hence, It is proved that Post Correspondence Problem have a solution.


Related Topics

Finite Automata

Finite Automata Finite state Automata or Finite State Machine is the simplest model used in Automata. Finite state automata accepts regular language. In this, the term finite means it has a...

4 minutes read.

Simplification of Context Free Grammar - Automata

Simplification of Context Free Grammar Context Free Grammar has recursive structure. The languages that are accepted with Context Free Grammar are called Context Free Languages. Context Free Grammar has one condition...

3 minutes read.

Equivalence of Regular Grammar and Finite Automata

Equivalence of Regular Grammar and Finite Automata Regular Grammar / type -3 grammar A regular grammar or type-3 defines the language called regular language that is accepted by finite Automata.A Regular Grammar...

3 minutes read.

What is Automata Theory?

What is Automata Theory? Automata theory is used to study the abstract machine and automata (the self-acting machine).  Abstract machine is a theoretical model of a computer used in Automata theory. Automata...

4 minutes read.

Minimization of Finite Automata with Output

Minimization of Finite Automata with Output The method to minimize the Moore and Mealy machine is very much similar to the method that we have used to minimize the DFA. Methods to...

3 minutes read.

Conversion of DFA to Regular expression

Conversion of DFA to Regular expression To convert the DFA to Regular Expression (RE), we are going to use a method called converting DFA to regular expression by eliminating states. This...

3 minutes read.

Undecidable Problem of Turing Machine

Automata Undecidable Problem of Turing Machine Undecidable problems areproblems which cannot be solved by any Turing machine. Example: Post Correspondence Problem is the type of undecidable Problem. Post Correspondence Problem Post Correspondence problem is...

7 minutes read.

Conversion from Moore Machine to Mealy Machine

Conversion from Moore Machine to Mealy Machine Moore Machine The output of Moore machine depends only on the present state. In this, if machine has N number of states, then it will...

6 minutes read.

Pumping Lemma for Context Free Languages

Pumping Lemma for Context Free Languages The Pumping Lemma is made up of two words, in which, the word pumping is used to generate many input strings by pushing the symbol...

3 minutes read.

Pumping Lemma for Regular Languages - Automata

Pumping Lemma for Regular Languages The language accepted by the finite automata is called Regular Language. If we are given a language L and asked whether it is regular or not?...

4 minutes read.

Ambiguity in Context Free Grammar - Automata

Ambiguity in Context Free Grammar? Context Free Grammar Context Free Grammar has one condition for production rules, which is, on the left-hand side of each rule, there must be only single variable,...

4 minutes read.

Automata Tutorial

What is Automata? Automata is a mathematical model and abstract model, which is used to detect string in various languages. In Automata, Regular language is recognized by Finite state AutomataContext Free language...

4 minutes read.

Chomsky's Normal Form - Automata

Chomsky's Normal Form (CNF) In context free grammar, the left-hand side of production rules contains only one variable, and right side may contain any number of variables or terminals in production...

4 minutes read.

Minimization of Finite Automata

Minimization of Finite Automata The term minimization refers to the construction of finite automata with a minimum number of states, which is equivalent to the given finite automata. The number of...

4 minutes read.

Non-deterministic Turing Machine - Automata

A non-deterministic Turing machine (NTM) is a theoretical machine used in computability theory to study the extent to which a machine can "guess" at a solution and yet still be...

4 minutes read.

Recursive Language and Recursive Enumerable Language

Recursive Language and Recursive Enumerable Language Before discussing Recursive language and Recursive Enumerable language, let us see what Turing machine responds for some input string. If we have the Turing machine T...

4 minutes read.

Automata Regular Expressions

Regular Expressions Regular expressions are also referred as rational expressions, which are used to describe the algebraic description of regular languages. It is generally a sequence of characters that is used...

3 minutes read.

Context Free Grammar - Automata

Context Free Grammar Grammar defines a set of rules, and with the help of these rules valid sentences in a language are constructed. A grammar consists of collection of substitution rules,...

3 minutes read.

Automata Chomsky Hierarchy

Chomsky Hierarchy Formal languages: A language with precise syntax and semantics are called formal languages. Noam Chomsky has defined the Chomsky hierarchy in 1956. He is an American scientist and philosopher, and...

3 minutes read.

Automata Greibach Normal Form

Greibach Normal Form In Greibach Normal Form, there is restriction on the position, in which, terminals and variables can appear on right-hand side of production rules. In Greibach Normal Form, every...

4 minutes read.