Professional Documents
Culture Documents
Regular language
Context free language
Context sensitive language
Recursive language
Recursive enumerable language
COMPUTABILITY OR DECIDABILITY:
A function f is said to be computable if a device exists to compute that function
with time and space. There exists an algorithm and a turing machine to solve a
function f. All computable functions are decidable.
Ex:1. F(x)=x+3
2. 1s complement of a given binary number.
3. Is input string w binary?
w=10101
YES, w is a binary string.
w=12345
NO, w is not a binary string.
NON-COMPUTABILITY OR UNDECIDABILITY:
No device exists to solve function f with time and space. No algorithm and
turing machine exists to solve the function f. All non-computable functions are
undecidable.
Ex:1. State entry problem.
2. Halting problems.
CHOMSKY HIERARCHY:
REGULAR LANGUAGE:
Union (L1L2)
Intersection (L1L2)
Set difference (L1-L2)
Reversal
Homomorphism
Inverse Homomorphism
is a finite alphabet.
* denotes the free monoid over consisting of all strings over .
f:*
M is a monoid homomorphism where M is a finite monoid.
S is a subset of M.
Language emptiness,universality,inclusion.
Universality is L(A) = *?
Kleene-closedness is L(A)* = L(A)?
Union
Reversal
Concatenation
Kleene -star
DECIDABLE PROPERTIES:
Emptiness - L(A) =.
Finiteness L(A) should be finite with no loops.
Membership - with w belong toL(G).
UNDECIDABLE PROPERTIES:
Equivalence L(A) = L(b)
Intersection emptiness-L(A)L(B) =
ContainmentL(A) subset of L(B)
Universality- L(A) = *?
TESTING EMPTINESS:
Can detect variables that generates no terminal string.