COMP3630/6360: Theory of Computation Semester 1, 2020 The Australian National University Regular Expressions
1 / 21
COMP3630/6360: Theory of Computation Semester 1, 2020 The - - PowerPoint PPT Presentation
COMP3630/6360: Theory of Computation Semester 1, 2020 The Australian National University Regular Expressions 1 / 21 This Lecture Covers Chapter 3 of HMU: Regular Expressions and Languages Introduction to regular expressions and regular
1 / 21
Regular Expressions and Languages
3 / 21
Regular Expressions and Languages
4 / 21
Regular Expressions and Languages
5 / 21
Regular Expressions and Languages
6 / 21
Regular Expressions and Languages
7 / 21
DFAs and Regular Languages
1, L1 ∪ L2 and L1L2 are also regular.
1 = L((E ∗ 1 )), L1 ∪ L2 = L((E1 + E2)) and
1 , (E1 + E2) and (E1E2) are regular expressions, the claim
8 / 21
DFAs and Regular Languages
q0 q1 A : 0; 1 q0 q1 A : 0; 1 q0 q1 A : 1 ∅ › 1 q2 q0 q1 A : 1 q2
9 / 21
DFAs and Regular Languages
10 / 21
DFAs and Regular Languages
11 / 21
DFAs and Regular Languages
. . . . . .
12 / 21
DFAs and Regular Languages
Regular Languages Languages accepted by DFAs, NFAs, ›-NFAs Finite languages
13 / 21
DFAs and Regular Languages
s1
s2
sk
qi qj States q0,. . . ,qk−1 States qk,. . . ,qn−1
14 / 21
DFAs and Regular Languages
15 / 21
DFAs and Regular Languages
case (b)
qi qj States q0; : : : ; qk−2
16 / 21
DFAs and Regular Languages
States q0; : : : ; qk−2
States q0; : : : ; qk−2 States q0; : : : ; qk−2 qi qj qk−1 qk−1 qk−1 1 2 3 Case (b) path
17 / 21
DFAs and Regular Languages
18 / 21
Properties of Regular Languages
1 ∪ Rc 2 )c
19 / 21
Abstract Regular Expressions
20 / 21
Abstract Regular Expressions
21 / 21