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

Theory of computing
Theory of computingTheory of computing
Theory of computing
Ranjan Kumar
 

What's hot (20)

Np complete
Np completeNp complete
Np complete
 
Automata theory
Automata theoryAutomata theory
Automata theory
 
TM - Techniques
TM - TechniquesTM - Techniques
TM - Techniques
 
Undecidabality
UndecidabalityUndecidabality
Undecidabality
 
Syntactic analysis in NLP
Syntactic analysis in NLPSyntactic analysis in NLP
Syntactic analysis in NLP
 
Divide and conquer
Divide and conquerDivide and conquer
Divide and conquer
 
NP Complete Problems
NP Complete ProblemsNP Complete Problems
NP Complete Problems
 
NLP using transformers
NLP using transformers NLP using transformers
NLP using transformers
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Multi Head, Multi Tape Turing Machine
Multi Head, Multi Tape Turing MachineMulti Head, Multi Tape Turing Machine
Multi Head, Multi Tape Turing Machine
 
10 logic+programming+with+prolog
10 logic+programming+with+prolog10 logic+programming+with+prolog
10 logic+programming+with+prolog
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Introduction to NP Completeness
Introduction to NP CompletenessIntroduction to NP Completeness
Introduction to NP Completeness
 
Lower bound
Lower boundLower bound
Lower bound
 
Theory of computing
Theory of computingTheory of computing
Theory of computing
 
Lecture 1: What is Machine Learning?
Lecture 1: What is Machine Learning?Lecture 1: What is Machine Learning?
Lecture 1: What is Machine Learning?
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Attention is All You Need (Transformer)
Attention is All You Need (Transformer)Attention is All You Need (Transformer)
Attention is All You Need (Transformer)
 
Computational Complexity: Introduction-Turing Machines-Undecidability
Computational Complexity: Introduction-Turing Machines-UndecidabilityComputational Complexity: Introduction-Turing Machines-Undecidability
Computational Complexity: Introduction-Turing Machines-Undecidability
 
Theory of Computation Unit 1
Theory of Computation Unit 1Theory of Computation Unit 1
Theory of Computation Unit 1
 

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 2
Theory of Computation Unit 2Theory of Computation Unit 2
Theory of Computation Unit 2
 
Automata
AutomataAutomata
Automata
 

Recently uploaded

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 - 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
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 

Recently uploaded (20)

UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
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
 
(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
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
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...
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
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
 
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, ...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.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
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
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...
 
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
 
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
 

Theory of Computation Unit 5