SlideShare ist ein Scribd-Unternehmen logo
1 von 26
POST’s CORRESPONDENCE PROBLEM
• General Objective:
– to understand the concept of PCP
• Specific Objectives
– State the objective of PCP
– Define PCP problem
– Check whether the PCP instance have a solution or not.
– Define MPCP
– Illustrate the conversion of TM to MPCP with an example
Post Correspondence Problem
• It involves with strings
• Goal:
– To prove this problem about strings to be
undecidable
Post Correspondence Problem
• FORMAL DEFINITION
Given two lists of strings A and B ( equal length)
A = w1, w2, …, wk B = x1, x2, …, xk
The problem is to determine if there is a sequence of
one or more integers i1, i2, …, im such that:
wi1
wi2
…wim
= xi1
xi2
…xim
(w, x) is called a corresponding pair.
Example
A B
i
1
2
3
wi
1
10111
10
xi
111
10
0
This PCP instance has a solution: 2, 1, 1, 3:
w2w1w1w3 = x2x1x1x3 = 101111110
Does this PCP instance have a solution?
A B
i
1
2
3
wi
110
0011
0110
xi
110110
00
110
This PCP instance has a solution: 2,3,1
w2w3w1 = x2x3x1 = 00110110110
One more solution:
2,1,1,3,2,1,1,3
Modified Post Correspondence
Problem (MPCP)
Definition:
first pair in the A and B lists must be the first pair in the
solution, i.e., the problem is to determine if there is a
sequence of zero or more integers i1, i2, …, im such that:
w1wi1
wi2
…wim
= x1xi1
xi2
…xim
Modified Post Correspondence
Problem (MPCP)
List A List B
i wi xi
1 10 10
2 110 11
3 11 011
This MPCP instance has a solution: 1,2,3
w1 w2 w3 = x1 x2 x3
10 110 11 = 10 11 011
Undecidability of PCP
To show that PCP is undecidable, we will reduce
the universal language problem (Lu) to MPCP and
then to PCP:
If PCP can be solved, Lu can also be solved. Lu is
undecidable, so PCP must also be undecidable.
Universal
Language
Problem (Lu )
MPCP PCPA mapping A mapping
Reducing MPCP to PCP
• This can be done by inserting a special symbol
(*) to the strings in list A and B of to make
sure that the first pair will always go first in
any solution.
• List A : * follows the symbols of ∑
• List B : * precedes the symbols of ∑
• wk+1 = $ ; xk+1 = *$
Mapping MPCP to PCP
Suppose the original MPCP instance is:
A B
i
1
2
3
wi
1
10111
10
xi
111
10
0
Mapping MPCP to PCP
The mapped PCP instance will be:
A B
i
0
1
2
wi
*1*
1*0*1*1*1*
1*0*
xi
*1*1*1
*1*0
*03
4
1* *1*1*1
$ *$
Mapping Lu to MPCP
• Turing machine M and an input w, we want to
determine if M will accept w.
• the mapped MPCP instance should have a
solution if and only if M accepts w.
Mapping Lu to MPCP
Given:
(T,w)
Two lists:
A and B
Construct an
MPCP instance
If T accepts w, the two lists can be matched.
Otherwise, the two lists cannot be matched.
Lu instance MPCP instance
Rules of Reducing Lu to MPCP
• We summarize the mapping as follows. Given
T and w, there are five types of strings in list A
and B:
• Starting string (first pair):
List A List B
# #q0w#
where q0 is the starting state of T.
• Strings for copying:
List A List B
X X
# #
where X is any tape symbol (including the
blank).
# is a separator can be appended to both the
lists
• Strings from the transition function δ:
List AList B
qX Yp from δ(q,X)=(p,Y,R)
ZqX pZY from δ(q,X)=(p,Y,L)
q# Yp# from δ(q,#)=(p,Y,R)
Zq# pZY# from δ(q,#)=(p,Y,L)
where Z is any tape symbol except the blank.
• Strings for consuming the tape symbols at
the end:
List AList B
Xq q
qY q
XqY q
where q is an accepting state, and each X
and Y is any tape symbol except the blank.
• Ending string:
List A List B
q## #
where q is an accepting state.
• Using this mapping, we can show that the
original Lu instance has a solution if and only
if the mapped MPCP instance has a solution.
PCP is undecidable
• Theorm: Post’s Correspondence Problem is undecidable.
• We have seen the reduction of MPCP to PCP
• now we see how to reduce Lu to MPCP.
– M accepts w if and only if the constructed MPCP instance has a
solution.
– As Lu is undecidable, MPCP is also undecidable.
Rice Theorem
• Rice’s Theorem & Properties of RE Languages
– A property is trivial if it is either empty or is the
set of all RE languages; otherwise, nontrivial.
– Examples:
• The empty property, φ, is different from the
property of being an empty language, {φ}.
Undecidable Problems about
Turing Machines
• Nontrivial Properties of RE (Undecidable)
– Emptiness
– Finiteness
– Regularity
– Context-Free
Rice Theorem
• Theorem:
– Every nontrivial property of the RE language is
undecidable.
• Proof:
– Let P be the nontrivial property of RE.
– Assume Ø, the empty language is not in P
– Since P is nontrivial, there must be some non-
empty language L is in P
– Let MLbe a TM accepting L.
Rice Theorem
• Reduce Luto Lp thus proving Lp is undecidable since Lu is
undecidable.
• The algorithm to perform the reduction takes as input a
pair (M,w) and produces a TM M’.
– L(M’) = Ø if M does not accept w
– L(M’) = L if M accepts w
Rice Theorem
MM’’
ML
MM
acceptaccept
x
Figure 9.10: Construction of M’ for proving Rice’s Theorem
accept accept
w startstart
TM M’ is a two tape TM.
First tape is used to simulate M on w
Second tape of M’ is used to simulate ML on the input x
26
Undecidable Problems about
Turing Machines
• Problems about TM Specifications
– The following are undecidable accordingly:
• Whether the language accepted by a TM is empty
• Whether the language accepted by a TM is finite.
• Whether the language accepted by a TM is a regular
language.
• Whether the language accepted by a TM is a context-free
language.

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Performance analysis(Time & Space Complexity)
Performance analysis(Time & Space Complexity)Performance analysis(Time & Space Complexity)
Performance analysis(Time & Space Complexity)
 
