SlideShare a Scribd company logo
1 of 20
UNIT - V
Prepared By:
K Lakshmi Sravani
Assistant Professor
Syllabus
UNIT - V

Types of Turing machine: Turing machines and halting.


Undecidability: Undecidability, A Language that is Not
Recursively Enumerable, An Undecidable Problem That is
RE, Undecidable Problems about Turing Machines, Recursive
languages, Properties of recursive languages, Post's
Correspondence Problem, Modified Post Correspondence
problem, Other Undecidable Problems, Counter machines.
Undecidability
• Undecidable problems have no algorithm, regardless
of whether or not they are accepted by a TM that fails
to halt on some inputs.
• Undecidability: undecidable languages that cannot
be decided by any Turing Machine
A Simple Undecidable Problem
• We say this instance of PCP has a solution, if there is a
sequence of integers, i1, i2, …, im, that, when interpreted
as indexes for strings in the A and B lists, yields the same
string, that is, wi1wi2…wim = xi1xi2…xim.
• We say the sequence is a solution to this instance of PCP.
A Language that is Not Recursively
Enumerable
An example of a language which is not recursively
enumerable is the language L of all descriptions of
Turing machines which don't halt on the empty input.
Recursively Enumerable languages
Recursively Enumerable languages: If any Turing Machine can be designed to
accept all string of the given language, then the language is called recursively
enumerable language.
Recursively enumerable languages are the formal languages that can be decide-able, ( fully or
partially). According to the Chomsky hierarchy of formal languages, we can see the recursively
enumerable languages as a type 0 languages. some examples of recursively enumerable languages
are;
1. Recursive languages
2. Regular language is
3. Context sensitive languages
4. Context-free languages
Properties of Recursively enumerable
languages:

Concatenation: If L1 and If L2 are two recursive languages, their concatenation
L1.L2 will also be recursive.
L1= {anbncn|n>=0}
L2= {dmemfm|m>=0}
L3= L1.L2
= {anbncndm emfm|m>=0 and n>=0} is also recursive.
L1 says n no. of a’s followed by n no. of b’s followed by n no. of c’s. L2 says m
no. of d’s followed by m no. of e’s followed by m no. of f’s. Their concatenation
first matches no. of a’s, b’s and c’s and then matches no. of d’s, e’s and f’s. So it
can be decided by TM
Kleene Closure: If L1is recursive, its kleene closure L1* will also be
recursive. For Example:
L1= {anbncn|n>=0}
L1*= { anbncn||n>=0}* is also recursive.
Union of RE languages
Let’s revise union of sets;

Set 1={a, b, c}

Set 2={b, c, d}

Set 1 Union Set 2 = {a, b, c, d}

Now let’s understand the same concept in Turing Machine;

Suppose a system has 2 Turing Machines, TM1, and TM2.

• If TM1 halts then all the system halts.
• If TM1 crash then system checks that TM2 is ready to halt or not? If TM2 halts then
system halts because this is union and the union means that
◦ If TM1 halts then system halts
◦ If TM1 does not halt, and TM2 halts then system halts
◦ If TM1 and TM2 or TMn halts then system halts
The intersection of RE language

Set 1={a, b, c}

Set 2={b, c, d}

Set 1 Intersection Set 2 = {b, c}

Now let’s understand the same concept in Turing Machine;

Suppose a system has 2 Turing Machines, TM1, and TM2.

• If TM1 crash then all the system crash.
• If TM1 halts then system checks that TM2 is ready to halt or not? After this, If TM2
halts then system halts because this is intersection and the intersection means that
◦ If TM1 crash then system crash
◦ If TM1 halts then check TM2 or TMn, and if TM2 is also halted, the system halts.
◦ If TM1 and TM2 or TMn crash then the system crash
The complement of RE languages

Suppose a system has 2 Turing Machines, TM1, and TM2.

