SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Tendances

Tendances (20)

Optimal binary search tree dynamic programming
Optimal binary search tree   dynamic programmingOptimal binary search tree   dynamic programming
Optimal binary search tree dynamic programming
 
Turing machine by_deep
Turing machine by_deepTuring machine by_deep
Turing machine by_deep
 
Bellman Ford's Algorithm
Bellman Ford's AlgorithmBellman Ford's Algorithm
Bellman Ford's Algorithm
 
Undecidabality
UndecidabalityUndecidabality
Undecidabality
 
RSA Algorithm
RSA AlgorithmRSA Algorithm
RSA Algorithm
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
 
Performance analysis(Time & Space Complexity)
Performance analysis(Time & Space Complexity)Performance analysis(Time & Space Complexity)
Performance analysis(Time & Space Complexity)
 
Compiler construction
Compiler constructionCompiler construction
Compiler construction
 
Constraint Satisfaction Problem (CSP) : Cryptarithmetic, Graph Coloring, 4- Q...
Constraint Satisfaction Problem (CSP) : Cryptarithmetic, Graph Coloring, 4- Q...Constraint Satisfaction Problem (CSP) : Cryptarithmetic, Graph Coloring, 4- Q...
Constraint Satisfaction Problem (CSP) : Cryptarithmetic, Graph Coloring, 4- Q...
 
Sum of subsets problem by backtracking 
Sum of subsets problem by backtracking Sum of subsets problem by backtracking 
Sum of subsets problem by backtracking 
 
Chomsky classification of Language
Chomsky classification of LanguageChomsky classification of Language
Chomsky classification of Language
 
Np cooks theorem
Np cooks theoremNp cooks theorem
Np cooks theorem
 
Lexical Analysis - Compiler design
Lexical Analysis - Compiler design Lexical Analysis - Compiler design
Lexical Analysis - Compiler design
 
5.2 primitive recursive functions
5.2 primitive recursive functions5.2 primitive recursive functions
5.2 primitive recursive functions
 
Undecidability.pptx
Undecidability.pptxUndecidability.pptx
Undecidability.pptx
 
Theory of computation Lec3 dfa
Theory of computation Lec3 dfaTheory of computation Lec3 dfa
Theory of computation Lec3 dfa
 
Input-Buffering
Input-BufferingInput-Buffering
Input-Buffering
 
Ch13
Ch13Ch13
Ch13
 
Minimization of DFA
Minimization of DFAMinimization of DFA
Minimization of DFA
 
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
 

Plus de Jena Catherine Bel D (8)

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
 
Automata
AutomataAutomata
Automata
 

Dernier

Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Dr.Costas Sachpazis
 
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
 

Dernier (20)

High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
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...
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
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
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
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
 

Theory of Computation Unit 5