Decidable Regular Context Free
Decidable Regular Context Free
of
Regular Languages
DFA
w
w L
L
DFA
L
L is infinite
DFA
L is finite
Answer: Find if ( L1 L2 ) ( L1 L2 )
L1 L2 and L1 L2
L1 L2 L L2 L1 L1
2
L1 L2 L2 L1
L1 L2
Fall 2003 Costas Busch - RPI 9
( L1 L2 ) ( L1 L2 )
L1 L2 or L1 L2
L1 L2 L2 L1
L1 L2 L2 L1
L1 L2
Fall 2003 Costas Busch - RPI 10
Decidable Problems
of
Context-Free Languages
Algorithm:
Algorithm:
1. Remove useless variables
2. Remove unit and productions
A C
S
B
Fall 2003 Costas Busch - RPI 15
S AB
A aCb | a
B bB | bb
C cBS