• If TM1 crash then all the system crash.
• If TM1 halts then system check TM2 or TMn. If TM1 halts and TM2 also
halts then system crash.
• If TM1 halts then system check TM2 or TMn. If TM1 halts and TM2 crash
then system halts.
Post’s Correspondence Problems
(PCP) 
Post’s Correspondence Problems (PCP): An instance of
PCP consists of two lists of strings over some alphabets
• The two lists are of equal length, denoted as A and B.
• The instance is denoted as (A, B).
• We write them as A = w1, w2, …, wk B = x1, x2, …, xk
for some integer k.
• For each i, the pair (wi, xi) is said a corresponding
pair.
PCP Instances
• PCP Instances :An instance of PCP is a list of pairs of
nonempty strings over some alphabet Σ Say (w1, x1), (w2,
x2), …, (wn, xn).
• The answer to this instance of PCP is “yes” if and only if
there exists a nonempty sequence of indices i1,…,ik, such
that wi1…win = xi1…xin.
Example 1
Example 2
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
Example
Counter Machine
A Counter Machine M = (K, Σ, ∆, s, F)
K is a set of states
Σ is the input alphabet
s ∈ K is the start state
F ⊂ K are Final states
∆ ⊆ ((K × (Σ ∪ ǫ) × {zero,¬zero}) × (K × {−1, 0, +1})) Accept if
you reach the end of the string, end in an accept state, and have an
empty counter.
Contd..
• Give a Non-Deterministic Finite Automata a counter
• Increment the counter
• Decrement the counter
• Check to see if the counter is zero
Reference
● https://www.cs.usfca.edu/~galles/cs411/lecture/lecture14.pdf
● https://www.slideshare.net/ThamerAlamery/theory-of-computation-presentation-final?next_slideshow=1
● https://www.slideshare.net/rajendranjrf/posts-correspondence-problem
Thank You

More Related Content

What's hot

Lecture 3,4
Lecture 3,4Lecture 3,4
Lecture 3,4shah zeb
 
Pumping lemma Theory Of Automata
Pumping lemma Theory Of AutomataPumping lemma Theory Of Automata
Pumping lemma Theory Of Automatahafizhamza0322
 
3.5 equivalence of pushdown automata and cfl
3.5 equivalence of pushdown automata and cfl3.5 equivalence of pushdown automata and cfl
3.5 equivalence of pushdown automata and cflSampath Kumar S
 
Introduction to the theory of computation
Introduction to the theory of computationIntroduction to the theory of computation
Introduction to the theory of computationprasadmvreddy
 
Theory of Automata Lesson 02
Theory of Automata Lesson 02Theory of Automata Lesson 02
Theory of Automata Lesson 02hamzamughal39
 
Lecture 3,4
Lecture 3,4Lecture 3,4
Lecture 3,4shah zeb
 
Turing Machine
Turing MachineTuring Machine
Turing MachineRajendran
 
Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1Srimatre K
 
Introduction to fa and dfa
Introduction to fa  and dfaIntroduction to fa  and dfa
Introduction to fa and dfadeepinderbedi
 
simple problem to convert NFA with epsilon to without epsilon
simple problem to convert NFA with epsilon to without epsilonsimple problem to convert NFA with epsilon to without epsilon
simple problem to convert NFA with epsilon to without epsilonkanikkk
 
1.10. pumping lemma for regular sets
1.10. pumping lemma for regular sets1.10. pumping lemma for regular sets
1.10. pumping lemma for regular setsSampath Kumar S
 
Minimization of DFA
Minimization of DFAMinimization of DFA
Minimization of DFAkunj desai
 
Theory of Automata
Theory of AutomataTheory of Automata
Theory of AutomataFarooq Mian
 
Introduction TO Finite Automata
Introduction TO Finite AutomataIntroduction TO Finite Automata
Introduction TO Finite AutomataRatnakar Mikkili
 

What's hot (20)

Lecture 3,4
Lecture 3,4Lecture 3,4
Lecture 3,4
 
Pumping lemma Theory Of Automata
Pumping lemma Theory Of AutomataPumping lemma Theory Of Automata
Pumping lemma Theory Of Automata
 
Automata theory
Automata theoryAutomata theory
Automata theory
 
Context free grammar
Context free grammarContext free grammar
Context free grammar
 
3.5 equivalence of pushdown automata and cfl
3.5 equivalence of pushdown automata and cfl3.5 equivalence of pushdown automata and cfl
3.5 equivalence of pushdown automata and cfl
 
Introduction to the theory of computation
Introduction to the theory of computationIntroduction to the theory of computation
Introduction to the theory of computation
 
push down automata
push down automatapush down automata
push down automata
 
Theory of Automata Lesson 02
Theory of Automata Lesson 02Theory of Automata Lesson 02
Theory of Automata Lesson 02
 
Lecture 3,4
Lecture 3,4Lecture 3,4
Lecture 3,4
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1
 
Introduction to fa and dfa
Introduction to fa  and dfaIntroduction to fa  and dfa
Introduction to fa and dfa
 
Theory of computation and automata
Theory of computation and automataTheory of computation and automata
Theory of computation and automata
 
