Properties of Regular Languages - PowerPoint PPT Presentation

About This Presentation
Title:

Properties of Regular Languages

Description:

2. Make initial state accepting state. and vice versa. Fall 2006. Costas Busch - RPI ... and vice-versa. Fall 2006. Costas Busch - RPI. 18. Example. Fall 2006 ... – PowerPoint PPT presentation

Number of Views:38
Avg rating:3.0/5.0
Slides: 30
Provided by: costas
Learn more at: http://www.cs.rpi.edu
Category:

less

Transcript and Presenter's Notes

Title: Properties of Regular Languages


1
Properties of Regular Languages

2
For regular languages and we will
prove that
Star
Reversal
Complement
Intersection
3
We say Regular languages are closed under
Star
Reversal
Complement
Intersection
4
A useful transformation use one accept state
NFA
2 accept states
Equivalent NFA
1 accept state
5
In General
NFA
Equivalent NFA
Single accepting state
6
Extreme case

NFA without accepting state
7
Take two languages
8
Example
9
Union
  • NFA for

10
Example

NFA for
11
Concatenation
  • NFA for

12
Example
  • NFA for

13
Star Operation
  • NFA for

14
Example
  • NFA for

15
Reverse
NFA for
1. Reverse all transitions
2. Make initial state accepting state and
vice versa
16
Example
17
Complement
1. Take the DFA that accepts
2. Make accepting states non-final, and
vice-versa
18
Example
19
Intersection
regular
We show
regular
regular
20
DeMorgans Law
21
Example
regular
regular
regular
22
Another Proof for Intersection Closure
Machine
Machine
DFA
for
for
DFA
Construct a new DFA that accepts
simulates in parallel and
23
States in
State in
State in
24
DFA
DFA
transition
transition
DFA
New transition
25
DFA
DFA
initial state
initial state
DFA
New initial state
26
DFA
DFA
accept state
accept states
DFA
New accept states
Both constituents must be accepting states
27
Example
28
Automaton for intersection
29
simulates in parallel and
accepts string
if and only if
accepts string
and accepts string
Write a Comment
User Comments (0)
About PowerShow.com