Theory of computation / Post’s Correspondence Problems (PCP)
Theory of computation / Post’s Correspondence Problems (PCP)Theory of computation / Post’s Correspondence Problems (PCP)
Theory of computation / Post’s Correspondence Problems (PCP)
 
Code optimization in compiler design
Code optimization in compiler designCode optimization in compiler design
Code optimization in compiler design
 
Predicate logic
 Predicate logic Predicate logic
Predicate logic
 
Problems, Problem spaces and Search
Problems, Problem spaces and SearchProblems, Problem spaces and Search
Problems, Problem spaces and Search
 
Syntax-Directed Translation into Three Address Code
Syntax-Directed Translation into Three Address CodeSyntax-Directed Translation into Three Address Code
Syntax-Directed Translation into Three Address Code
 
Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial Intelligence
 
Code Optimization
Code OptimizationCode Optimization
Code Optimization
 
Context free grammar
Context free grammar Context free grammar
Context free grammar
 
Peephole Optimization
Peephole OptimizationPeephole Optimization
Peephole Optimization
 
Frames
FramesFrames
Frames
 
1.Role lexical Analyzer
1.Role lexical Analyzer1.Role lexical Analyzer
1.Role lexical Analyzer
 
Input-Buffering
Input-BufferingInput-Buffering
Input-Buffering
 
Token, Pattern and Lexeme
Token, Pattern and LexemeToken, Pattern and Lexeme
Token, Pattern and Lexeme
 
Role-of-lexical-analysis
Role-of-lexical-analysisRole-of-lexical-analysis
Role-of-lexical-analysis
 
Compiler Design Lecture Notes
Compiler Design Lecture NotesCompiler Design Lecture Notes
Compiler Design Lecture Notes
 
State Space Representation and Search
State Space Representation and SearchState Space Representation and Search
State Space Representation and Search
 
