Comp CH3
Comp CH3
UN-DECIDABILITY
UN-DECIDABILITY
Introduction to Un-decidability
Un-decidable problems:
TM Halting Problems
Unsolvable problems
Undividable problems
UN-DECIDABILITY
The problems for which we can’t construct an algorithm that can
answer the problem correctly in the infinite time are termed as
Undecidable Problems in the theory of computation (TOC).
Examples
Equivalence of two regular languages: Given two regular languages, there is an algorithm and
Turing machine to decide whether two regular languages are equal or not.
Finiteness of regular language: Given a regular language, there is an algorithm and Turing
machine to decide whether regular language is finite or not.
Emptiness of context free language: Given a context free language, there is an algorithm
whether CFL is empty or not.
Difference Between Decidable
and Undecidable Problems
Aspect Decidable Problems Undecidable Problems
Problems that can be solved by an algorithm that always Problems where no algorithm can give a solution for
Definition
gives a correct answer in a finite time. all possible cases.
The algorithm stops (halts) and gives an answer for every The algorithm might never stop for some inputs, or
Halting
input. no algorithm exists.
Problems like checking if a number is even or odd, or if a Examples include the Halting Problem, where you
Examples string belongs to a regular language (like finding a match in can’t always tell if a program will finish running or
a search). run forever.
Decision There’s a clear method to always reach a correct No guaranteed method exists to solve the problem in
Procedure conclusion. every case.
Useful in practical computing tasks like compiling code or Helps understand the limits of what computers can
Applications
searching for text patterns. do, showing what problems are beyond computation.
Acceptable (Recognizable):
A TM accepts a string if it enters an accepting state when
processing that string.
Decidable:
Example:
Church’s thesis estimates as the problem that can be solved by human can
also solved with Turing machine
Context Free Languages (CFL)
In formal language theory, a context free language is a
language which is generated by a context free grammar
(CFG).
Context Free Languages (CFL)
Context Free Languages (CFL)
Context Free Languages (CFL)
Context Free Languages (CFL)
Context Free Languages (CFL)
Context Free Languages (CFL)