290 likes | 450 Views
Properties of Regular Languages. Union:. Concatenation:. Are regular Languages. For regular languages and we will prove that:. Star:. Reversal:. Complement:. Intersection:. Union:. Concatenation:. We say: Regular languages are closed under. Star:. Reversal:.
E N D
Properties of Regular Languages Costas Busch - RPI
Union: Concatenation: Are regular Languages For regular languages and we will prove that: Star: Reversal: Complement: Intersection: Costas Busch - RPI
Union: Concatenation: We say: Regular languages are closed under Star: Reversal: Complement: Intersection: Costas Busch - RPI
A useful transformation: use one accept state NFA 2 accept states Equivalent NFA 1 accept state Costas Busch - RPI
In General NFA Equivalent NFA Single accepting state Costas Busch - RPI
Add an accepting state without transitions Extreme case NFA without accepting state Costas Busch - RPI
Take two languages Regular language Regular language NFA NFA Single accepting state Single accepting state Costas Busch - RPI
Example Costas Busch - RPI
Union • NFA for Costas Busch - RPI
Example NFA for Costas Busch - RPI
Concatenation • NFA for Costas Busch - RPI
Example • NFA for Costas Busch - RPI
Star Operation • NFA for Costas Busch - RPI
Example • NFA for Costas Busch - RPI
Reverse NFA for 1. Reverse all transitions 2. Make initial state accepting state and vice versa Costas Busch - RPI
Example Costas Busch - RPI
Complement 1. Take the DFAthat accepts 2. Make accepting states non-final, and vice-versa Costas Busch - RPI
Example Costas Busch - RPI
Intersection regular We show regular regular Costas Busch - RPI
regular regular regular regular regular DeMorgan’s Law: Costas Busch - RPI
Example regular regular regular Costas Busch - RPI
Another Proof for Intersection Closure Machine Machine DFA for DFA for Construct a new DFA that accepts simulates in parallel and Costas Busch - RPI
States in State in State in Costas Busch - RPI
DFA DFA transition transition DFA New transition Costas Busch - RPI
DFA DFA initial state initial state DFA New initial state Costas Busch - RPI
DFA DFA accept state accept states DFA New accept states Both constituents must be accepting states Costas Busch - RPI
Example: Costas Busch - RPI
Automaton for intersection Costas Busch - RPI
simulates in parallel and accepts string if and only if: accepts string and accepts string Costas Busch - RPI