SlideShare a Scribd company logo
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

PPTX
Lexical analysis - Compiler Design
PPTX
Transposition cipher techniques
PPT
Introduction to Compiler design
PPTX
COMPILER DESIGN
PPTX
Relationship Among Token, Lexeme & Pattern
PPTX
Specification-of-tokens
PPTX
Lecture 14 run time environment
PPTX
The role of the parser and Error recovery strategies ppt in compiler design
Lexical analysis - Compiler Design
Transposition cipher techniques
Introduction to Compiler design
COMPILER DESIGN
Relationship Among Token, Lexeme & Pattern
Specification-of-tokens
Lecture 14 run time environment
The role of the parser and Error recovery strategies ppt in compiler design

What's hot (20)

PPTX
Symmetric and asymmetric key cryptography
PPTX
Three Address code
PPTX
A Role of Lexical Analyzer
PPTX
Lexical analyzer generator lex
PPTX
Time advance mehcanism
PPTX
RECURSIVE DESCENT PARSING
PPTX
Lexical Analysis - Compiler Design
PPTX
Types of grammer - TOC
PPTX
Push down automata
PPTX
Fundamentals of Language Processing
PPTX
Intermediate code generator
PDF
Code optimization in compiler design
PPT
pushdown automata
PPT
TM - Techniques
PPTX
Theory of Computation Unit 1
PPTX
CONTEXT FREE GRAMMAR
PPTX
Three address code In Compiler Design
PPTX
Principal Sources of Optimization in compiler design
PPTX
Unit 4 sp macro
PPTX
Timestamp protocols
Symmetric and asymmetric key cryptography
Three Address code
A Role of Lexical Analyzer
Lexical analyzer generator lex
Time advance mehcanism
RECURSIVE DESCENT PARSING
Lexical Analysis - Compiler Design
Types of grammer - TOC
Push down automata
Fundamentals of Language Processing
Intermediate code generator
Code optimization in compiler design
pushdown automata
TM - Techniques
Theory of Computation Unit 1
CONTEXT FREE GRAMMAR
Three address code In Compiler Design
Principal Sources of Optimization in compiler design
Unit 4 sp macro
Timestamp protocols
Ad

Similar to Theory of Computation Unit 5 (7)

PPTX
Theory of Computation Unit 2
PPTX
Mar25.pptx
PPTX
NP completeness
PDF
Formal Languages and Automata Theory unit 5
PPTX
Theory of Computation Unit 3
PPTX
Regular-expressions in NLP and regular expression with example
PPTX
FOrmalLanguage and Automata -undecidability.pptx
Theory of Computation Unit 2
Mar25.pptx
NP completeness
Formal Languages and Automata Theory unit 5
Theory of Computation Unit 3
Regular-expressions in NLP and regular expression with example
FOrmalLanguage and Automata -undecidability.pptx
Ad

More from Jena Catherine Bel D (7)

PPT
Compiler Design Unit 5
PPTX
Compiler Design Unit 4
PPTX
Compiler Design Unit 3
PPTX
Compiler Design Unit 2
PPT
Compiler Design Unit 1
PPTX
Theory of Computation Unit 4
Compiler Design Unit 5
Compiler Design Unit 4
Compiler Design Unit 3
Compiler Design Unit 2
Compiler Design Unit 1
Theory of Computation Unit 4

Recently uploaded (20)

PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
Sustainable Sites - Green Building Construction
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
additive manufacturing of ss316l using mig welding
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
Current and future trends in Computer Vision.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PPT
Project quality management in manufacturing
PDF
composite construction of structures.pdf
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
Well-logging-methods_new................
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PPTX
Artificial Intelligence
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
DOCX
573137875-Attendance-Management-System-original
bas. eng. economics group 4 presentation 1.pptx
Sustainable Sites - Green Building Construction
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
additive manufacturing of ss316l using mig welding
Automation-in-Manufacturing-Chapter-Introduction.pdf
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Current and future trends in Computer Vision.pptx
Internet of Things (IOT) - A guide to understanding
Project quality management in manufacturing
composite construction of structures.pdf
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Fundamentals of safety and accident prevention -final (1).pptx
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Foundation to blockchain - A guide to Blockchain Tech
Well-logging-methods_new................
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
Artificial Intelligence
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
573137875-Attendance-Management-System-original

Theory of Computation Unit 5