simple problem to convert NFA with epsilon to without epsilon
simple problem to convert NFA with epsilon to without epsilonsimple problem to convert NFA with epsilon to without epsilon
simple problem to convert NFA with epsilon to without epsilon
 
Context free grammar
Context free grammar Context free grammar
Context free grammar
 
1.10. pumping lemma for regular sets
1.10. pumping lemma for regular sets1.10. pumping lemma for regular sets
1.10. pumping lemma for regular sets
 
Minimization of DFA
Minimization of DFAMinimization of DFA
Minimization of DFA
 
Theory of Automata
Theory of AutomataTheory of Automata
Theory of Automata
 
Turing machine
Turing machineTuring machine
Turing machine
 
Introduction TO Finite Automata
Introduction TO Finite AutomataIntroduction TO Finite Automata
Introduction TO Finite Automata
 

Similar to Formal Languages and Automata Theory unit 5

5 decidability theory of computation
5 decidability theory of computation 5 decidability theory of computation
5 decidability theory of computation parmeet834
 
POST’s CORRESPONDENCE PROBLEM
POST’s CORRESPONDENCE PROBLEMPOST’s CORRESPONDENCE PROBLEM
POST’s CORRESPONDENCE PROBLEMRajendran
 
Turing Machine
Turing MachineTuring Machine
Turing MachineRajendran
 
hghghghhghghgggggggggggggggggggggggggggggggggg
hghghghhghghgggggggggggggggggggggggggggggggggghghghghhghghgggggggggggggggggggggggggggggggggg
hghghghhghghggggggggggggggggggggggggggggggggggadugnanegero
 
P-NP-and-the-Polynomial-Space.ppt
P-NP-and-the-Polynomial-Space.pptP-NP-and-the-Polynomial-Space.ppt
P-NP-and-the-Polynomial-Space.pptHetansheeShah2
 
9. chapter 8 np hard and np complete problems
9. chapter 8   np hard and np complete problems9. chapter 8   np hard and np complete problems
9. chapter 8 np hard and np complete problemsJyotsna Suryadevara
 
Theory of Computation - Lectures 4 and 5
Theory of Computation - Lectures 4 and 5Theory of Computation - Lectures 4 and 5
Theory of Computation - Lectures 4 and 5Dr. Maamoun Ahmed
 
RegularLanguageProperties.pptx
RegularLanguageProperties.pptxRegularLanguageProperties.pptx
RegularLanguageProperties.pptxEzhumalai p
 
Winter 10 Undecidability.pptx
Winter 10 Undecidability.pptxWinter 10 Undecidability.pptx
Winter 10 Undecidability.pptxHarisPrince
 
Presentation (5).pdf
Presentation (5).pdfPresentation (5).pdf
Presentation (5).pdfGaurav447273
 
Theory of computation:Finite Automata, Regualr Expression, Pumping Lemma
Theory of computation:Finite Automata, Regualr Expression, Pumping LemmaTheory of computation:Finite Automata, Regualr Expression, Pumping Lemma
Theory of computation:Finite Automata, Regualr Expression, Pumping LemmaPRAVEENTALARI4
 
Automata
AutomataAutomata
AutomataGaditek
 

Similar to Formal Languages and Automata Theory unit 5 (20)

QB104545.pdf
QB104545.pdfQB104545.pdf
QB104545.pdf
 
5 decidability theory of computation
5 decidability theory of computation 5 decidability theory of computation
5 decidability theory of computation
 
Unit ii
Unit iiUnit ii
Unit ii
 
Ch11.ppt
Ch11.pptCh11.ppt
Ch11.ppt
 
Ch11.ppt
Ch11.pptCh11.ppt
Ch11.ppt
 
POST’s CORRESPONDENCE PROBLEM
POST’s CORRESPONDENCE PROBLEMPOST’s CORRESPONDENCE PROBLEM
POST’s CORRESPONDENCE PROBLEM
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
hghghghhghghgggggggggggggggggggggggggggggggggg
hghghghhghghgggggggggggggggggggggggggggggggggghghghghhghghgggggggggggggggggggggggggggggggggg
hghghghhghghgggggggggggggggggggggggggggggggggg
 
Unit v
Unit vUnit v
Unit v
 
P-NP-and-the-Polynomial-Space.ppt
P-NP-and-the-Polynomial-Space.pptP-NP-and-the-Polynomial-Space.ppt
P-NP-and-the-Polynomial-Space.ppt
 
9. chapter 8 np hard and np complete problems
9. chapter 8   np hard and np complete problems9. chapter 8   np hard and np complete problems
9. chapter 8 np hard and np complete problems
 
NP completeness
NP completenessNP completeness
NP completeness
 
chapter 2.pptx
chapter 2.pptxchapter 2.pptx
chapter 2.pptx
 
Theory of Computation - Lectures 4 and 5
Theory of Computation - Lectures 4 and 5Theory of Computation - Lectures 4 and 5
Theory of Computation - Lectures 4 and 5
 
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)
 
RegularLanguageProperties.pptx
RegularLanguageProperties.pptxRegularLanguageProperties.pptx
RegularLanguageProperties.pptx
 
Winter 10 Undecidability.pptx
Winter 10 Undecidability.pptxWinter 10 Undecidability.pptx
Winter 10 Undecidability.pptx
 
Presentation (5).pdf
Presentation (5).pdfPresentation (5).pdf
Presentation (5).pdf
 
Theory of computation:Finite Automata, Regualr Expression, Pumping Lemma
Theory of computation:Finite Automata, Regualr Expression, Pumping LemmaTheory of computation:Finite Automata, Regualr Expression, Pumping Lemma
Theory of computation:Finite Automata, Regualr Expression, Pumping Lemma
 
Automata
AutomataAutomata
Automata
 

More from Srimatre K

ML_ Unit 2_Part_B
ML_ Unit 2_Part_BML_ Unit 2_Part_B
ML_ Unit 2_Part_BSrimatre K
 
ML_Unit_2_Part_A
ML_Unit_2_Part_AML_Unit_2_Part_A
ML_Unit_2_Part_ASrimatre K
 
ML_Unit_1_Part_C
ML_Unit_1_Part_CML_Unit_1_Part_C
ML_Unit_1_Part_CSrimatre K
 
ML_Unit_1_Part_B
ML_Unit_1_Part_BML_Unit_1_Part_B
ML_Unit_1_Part_BSrimatre K
 
Internet of things unit-1
Internet of things unit-1Internet of things unit-1
Internet of things unit-1Srimatre K
 
ML_ Unit_1_PART_A
ML_ Unit_1_PART_AML_ Unit_1_PART_A
ML_ Unit_1_PART_ASrimatre K
 
Formal Languages and Automata Theory unit 4
Formal Languages and Automata Theory unit 4Formal Languages and Automata Theory unit 4
Formal Languages and Automata Theory unit 4Srimatre K
 
Formal Languages and Automata Theory unit 2
Formal Languages and Automata Theory unit 2Formal Languages and Automata Theory unit 2
Formal Languages and Automata Theory unit 2Srimatre K
 

More from Srimatre K (8)

ML_ Unit 2_Part_B
ML_ Unit 2_Part_BML_ Unit 2_Part_B
ML_ Unit 2_Part_B
 
ML_Unit_2_Part_A
ML_Unit_2_Part_AML_Unit_2_Part_A
ML_Unit_2_Part_A
 
ML_Unit_1_Part_C
ML_Unit_1_Part_CML_Unit_1_Part_C
ML_Unit_1_Part_C
 
ML_Unit_1_Part_B
ML_Unit_1_Part_BML_Unit_1_Part_B
ML_Unit_1_Part_B
 
Internet of things unit-1
Internet of things unit-1Internet of things unit-1
Internet of things unit-1
 
ML_ Unit_1_PART_A
ML_ Unit_1_PART_AML_ Unit_1_PART_A
ML_ Unit_1_PART_A
 
Formal Languages and Automata Theory unit 4
Formal Languages and Automata Theory unit 4Formal Languages and Automata Theory unit 4
Formal Languages and Automata Theory unit 4
 
Formal Languages and Automata Theory unit 2
Formal Languages and Automata Theory unit 2Formal Languages and Automata Theory unit 2
Formal Languages and Automata Theory unit 2
 

Recently uploaded

Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 

Recently uploaded (20)

Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 

