SLIDE 1
1
Regular Expressions Definitions Equivalence to Finite Automata 1 - - PowerPoint PPT Presentation
Regular Expressions Definitions Equivalence to Finite Automata 1 REs: Introduction Regular expressions are an algebraic way to describe languages. They describe exactly the regular languages. If E is a regular expression, then
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
k be the regular expression for
0 = sum of labels of arc
∅ if no such arc.
19
0 = 0.
0 = ∅ + ε = ε.
20
k = Rij k-1 + Rik k-1(Rkk k-1)* Rkj k-1.
21
22
n, where:
23
3 = R23 2 + R23 2(R33 2)* R33 2 =
2(R33 2)*
2 = (10)* 0+ 1(01)* 1
2 = 0(01)* (1+ 00) + 1(10)* (0+ 11)
3 = [(10)* 0+ 1(01)* 1]
24
25
26
∅R = R∅ = ∅.