{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lec03RE - may have any regular expressions as labels...

Info icon This preview shows pages 1–17. Sign up to view the full content.

View Full Document Right Arrow Icon
COT 4210 Lecture Notes - 3 By Njegos and Monika
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
R is a regular expression if R is 1.aЄΣ, a for some a in the alphabet Σ. 2.ε 3.Ø 4.R1 U R2, where R1 and R2 are regular expression 5.R1o R2, where R1 and R2 are regular expressions 6.R1*, where R1 is a regular expression
Image of page 2
If A1 and A2 are regular then A1 U A2 A1 o A2 A1* All are regular too.
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Regular Expression 0*10*:- zero or more 0’s followed by one 1 and followed by any number of 0’s or no 0 (0 U ε) 1*:- 0 followed by any number of 1’s or any number of 1’s 1* Ø :- Take zero or more 1’s and concatenated by empty set. 1* Ø = Ø Ø*:- {ε} ; Empty string
Image of page 4
N1 N2 ε ε N N1 U N2
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
A1* ε ε ε
Image of page 6
0 1 ε ε 0 U 1
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
0 1 ε ε (0 U 1)* ε ε ε
Image of page 8
0 1 ε ε ε ε 0 ε ε ε ε 0 0 (0 U 1)* 0
Image of page 9

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
0 1 ε ε ε ε 0 ε ε ε ε 0 ε ε 0 0 U 0 (0 U 1)* 0
Image of page 10
Qj Qrip R4 R3 R1 Qi Qi Qj R1 R2* R3 U R4
Image of page 11

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
GNFA GNFA stands for Generalized Nondeterministic Finite Automaton. GNFA are simply nondeterministic finite automaton wherein the transition arrows
Image of page 12
Image of page 13

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 14
Image of page 15

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 16
Image of page 17
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: may have any regular expressions as labels, instead of only members of the alphabet. Restricted GNFA • The start state has transition arrows going to every other state but no arrows coming in from any other state. • There is only a single accept state, and it has arrows coming in from every other state but no arrows going to any other state. Accept state is not the same as the start state. • Except for the start and accept states, one arrow goes from every state to every other state and also from each state to itself. 1 1 Q1 Q2 Q3 F S ε ε 1 EXAMPLE 1 1 Q1 Q2 F S ε ε After Ripping Q3 01*0 0*1 S Q2 F 10* 10*1 U 01*0 0* R2 R3 R4 0*1(10*1 U 01*0)*10* U 0* • If we have n states in DFA then restricted GNFA is going to have (n+2) states....
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern