SlideShare a Scribd company logo
1 of 35
UNIT - V
Undecidability
Mrs. D.Jena Catherine Bel,
Assistant Professor, CSE,
Velammal Engineering College
UNIT V
UNDECIDABILITY
Non Recursive Enumerable (RE) Language – Undecidable Problem
with RE – Undecidable Problems about TM – Post‘s
Correspondence Problem, The Class P and NP.
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
2
Undecidability-languages
• Recursive
• Recursively Enumerable
• Non-RE
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
3
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
4
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
5
Non- Recursively Enumerable
There are languages which does not have a
Turing machine at all
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
6
Sub-Areas of TOC
• automata theory and languages
• computability theory- undecidability
• computational complexity theory
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
7
10/3 = 3.33333333 =3.3
22/7 = 3.142857142857143 = ?
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
8
Based on the extent to which a
problem can be solved
Decidable Problems - A decidable problem has an algorithm to
determine the answer for a given input
Example: Find whether P is prime or not
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
9
2. Undecidable problem – problems that has
no algorithm to determine the answer for a given input or
which have an algorithm that answers for some input
Example - no three positive integers a, b and c for any n>2 can ever
satisfy the equation:
a^n + b^n = c^n.
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
10
The mortal matrix problem:
Determining, given a finite set of n × n matrices with integer
entries, whether they can be multiplied in some order,
possibly with repetition, to yield the zero matrix.
This is known to be undecidable for a set of six or more 3 × 3
matrices, or a set of two 15 × 15 matrices.
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
11
Languages
1. Recursive ------------------------- Decidable
2. Recursively Enumerable (RE)
3. Non-RE Undecidable
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
12
Recursive - Decidable
• A language ‘L’ is said to be recursive if there exists a Turing
machine which will
• accept all the strings in ‘L’ and
• reject all the strings not in ‘L’.
• The Turing machine will halt every time and give an
answer(accepted or rejected) for each and every string input.
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
13
Recursively Enumerable-
Undecidable
Recursively enumerable language(RE) –
A language ‘L’ is said to be a recursively enumerable language
if there exists a Turing machine which will
• accept (and therefore halt) for all the input strings which are
in ‘L’
• but may or may not halt for all input strings which are not in
‘L’.
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
14
Non-RE -Undecidable
Non- Recursively enumerable language(RE) – A language ‘L’ is
said to be a non recursively enumerable language if there
doesn't exists a Turing machine
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
15
Recursive, RE, Non-RE
• Recursive --------Regular, Context Free
• RE -----Lu-----------Universal Language
• Non-RE -----Ld ------- Diagonalization language
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
16
Recursive Languages
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
17
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
18
Machine as strings
Turing Machine/program M can itself be encoded as a binary
string.
Moreover every binary string can be thought of as encoding a
TM/program. (If not the correct format, considered to be the
encoding of a default TM.)
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
19
TM-Encoding
A Turing machine M- 7- Tuple (Q, F, q0, Σ, Γ, δ ,blank) –
The encoding of a TM - is a binary string that has all the information of the 7-
tuple describing TM.
So the encoding of M, is just a string that describes how the TM works.
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
20
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
21
Every binary string is a TM
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
22
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
23
Ld - Non- RE
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
24
Recursively Enumerable
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
25
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
26
Universal Language
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
27
Lu in RE
• RE-- Lu has a TM and Lu’ is Non RE
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
28
Properties of RE Languages
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
29
Reductions
If we are able to do a mathematical operation for binary
numbers than can do for decimal , hexadecimal number
system-> as we have an alg to convert decimal to binary and
viceversa
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
30
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
31
Reductions
• Let L1 and L2 be two decision problems. Suppose algorithm A2 solves L2. - if y
is an input for L2 then algorithm A2 will answer Yes or No depending upon
whether y belongs to L2 or not.
• The idea is to find a transformation from L1 to L2 so that the algorithm
A2 can be part of an algorithm A1 to solve L1.
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
32
Reductions
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
33
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
34
Mrs.D.Jena
Catherine
Bel,
AP/CSE,
VEC
35

More Related Content

What's hot

What's hot (20)

unit-4-dynamic programming
unit-4-dynamic programmingunit-4-dynamic programming
unit-4-dynamic programming
 
NFA Non Deterministic Finite Automata by Mudasir khushik
NFA Non Deterministic Finite Automata by Mudasir khushikNFA Non Deterministic Finite Automata by Mudasir khushik
NFA Non Deterministic Finite Automata by Mudasir khushik
 
4.3 techniques for turing machines construction
4.3 techniques for turing machines construction4.3 techniques for turing machines construction
4.3 techniques for turing machines construction
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
LINEAR BOUNDED AUTOMATA (LBA).pptx
LINEAR BOUNDED AUTOMATA (LBA).pptxLINEAR BOUNDED AUTOMATA (LBA).pptx
LINEAR BOUNDED AUTOMATA (LBA).pptx
 
NFA to DFA
NFA to DFANFA to DFA
NFA to DFA
 
Lexical analysis - Compiler Design
Lexical analysis - Compiler DesignLexical analysis - Compiler Design
Lexical analysis - Compiler Design
 
Undecidability.pptx
Undecidability.pptxUndecidability.pptx
Undecidability.pptx
 
Variants of Turing Machine
Variants of Turing MachineVariants of Turing Machine
Variants of Turing Machine
 
P, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-HardP, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-Hard
 
Approximation Algorithms
Approximation AlgorithmsApproximation Algorithms
Approximation Algorithms
 
NP completeness
NP completenessNP completeness
NP completeness
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Push down automata
Push down automataPush down automata
Push down automata
 
context free language
context free languagecontext free language
context free language
 
Turing machine
Turing machineTuring machine
Turing machine
 
Theory of Computation Grammar Concepts and Problems
Theory of Computation Grammar Concepts and ProblemsTheory of Computation Grammar Concepts and Problems
Theory of Computation Grammar Concepts and Problems
 
2.8 normal forms gnf & problems
2.8 normal forms   gnf & problems2.8 normal forms   gnf & problems
2.8 normal forms gnf & problems
 
4.6 halting problem
4.6 halting problem4.6 halting problem
4.6 halting problem
 
Sum of subset problem.pptx
Sum of subset problem.pptxSum of subset problem.pptx
Sum of subset problem.pptx
 

More from Jena Catherine Bel D (9)

Compiler Design Unit 5
Compiler Design Unit 5Compiler Design Unit 5
Compiler Design Unit 5
 
Compiler Design Unit 4
Compiler Design Unit 4Compiler Design Unit 4
Compiler Design Unit 4
 
Compiler Design Unit 3
Compiler Design Unit 3Compiler Design Unit 3
Compiler Design Unit 3
 
Compiler Design Unit 2
Compiler Design Unit 2Compiler Design Unit 2
Compiler Design Unit 2
 
Compiler Design Unit 1
Compiler Design Unit 1Compiler Design Unit 1
Compiler Design Unit 1
 
Theory of Computation Unit 4
Theory of Computation Unit 4Theory of Computation Unit 4
Theory of Computation Unit 4
 
Theory of Computation Unit 3
Theory of Computation Unit 3Theory of Computation Unit 3
Theory of Computation Unit 3
 
Theory of Computation Unit 1
Theory of Computation Unit 1Theory of Computation Unit 1
Theory of Computation Unit 1
 
Automata
AutomataAutomata
Automata
 

Recently uploaded

Microkernel in Operating System | Operating System
Microkernel in Operating System | Operating SystemMicrokernel in Operating System | Operating System
Microkernel in Operating System | Operating System
Sampad Kar
 
1893-part-1-2016 for Earthquake load design
1893-part-1-2016 for Earthquake load design1893-part-1-2016 for Earthquake load design
1893-part-1-2016 for Earthquake load design
AshishSingh1301
 
Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manual
BalamuruganV28
 
Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..
MaherOthman7
 

Recently uploaded (20)

The Entity-Relationship Model(ER Diagram).pptx
The Entity-Relationship Model(ER Diagram).pptxThe Entity-Relationship Model(ER Diagram).pptx
The Entity-Relationship Model(ER Diagram).pptx
 
Passive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.pptPassive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.ppt
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
 
Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...
 
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdflitvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
 
Microkernel in Operating System | Operating System
Microkernel in Operating System | Operating SystemMicrokernel in Operating System | Operating System
Microkernel in Operating System | Operating System
 
Lab Manual Arduino UNO Microcontrollar.docx
Lab Manual Arduino UNO Microcontrollar.docxLab Manual Arduino UNO Microcontrollar.docx
Lab Manual Arduino UNO Microcontrollar.docx
 
1893-part-1-2016 for Earthquake load design
1893-part-1-2016 for Earthquake load design1893-part-1-2016 for Earthquake load design
1893-part-1-2016 for Earthquake load design
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
 
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
 
Dynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptxDynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptx
 
handbook on reinforce concrete and detailing
handbook on reinforce concrete and detailinghandbook on reinforce concrete and detailing
handbook on reinforce concrete and detailing
 
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
 
Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2
 
Vip ℂall Girls Karkardooma Phone No 9999965857 High Profile ℂall Girl Delhi N...
Vip ℂall Girls Karkardooma Phone No 9999965857 High Profile ℂall Girl Delhi N...Vip ℂall Girls Karkardooma Phone No 9999965857 High Profile ℂall Girl Delhi N...
Vip ℂall Girls Karkardooma Phone No 9999965857 High Profile ℂall Girl Delhi N...
 
Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manual
 
Interfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdfInterfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdf
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptx
 
Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...
Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...
Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...
 
Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..
 

Theory of Computation Unit 5