Formal Languages and Automata Theory unit 5

  • 1. UNIT - V Prepared By: K Lakshmi Sravani Assistant Professor
  • 2. Syllabus UNIT - V
 Types of Turing machine: Turing machines and halting. 
 Undecidability: Undecidability, A Language that is Not Recursively Enumerable, An Undecidable Problem That is RE, Undecidable Problems about Turing Machines, Recursive languages, Properties of recursive languages, Post's Correspondence Problem, Modified Post Correspondence problem, Other Undecidable Problems, Counter machines.
  • 3. Undecidability • Undecidable problems have no algorithm, regardless of whether or not they are accepted by a TM that fails to halt on some inputs. • Undecidability: undecidable languages that cannot be decided by any Turing Machine
  • 4. A Simple Undecidable Problem • We say this instance of PCP has a solution, if there is a sequence of integers, i1, i2, …, im, that, when interpreted as indexes for strings in the A and B lists, yields the same string, that is, wi1wi2…wim = xi1xi2…xim. • We say the sequence is a solution to this instance of PCP.
  • 5. A Language that is Not Recursively Enumerable An example of a language which is not recursively enumerable is the language L of all descriptions of Turing machines which don't halt on the empty input.
  • 6. Recursively Enumerable languages Recursively Enumerable languages: If any Turing Machine can be designed to accept all string of the given language, then the language is called recursively enumerable language. Recursively enumerable languages are the formal languages that can be decide-able, ( fully or partially). According to the Chomsky hierarchy of formal languages, we can see the recursively enumerable languages as a type 0 languages. some examples of recursively enumerable languages are; 1. Recursive languages 2. Regular language is 3. Context sensitive languages 4. Context-free languages
  • 7. Properties of Recursively enumerable languages: Concatenation: If L1 and If L2 are two recursive languages, their concatenation L1.L2 will also be recursive. L1= {anbncn|n>=0} L2= {dmemfm|m>=0} L3= L1.L2 = {anbncndm emfm|m>=0 and n>=0} is also recursive. L1 says n no. of a’s followed by n no. of b’s followed by n no. of c’s. L2 says m no. of d’s followed by m no. of e’s followed by m no. of f’s. Their concatenation first matches no. of a’s, b’s and c’s and then matches no. of d’s, e’s and f’s. So it can be decided by TM Kleene Closure: If L1is recursive, its kleene closure L1* will also be recursive. For Example: L1= {anbncn|n>=0} L1*= { anbncn||n>=0}* is also recursive.
  • 8. Union of RE languages Let’s revise union of sets; Set 1={a, b, c} Set 2={b, c, d} Set 1 Union Set 2 = {a, b, c, d} Now let’s understand the same concept in Turing Machine; Suppose a system has 2 Turing Machines, TM1, and TM2. • If TM1 halts then all the system halts. • If TM1 crash then system checks that TM2 is ready to halt or not? If TM2 halts then system halts because this is union and the union means that ◦ If TM1 halts then system halts ◦ If TM1 does not halt, and TM2 halts then system halts ◦ If TM1 and TM2 or TMn halts then system halts
  • 9. The intersection of RE language Set 1={a, b, c} Set 2={b, c, d} Set 1 Intersection Set 2 = {b, c} Now let’s understand the same concept in Turing Machine; Suppose a system has 2 Turing Machines, TM1, and TM2. • If TM1 crash then all the system crash. • If TM1 halts then system checks that TM2 is ready to halt or not? After this, If TM2 halts then system halts because this is intersection and the intersection means that ◦ If TM1 crash then system crash ◦ If TM1 halts then check TM2 or TMn, and if TM2 is also halted, the system halts. ◦ If TM1 and TM2 or TMn crash then the system crash
  • 10. The complement of RE languages Suppose a system has 2 Turing Machines, TM1, and TM2. • If TM1 crash then all the system crash. • If TM1 halts then system check TM2 or TMn. If TM1 halts and TM2 also halts then system crash. • If TM1 halts then system check TM2 or TMn. If TM1 halts and TM2 crash then system halts.
  • 11. Post’s Correspondence Problems (PCP)  Post’s Correspondence Problems (PCP): An instance of PCP consists of two lists of strings over some alphabets • The two lists are of equal length, denoted as A and B. • The instance is denoted as (A, B). • We write them as A = w1, w2, …, wk B = x1, x2, …, xk for some integer k. • For each i, the pair (wi, xi) is said a corresponding pair.
  • 12. PCP Instances • PCP Instances :An instance of PCP is a list of pairs of nonempty strings over some alphabet Σ Say (w1, x1), (w2, x2), …, (wn, xn). • The answer to this instance of PCP is “yes” if and only if there exists a nonempty sequence of indices i1,…,ik, such that wi1…win = xi1…xin.
  • 15. 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
  • 17. Counter Machine A Counter Machine M = (K, Σ, ∆, s, F) K is a set of states Σ is the input alphabet s ∈ K is the start state F ⊂ K are Final states ∆ ⊆ ((K × (Σ ∪ ǫ) × {zero,¬zero}) × (K × {−1, 0, +1})) Accept if you reach the end of the string, end in an accept state, and have an empty counter.
  • 18. Contd.. • Give a Non-Deterministic Finite Automata a counter • Increment the counter • Decrement the counter • Check to see if the counter is zero