Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Mukesh N. Tekwani Elphinstone College Mumbai 2006 Converting Regular Expression to NFA
Nondeterministic Finite Automata 0 start A NFA that recognizes the strings “and”, &  “any” n 1 2 3 4 5 6 d n y a a Observe...
Regular Expression to NFA Thompson’s Method Construct an NFA that recognizes  ((a | b) | cd)
a 0 1 b 2 3 4 5 ε ε ε ε 6 7 8 9 10 ε ε ε ε c d a | b cd ((a | b) | cd Creating NFA NFA Created
Upcoming SlideShare
Loading in …5
×

Convert Regular Expression to NFA

41,772 views

Published on

Converting a regular expression to NFA

Published in: Education, Technology

Convert Regular Expression to NFA

  1. 1. Mukesh N. Tekwani Elphinstone College Mumbai 2006 Converting Regular Expression to NFA
  2. 2. Nondeterministic Finite Automata 0 start A NFA that recognizes the strings “and”, & “any” n 1 2 3 4 5 6 d n y a a Observe TWO transitions from state 0 with the same input ‘a’.
  3. 3. Regular Expression to NFA Thompson’s Method Construct an NFA that recognizes ((a | b) | cd)
  4. 4. a 0 1 b 2 3 4 5 ε ε ε ε 6 7 8 9 10 ε ε ε ε c d a | b cd ((a | b) | cd Creating NFA NFA Created

×