Unification and Lifting
Unification and LiftingUnification and Lifting
Unification and Lifting
 
Lexical analyzer generator lex
Lexical analyzer generator lexLexical analyzer generator lex
Lexical analyzer generator lex
 
Semantic nets in artificial intelligence
Semantic nets in artificial intelligenceSemantic nets in artificial intelligence
Semantic nets in artificial intelligence
 

Ähnlich wie POST’s CORRESPONDENCE PROBLEM

PPT 2.1.1(The Pumping Lemma for Regular sets, Application of the Pumping Lemm...
PPT 2.1.1(The Pumping Lemma for Regular sets, Application of the Pumping Lemm...PPT 2.1.1(The Pumping Lemma for Regular sets, Application of the Pumping Lemm...
PPT 2.1.1(The Pumping Lemma for Regular sets, Application of the Pumping Lemm...
ArjunMehra32
 
F_Autómatas_MIT_2010--------------------
F_Autómatas_MIT_2010--------------------F_Autómatas_MIT_2010--------------------
F_Autómatas_MIT_2010--------------------
MIGUELANGEL2672
 
Finite automata examples
Finite automata examplesFinite automata examples
Finite automata examples
ankitamakin
 
Finite automata examples
Finite automata examplesFinite automata examples
Finite automata examples
ankitamakin
 

Ähnlich wie POST’s CORRESPONDENCE PROBLEM (20)

PPT 2.1.1(The Pumping Lemma for Regular sets, Application of the Pumping Lemm...
PPT 2.1.1(The Pumping Lemma for Regular sets, Application of the Pumping Lemm...PPT 2.1.1(The Pumping Lemma for Regular sets, Application of the Pumping Lemm...
PPT 2.1.1(The Pumping Lemma for Regular sets, Application of the Pumping Lemm...
 
RegularLanguageProperties.pptx
RegularLanguageProperties.pptxRegularLanguageProperties.pptx
RegularLanguageProperties.pptx
 
Formal Languages and Automata Theory unit 5
Formal Languages and Automata Theory unit 5Formal Languages and Automata Theory unit 5
Formal Languages and Automata Theory unit 5
 
Chapter 3 REGULAR EXPRESSION.pdf
Chapter 3 REGULAR EXPRESSION.pdfChapter 3 REGULAR EXPRESSION.pdf
Chapter 3 REGULAR EXPRESSION.pdf
 
FLAT.pdf
FLAT.pdfFLAT.pdf
FLAT.pdf
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Automata
AutomataAutomata
Automata
 
Automata
AutomataAutomata
Automata
 
Reductions
ReductionsReductions
Reductions
 
automata problems
automata problemsautomata problems
automata problems
 
Resumen material MIT
Resumen material MITResumen material MIT
Resumen material MIT
 
hw4s05solns.ppt
hw4s05solns.ppthw4s05solns.ppt
hw4s05solns.ppt
 
Turing machines
Turing machinesTuring machines
Turing machines
 
Introduction to the Theory of Computation, Winter 2003 A. Hevia and J. Mao S...
 Introduction to the Theory of Computation, Winter 2003 A. Hevia and J. Mao S... Introduction to the Theory of Computation, Winter 2003 A. Hevia and J. Mao S...
Introduction to the Theory of Computation, Winter 2003 A. Hevia and J. Mao S...
 
F_Autómatas_MIT_2010--------------------
F_Autómatas_MIT_2010--------------------F_Autómatas_MIT_2010--------------------
F_Autómatas_MIT_2010--------------------
 
Theory of Computation Regular Expressions, Minimisation & Pumping Lemma
Theory of Computation Regular Expressions, Minimisation & Pumping LemmaTheory of Computation Regular Expressions, Minimisation & Pumping Lemma
Theory of Computation Regular Expressions, Minimisation & Pumping Lemma
 
Unit i
Unit iUnit i
Unit i
 
Module 1 TOC.pptx
Module 1 TOC.pptxModule 1 TOC.pptx
Module 1 TOC.pptx
 
Finite automata examples
Finite automata examplesFinite automata examples
Finite automata examples
 
Finite automata examples
Finite automata examplesFinite automata examples
Finite automata examples
 

Mehr von Rajendran

Mehr von Rajendran (20)

Element distinctness lower bounds
Element distinctness lower boundsElement distinctness lower bounds
Element distinctness lower bounds
 
Scheduling with Startup and Holding Costs
Scheduling with Startup and Holding CostsScheduling with Startup and Holding Costs
Scheduling with Startup and Holding Costs
 
Divide and conquer surfing lower bounds
Divide and conquer  surfing lower boundsDivide and conquer  surfing lower bounds
Divide and conquer surfing lower bounds
 
Red black tree
Red black treeRed black tree
Red black tree
 
Hash table
Hash tableHash table
Hash table
 
Medians and order statistics
Medians and order statisticsMedians and order statistics
Medians and order statistics
 
Proof master theorem
Proof master theoremProof master theorem
Proof master theorem
 
Recursion tree method
Recursion tree methodRecursion tree method
Recursion tree method
 
Recurrence theorem
Recurrence theoremRecurrence theorem
Recurrence theorem
 
Master method
Master method Master method
Master method
 
Master method theorem
Master method theoremMaster method theorem
Master method theorem
 
Hash tables
Hash tablesHash tables
Hash tables
 
Lower bound
Lower boundLower bound
Lower bound
 
Master method theorem
Master method theoremMaster method theorem
Master method theorem
 
Greedy algorithms
Greedy algorithmsGreedy algorithms
Greedy algorithms
 
Longest common subsequences in Algorithm Analysis
Longest common subsequences in Algorithm AnalysisLongest common subsequences in Algorithm Analysis
Longest common subsequences in Algorithm Analysis
 
Dynamic programming in Algorithm Analysis
Dynamic programming in Algorithm AnalysisDynamic programming in Algorithm Analysis
Dynamic programming in Algorithm Analysis
 
Average case Analysis of Quicksort
Average case Analysis of QuicksortAverage case Analysis of Quicksort
Average case Analysis of Quicksort
 
Np completeness
Np completenessNp completeness
Np completeness
 
computer languages
computer languagescomputer languages
computer languages
 

Kürzlich hochgeladen

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 

Kürzlich hochgeladen (20)

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 

POST’s CORRESPONDENCE PROBLEM

  • 2. • General Objective: – to understand the concept of PCP • Specific Objectives – State the objective of PCP – Define PCP problem – Check whether the PCP instance have a solution or not. – Define MPCP – Illustrate the conversion of TM to MPCP with an example
  • 3. Post Correspondence Problem • It involves with strings • Goal: – To prove this problem about strings to be undecidable
  • 4. Post Correspondence Problem • FORMAL DEFINITION Given two lists of strings A and B ( equal length) A = w1, w2, …, wk B = x1, x2, …, xk The problem is to determine if there is a sequence of one or more integers i1, i2, …, im such that: wi1 wi2 …wim = xi1 xi2 …xim (w, x) is called a corresponding pair.
  • 5. Example A B i 1 2 3 wi 1 10111 10 xi 111 10 0 This PCP instance has a solution: 2, 1, 1, 3: w2w1w1w3 = x2x1x1x3 = 101111110
  • 6. Does this PCP instance have a solution? A B i 1 2 3 wi 110 0011 0110 xi 110110 00 110 This PCP instance has a solution: 2,3,1 w2w3w1 = x2x3x1 = 00110110110 One more solution: 2,1,1,3,2,1,1,3
  • 7. Modified Post Correspondence Problem (MPCP) Definition: first pair in the A and B lists must be the first pair in the solution, i.e., the problem is to determine if there is a sequence of zero or more integers i1, i2, …, im such that: w1wi1 wi2 …wim = x1xi1 xi2 …xim
  • 8. Modified Post Correspondence Problem (MPCP) List A List B i wi xi 1 10 10 2 110 11 3 11 011 This MPCP instance has a solution: 1,2,3 w1 w2 w3 = x1 x2 x3 10 110 11 = 10 11 011
  • 9. Undecidability of PCP To show that PCP is undecidable, we will reduce the universal language problem (Lu) to MPCP and then to PCP: If PCP can be solved, Lu can also be solved. Lu is undecidable, so PCP must also be undecidable. Universal Language Problem (Lu ) MPCP PCPA mapping A mapping
  • 10. Reducing MPCP to PCP • This can be done by inserting a special symbol (*) to the strings in list A and B of to make sure that the first pair will always go first in any solution. • List A : * follows the symbols of ∑ • List B : * precedes the symbols of ∑ • wk+1 = $ ; xk+1 = *$
  • 11. Mapping MPCP to PCP Suppose the original MPCP instance is: A B i 1 2 3 wi 1 10111 10 xi 111 10 0
  • 12. Mapping MPCP to PCP The mapped PCP instance will be: A B i 0 1 2 wi *1* 1*0*1*1*1* 1*0* xi *1*1*1 *1*0 *03 4 1* *1*1*1 $ *$
  • 13. Mapping Lu to MPCP • Turing machine M and an input w, we want to determine if M will accept w. • the mapped MPCP instance should have a solution if and only if M accepts w.
  • 14. Mapping Lu to MPCP Given: (T,w) Two lists: A and B Construct an MPCP instance If T accepts w, the two lists can be matched. Otherwise, the two lists cannot be matched. Lu instance MPCP instance
  • 15. Rules of Reducing Lu to MPCP • We summarize the mapping as follows. Given T and w, there are five types of strings in list A and B: • Starting string (first pair): List A List B # #q0w# where q0 is the starting state of T.
  • 16. • Strings for copying: List A List B X X # # where X is any tape symbol (including the blank). # is a separator can be appended to both the lists
  • 17. • Strings from the transition function δ: List AList B qX Yp from δ(q,X)=(p,Y,R) ZqX pZY from δ(q,X)=(p,Y,L) q# Yp# from δ(q,#)=(p,Y,R) Zq# pZY# from δ(q,#)=(p,Y,L) where Z is any tape symbol except the blank.
  • 18. • Strings for consuming the tape symbols at the end: List AList B Xq q qY q XqY q where q is an accepting state, and each X and Y is any tape symbol except the blank.
  • 19. • Ending string: List A List B q## # where q is an accepting state. • Using this mapping, we can show that the original Lu instance has a solution if and only if the mapped MPCP instance has a solution.
  • 20. PCP is undecidable • Theorm: Post’s Correspondence Problem is undecidable. • We have seen the reduction of MPCP to PCP • now we see how to reduce Lu to MPCP. – M accepts w if and only if the constructed MPCP instance has a solution. – As Lu is undecidable, MPCP is also undecidable.
  • 21. Rice Theorem • Rice’s Theorem & Properties of RE Languages – A property is trivial if it is either empty or is the set of all RE languages; otherwise, nontrivial. – Examples: • The empty property, φ, is different from the property of being an empty language, {φ}.
  • 22. Undecidable Problems about Turing Machines • Nontrivial Properties of RE (Undecidable) – Emptiness – Finiteness – Regularity – Context-Free
  • 23. Rice Theorem • Theorem: – Every nontrivial property of the RE language is undecidable. • Proof: – Let P be the nontrivial property of RE. – Assume Ø, the empty language is not in P – Since P is nontrivial, there must be some non- empty language L is in P – Let MLbe a TM accepting L.
  • 24. Rice Theorem • Reduce Luto Lp thus proving Lp is undecidable since Lu is undecidable. • The algorithm to perform the reduction takes as input a pair (M,w) and produces a TM M’. – L(M’) = Ø if M does not accept w – L(M’) = L if M accepts w
  • 25. Rice Theorem MM’’ ML MM acceptaccept x Figure 9.10: Construction of M’ for proving Rice’s Theorem accept accept w startstart TM M’ is a two tape TM. First tape is used to simulate M on w Second tape of M’ is used to simulate ML on the input x
  • 26. 26 Undecidable Problems about Turing Machines • Problems about TM Specifications – The following are undecidable accordingly: • Whether the language accepted by a TM is empty • Whether the language accepted by a TM is finite. • Whether the language accepted by a TM is a regular language. • Whether the language accepted by a TM is a context-free language.