SlideShare a Scribd company logo
1 of 4
Download to read offline
Math- I, II, III, IV, RSA & TCS by Parmar Sir [9764546384]
MU | TCS/FA | Un-decidability | Feb 2014 | Parmar Sir Page 1
Un-decidability
 Recursive Languages
 A language L over the alphabet is called recursive if it is
accepted by some Turing Machine, M that accepts every word
in L and reject every word in (i.e. not belonging to L)
i.e. Accept (M) =L
Reject (M) =
Loop (M) = (No output)
 Example
TM accepting L over that starts with “a” and reject for in all cases. So L is recursive.
 For recursive languages we can define algorithm.
 The union of two recursive languages is recursive language.
 The complements of recursive language is recursive
 Recursively Enumerable Languages
 A language L over the alphabet is called recursive
enumerable languages if it is accepted by some Turing
Machine, M that accepts every word in L and either rejects
or loops for every word in
i.e. Accept (M) =L
Reject (M)+ Loop (M) = (No output)
 Example
A TM accepting language and reject or loops all words not in L. So L is recursive
enumerable.
 The universal language is recursively enumerable. [Universal Language: this language
consists of strings that are interpreted as TM followed by an Input for that TM. The string is in
if the TM accepts that input.]
 But diagonalisation language is not recursively enumerable. [Diagonalisation Language: this
language is the set of strings of 0’s and 1’s that when interpreted as a TM, are in the language of
that TM]
 For recursive enumerable languages we cannot define algorithm.
 The union of two recursive enumerable languages is recursive enumerable language.

Accept
Reject
L
L’

AcceptL
L’
Math- I, II, III, IV, RSA & TCS by Parmar Sir [9764546384]
MU | TCS/FA | Un-decidability | Feb 2014 | Parmar Sir Page 2
 Difference between Recursive and Recursive Enumerable languages
 There is a profound difference between recursive and recursively enumerable language.
 If there is a regular language, we always have a FA to accept it.
 Now if the string w is given, and we want to know whether w belongs to this languages, w will
run it on the FA, and within n number of steps, where , as each state will
consume one character, we will get the answer YES if w belongs to L, otherwise NO. This is
called effective decision procedure.
 With TM accepting the language which is recursively enumerable and if w is executed on TM, we
are having a harder time. If then the machine will halt, otherwise we will have to wait,
perhaps for a very long time.
 In the worst case if w is in loop set for this machine, we shall never get a answer.
 A recursive language has the advantage that we shall at least some day get the answer, even
though we may not know how long it will take.
 An interesting observation is that, not all TM’s that accept a recursive language have no loop set.
 A language is recursive if at least one TM accepts it and rejects its complement. Some TM’s
which accept the same language but loops on some inputs.
 Undesirability and Un-solvability
 A problem whose language is recursive is said to be decidable otherwise it is un-decidable (RE
languages).
 If the problem is un-decidable then there is no algorithm which take the input and find the answer
either YES or NO.
 The problem “Whether a TM will halt for the given input word” is un-decidable problem
 If there is a TM which, when applied to any problem in the class, always eventually terminates
with the correct (YES/NO) answer, we call the problem solvable.
 If there is a TM which, when applied to any problem in the class, always eventually terminates
with the correct answer when the answer is YES and may or may not terminate when the correct
answer is NO, we call the problem semi-solvable or partially solvable.
 If there is no TM which, when applied to a problem in the class, eventually with the correct
answer YES, we call the problem un-solvable.
 Rice’s Theorem
 Every non-trivial property of the RE (Recursive Enumerable) languages is un-decidable.
Proof
 Let P be any nontrivial property of the RE languages. That means at least one language has a
property and the at least one language does not.
Math- I, II, III, IV, RSA & TCS by Parmar Sir [9764546384]
MU | TCS/FA | Un-decidability | Feb 2014 | Parmar Sir Page 3
 Initially we will assume an empty language is not having the property P
 Since P is non-trivial, there should be some language L having property P i.e. And
therefore there exists a coded TM accepting language L let this TM is
 Now to prove construct a Universal Turing Machine that simulate TM, M and
 The design of be given in figure, if M does not accept w, and if M
