Saturday, 11 July 2015

AUTOMATA:-Closure properties of all languages in Automata


What does closure means- Regular lang is closed under union means that ,  when union is performed b/w 2 regular language then the result is also regular.



Prop  REG DCFL CFL CSL Recursive Recursively enum
UNION yes no yes yes yes yes
INTERSECTION yes no no yes yes yes
COMPLEMENT yes yes no yes yes no
PRODUCT yes no yes yes yes yes

How to learn this table?




1.You can see that , Regular ,CSL and Recursive languages are closed in all four properties.
2.DCFL is only closed under complement
3.Recursively enumerable is not closed only under complement.

Yes- means that definately that language is closed
No- means language is not always closed.

Prop  REG CFL
INIT  yes yes
L1/L2 (Division) yes yes
CYCLE yes yes



MIN  yes no
MAX  yes no
HALF  yes no
ALT yes no

Important note for regular language
Regular languages are not closed under Subset, superset and infinite union of finite string.

1.Subset of any regular language may not be a regular.
eg. (a+b)* is regular but  all its subset are not regular

2. Superset of any regular language may not be regular
eg. Phi or epsolon is regular but its superset may not be.

3.Uniting infinite no of regular  language may not result into a regular language
eg. ab+aabb+aaabbb+aaaabbbb.................= not regular

No comments:

Post a Comment