accept w.
M
M L
M’Accept
AcceptAccept
Start
x
w
 Let reduce a universal language to and is un-decidable, so is also un-decidable (by
reduction theorem).
 The Turing machine can be produced on reduction. For the reduction algorithm the pair (M,
w) can be given input.
 is a two tape TM.
 One tape is used to simulate M on input w. then input is used for designing the transitions
of
 Second tape is used to simulate on input x. again the pair is used for designing the
transitions of
 The TM, is constructed to do the following things-
1. Simulate M on input w. note that w is not the input to ; rather writes M and w onto one
of its tapes and simulate the Universal Turing Machine on this pair.
2. If M does not accept w, then does nothing else. never accepts its own input, x so
. Since we assume is not in property P, that means the code for is not in
3. If M accepts w, then begins simulating on its own input x. Thus, will accept
exactly the language L. since L is in P, the code for is in P.
 Since constructing from M and w can be carried out by an algorithm. Since this algorithm
turns (M, w) into an that is in if and only if (M, w) is in , this reduction of to ,
and hence proves that the property P is un-decidable.
 Now another possibility when is in P.
 If so, consider the complements property of P i.e. , the set of RE languages that do not have
property P.
Math- I, II, III, IV, RSA & TCS by Parmar Sir [9764546384]
MU | TCS/FA | Un-decidability | Feb 2014 | Parmar Sir Page 4
 By the foregoing, is un-decidable. However, since every TM accepts an RE language, , the
set of (codes for) Turing machines that do not accept a languages in P is the same as , the set
of TM’s that accepts a language in .
 Suppose were decidable, then so would be is decidable. since the complement of a
recursive language is recursive.
 Post Correspondence Problem
 Post’s correspondence Problem (PCP) was first introduced by Emil Post in 1946. Later, the
problem was found to have many applications in the theory of formal languages.
 PCP is uses to check un-decidability of strings, (another way to check by Turing machine)
 PCP define as
 “the post’s correspondence problem consists of two lists of strings that are of equal length over
the input .
The two lists are and then there exists a non empty set
of integers such that ”
 Another way we can say “The PCP is to determine whether or not there exist ,
where , such that
 To solve the PCP, we try to find all combinations of to find the , then we say
that PCP has a solution.
 PCP is un-decidable.
Example:
Does the PCP with two lists and have a solution?
Answer:
We have to find out such a sequence that strings formed by x and y are identical.
Such sequences are 2, 1, 1, and 3.
Hence from x and y list equal
2 1 1 3 2 1 1 3
= (combined and see)
Which forms thus PCP has a solution.
........................................................................................................................................................
Theorem: It is Un-decidable a CFG is ambiguous.
Proof:

More Related Content

What's hot

13 propositional calculus
13 propositional calculus13 propositional calculus
13 propositional calculus
Tianlu Wang
 

What's hot (20)

Chomsky hierarchy
Chomsky hierarchyChomsky hierarchy
Chomsky hierarchy
 
P np & np completeness
P np & np completenessP np & np completeness
P np & np completeness
 
Applied Calculus: An Introduction to Derivatives
Applied Calculus: An Introduction to DerivativesApplied Calculus: An Introduction to Derivatives
Applied Calculus: An Introduction to Derivatives
 
FInite Automata
FInite AutomataFInite Automata
FInite Automata
 
Automata
AutomataAutomata
Automata
 
Mcs 031
Mcs 031Mcs 031
Mcs 031
 
Isolation Lemma for Directed Reachability and NL vs. L
Isolation Lemma for Directed Reachability and NL vs. LIsolation Lemma for Directed Reachability and NL vs. L
Isolation Lemma for Directed Reachability and NL vs. L
 
Closure properties
Closure propertiesClosure properties
Closure properties
 
Lecture 7: Definite Clause Grammars
Lecture 7: Definite Clause GrammarsLecture 7: Definite Clause Grammars
Lecture 7: Definite Clause Grammars
 
App a
App aApp a
App a
 
Context Free Grammar
Context Free GrammarContext Free Grammar
Context Free Grammar
 
PARSING ARABIC VERB PHRASES USING PREGROUP GRAMMARS
PARSING ARABIC VERB PHRASES USING PREGROUP GRAMMARSPARSING ARABIC VERB PHRASES USING PREGROUP GRAMMARS
PARSING ARABIC VERB PHRASES USING PREGROUP GRAMMARS
 
Formal language
Formal languageFormal language
Formal language
 
NLP_KASHK:POS Tagging
NLP_KASHK:POS TaggingNLP_KASHK:POS Tagging
NLP_KASHK:POS Tagging
 
2.1 & 2.2 grammar introduction – types of grammar
2.1 & 2.2 grammar introduction – types of grammar2.1 & 2.2 grammar introduction – types of grammar
2.1 & 2.2 grammar introduction – types of grammar
 
Ai lecture 13(unit03)
Ai lecture  13(unit03)Ai lecture  13(unit03)
Ai lecture 13(unit03)
 
Ai lecture 13(unit03)
Ai lecture  13(unit03)Ai lecture  13(unit03)
Ai lecture 13(unit03)
 
13 propositional calculus
13 propositional calculus13 propositional calculus
13 propositional calculus
 
NFA to DFA
NFA to DFANFA to DFA
NFA to DFA
 
Logic agent
Logic agentLogic agent
Logic agent
 

Similar to Theory of Computer Science - Post Correspondence Problem

Busy week • Lab 9 due Thursday at 5 pm L = { M,s s.docx
Busy  week • Lab 9 due Thursday at 5 pm L = { M,s  s.docxBusy  week • Lab 9 due Thursday at 5 pm L = { M,s  s.docx
Busy week • Lab 9 due Thursday at 5 pm L = { M,s s.docx
jasoninnes20
 
Busy week • Lab 9 due Thursday at 5 pm L = { M,s s.docx
Busy  week • Lab 9 due Thursday at 5 pm L = { M,s  s.docxBusy  week • Lab 9 due Thursday at 5 pm L = { M,s  s.docx
Busy week • Lab 9 due Thursday at 5 pm L = { M,s s.docx
clairbycraft
 
Winter 10 Lecture 2 ATM Undecidability - Formal Proof.pptx
Winter 10 Lecture 2 ATM Undecidability - Formal Proof.pptxWinter 10 Lecture 2 ATM Undecidability - Formal Proof.pptx
Winter 10 Lecture 2 ATM Undecidability - Formal Proof.pptx
HarisPrince
 
Winter 11 Lecture Reducibility.pptx
Winter 11 Lecture Reducibility.pptxWinter 11 Lecture Reducibility.pptx
Winter 11 Lecture Reducibility.pptx
HarisPrince
 

Similar to Theory of Computer Science - Post Correspondence Problem (20)

Ch11.ppt
Ch11.pptCh11.ppt
Ch11.ppt
 
Ch11.ppt
Ch11.pptCh11.ppt
Ch11.ppt
 
QB104545.pdf
QB104545.pdfQB104545.pdf
QB104545.pdf
 
hghghghhghghgggggggggggggggggggggggggggggggggg
hghghghhghghgggggggggggggggggggggggggggggggggghghghghhghghgggggggggggggggggggggggggggggggggg
hghghghhghghgggggggggggggggggggggggggggggggggg
 
chapter 2.pptx
chapter 2.pptxchapter 2.pptx
chapter 2.pptx
 
Statistical machine translation
Statistical machine translationStatistical machine translation
Statistical machine translation
 
Busy week • Lab 9 due Thursday at 5 pm L = { M,s s.docx
Busy  week • Lab 9 due Thursday at 5 pm L = { M,s  s.docxBusy  week • Lab 9 due Thursday at 5 pm L = { M,s  s.docx
Busy week • Lab 9 due Thursday at 5 pm L = { M,s s.docx
 
Busy week • Lab 9 due Thursday at 5 pm L = { M,s s.docx
Busy  week • Lab 9 due Thursday at 5 pm L = { M,s  s.docxBusy  week • Lab 9 due Thursday at 5 pm L = { M,s  s.docx
Busy week • Lab 9 due Thursday at 5 pm L = { M,s s.docx
 
lect_23.pdf
lect_23.pdflect_23.pdf
lect_23.pdf
 
Winter 10 Lecture 2 ATM Undecidability - Formal Proof.pptx
Winter 10 Lecture 2 ATM Undecidability - Formal Proof.pptxWinter 10 Lecture 2 ATM Undecidability - Formal Proof.pptx
Winter 10 Lecture 2 ATM Undecidability - Formal Proof.pptx
 
practice-final-soln.pdf
practice-final-soln.pdfpractice-final-soln.pdf
practice-final-soln.pdf
 
Presentation (5).pdf
Presentation (5).pdfPresentation (5).pdf
Presentation (5).pdf
 
Nlp
NlpNlp
Nlp
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Types of Language in Theory of Computation
Types of Language in Theory of ComputationTypes of Language in Theory of Computation
Types of Language in Theory of Computation
 
Winter 11 Lecture Reducibility.pptx
Winter 11 Lecture Reducibility.pptxWinter 11 Lecture Reducibility.pptx
Winter 11 Lecture Reducibility.pptx
 
10651372.ppt
10651372.ppt10651372.ppt
10651372.ppt
 
NP completeness
NP completenessNP completeness
NP completeness
 
Undecidable problem.pptxUndecidable problemUndecidable problem
Undecidable problem.pptxUndecidable problemUndecidable problemUndecidable problem.pptxUndecidable problemUndecidable problem
Undecidable problem.pptxUndecidable problemUndecidable problem
 
Chomsky classification for types of grammars
Chomsky classification for types of grammarsChomsky classification for types of grammars
Chomsky classification for types of grammars
 

More from Karan Thakkar

More from Karan Thakkar (7)

Wt module 2
Wt module 2Wt module 2
Wt module 2
 
DBMS
DBMSDBMS
DBMS
 
Working principle of Turing machine
Working principle of Turing machineWorking principle of Turing machine
Working principle of Turing machine
 
Turing machine
Turing machine Turing machine
Turing machine
 
Microcontoller and Embedded System
Microcontoller and Embedded SystemMicrocontoller and Embedded System
Microcontoller and Embedded System
 
Operating system - Process and its concepts
Operating system - Process and its conceptsOperating system - Process and its concepts
Operating system - Process and its concepts
 
Search Engine Optimization
Search Engine OptimizationSearch Engine Optimization
Search Engine Optimization
 

Recently uploaded

VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 

Recently uploaded (20)

Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 

Theory of Computer Science - Post Correspondence Problem

  • 1. Math- I, II, III, IV, RSA & TCS by Parmar Sir [9764546384] MU | TCS/FA | Un-decidability | Feb 2014 | Parmar Sir Page 1 Un-decidability  Recursive Languages  A language L over the alphabet is called recursive if it is accepted by some Turing Machine, M that accepts every word in L and reject every word in (i.e. not belonging to L) i.e. Accept (M) =L Reject (M) = Loop (M) = (No output)  Example TM accepting L over that starts with “a” and reject for in all cases. So L is recursive.  For recursive languages we can define algorithm.  The union of two recursive languages is recursive language.  The complements of recursive language is recursive  Recursively Enumerable Languages  A language L over the alphabet is called recursive enumerable languages if it is accepted by some Turing Machine, M that accepts every word in L and either rejects or loops for every word in i.e. Accept (M) =L Reject (M)+ Loop (M) = (No output)  Example A TM accepting language and reject or loops all words not in L. So L is recursive enumerable.  The universal language is recursively enumerable. [Universal Language: this language consists of strings that are interpreted as TM followed by an Input for that TM. The string is in if the TM accepts that input.]  But diagonalisation language is not recursively enumerable. [Diagonalisation Language: this language is the set of strings of 0’s and 1’s that when interpreted as a TM, are in the language of that TM]  For recursive enumerable languages we cannot define algorithm.  The union of two recursive enumerable languages is recursive enumerable language.  Accept Reject L L’  AcceptL L’
  • 2. Math- I, II, III, IV, RSA & TCS by Parmar Sir [9764546384] MU | TCS/FA | Un-decidability | Feb 2014 | Parmar Sir Page 2  Difference between Recursive and Recursive Enumerable languages  There is a profound difference between recursive and recursively enumerable language.  If there is a regular language, we always have a FA to accept it.  Now if the string w is given, and we want to know whether w belongs to this languages, w will run it on the FA, and within n number of steps, where , as each state will consume one character, we will get the answer YES if w belongs to L, otherwise NO. This is called effective decision procedure.  With TM accepting the language which is recursively enumerable and if w is executed on TM, we are having a harder time. If then the machine will halt, otherwise we will have to wait, perhaps for a very long time.  In the worst case if w is in loop set for this machine, we shall never get a answer.  A recursive language has the advantage that we shall at least some day get the answer, even though we may not know how long it will take.  An interesting observation is that, not all TM’s that accept a recursive language have no loop set.  A language is recursive if at least one TM accepts it and rejects its complement. Some TM’s which accept the same language but loops on some inputs.  Undesirability and Un-solvability  A problem whose language is recursive is said to be decidable otherwise it is un-decidable (RE languages).  If the problem is un-decidable then there is no algorithm which take the input and find the answer either YES or NO.  The problem “Whether a TM will halt for the given input word” is un-decidable problem  If there is a TM which, when applied to any problem in the class, always eventually terminates with the correct (YES/NO) answer, we call the problem solvable.  If there is a TM which, when applied to any problem in the class, always eventually terminates with the correct answer when the answer is YES and may or may not terminate when the correct answer is NO, we call the problem semi-solvable or partially solvable.  If there is no TM which, when applied to a problem in the class, eventually with the correct answer YES, we call the problem un-solvable.  Rice’s Theorem  Every non-trivial property of the RE (Recursive Enumerable) languages is un-decidable. Proof  Let P be any nontrivial property of the RE languages. That means at least one language has a property and the at least one language does not.
  • 3. Math- I, II, III, IV, RSA & TCS by Parmar Sir [9764546384] MU | TCS/FA | Un-decidability | Feb 2014 | Parmar Sir Page 3  Initially we will assume an empty language is not having the property P  Since P is non-trivial, there should be some language L having property P i.e. And therefore there exists a coded TM accepting language L let this TM is  Now to prove construct a Universal Turing Machine that simulate TM, M and  The design of be given in figure, if M does not accept w, and if M accept w. M M L M’Accept AcceptAccept Start x w  Let reduce a universal language to and is un-decidable, so is also un-decidable (by reduction theorem).  The Turing machine can be produced on reduction. For the reduction algorithm the pair (M, w) can be given input.  is a two tape TM.  One tape is used to simulate M on input w. then input is used for designing the transitions of  Second tape is used to simulate on input x. again the pair is used for designing the transitions of  The TM, is constructed to do the following things- 1. Simulate M on input w. note that w is not the input to ; rather writes M and w onto one of its tapes and simulate the Universal Turing Machine on this pair. 2. If M does not accept w, then does nothing else. never accepts its own input, x so . Since we assume is not in property P, that means the code for is not in 3. If M accepts w, then begins simulating on its own input x. Thus, will accept exactly the language L. since L is in P, the code for is in P.  Since constructing from M and w can be carried out by an algorithm. Since this algorithm turns (M, w) into an that is in if and only if (M, w) is in , this reduction of to , and hence proves that the property P is un-decidable.  Now another possibility when is in P.  If so, consider the complements property of P i.e. , the set of RE languages that do not have property P.
  • 4. Math- I, II, III, IV, RSA & TCS by Parmar Sir [9764546384] MU | TCS/FA | Un-decidability | Feb 2014 | Parmar Sir Page 4  By the foregoing, is un-decidable. However, since every TM accepts an RE language, , the set of (codes for) Turing machines that do not accept a languages in P is the same as , the set of TM’s that accepts a language in .  Suppose were decidable, then so would be is decidable. since the complement of a recursive language is recursive.  Post Correspondence Problem  Post’s correspondence Problem (PCP) was first introduced by Emil Post in 1946. Later, the problem was found to have many applications in the theory of formal languages.  PCP is uses to check un-decidability of strings, (another way to check by Turing machine)  PCP define as  “the post’s correspondence problem consists of two lists of strings that are of equal length over the input . The two lists are and then there exists a non empty set of integers such that ”  Another way we can say “The PCP is to determine whether or not there exist , where , such that  To solve the PCP, we try to find all combinations of to find the , then we say that PCP has a solution.  PCP is un-decidable. Example: Does the PCP with two lists and have a solution? Answer: We have to find out such a sequence that strings formed by x and y are identical. Such sequences are 2, 1, 1, and 3. Hence from x and y list equal 2 1 1 3 2 1 1 3 = (combined and see) Which forms thus PCP has a solution. ........................................................................................................................................................ Theorem: It is Un-decidable a CFG is ambiguous. Proof: