1 / 7

NFA Closure Properties

NFA Closure Properties. NFAs also have closure properties. We have given constructions for showing that DFAs are closed under Complement Intersection Difference Union We will now establish that NFAs are closed under Reversal Kleene star Concatenation. Reversal of L -NFAs.

olesia
Télécharger la présentation

NFA Closure Properties

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. NFA Closure Properties

  2. NFAs also have closure properties • We have given constructions for showing that DFAs are closed under • Complement • Intersection • Difference • Union • We will now establish that NFAs are closed under • Reversal • Kleene star • Concatenation

  3. Reversal of L-NFAs • Closure under reversal is easy using L-NFAs. If you take such an automaton for L, you need to make the following changes to transform it into an automaton for LRev: • Reverse all arcs • The old start state becomes the only new final state. • Add a new start state, and an L-arc from it to all old final states.

  4. Example • Reverse all arcs • The old start state becomes the only new final state. • Add a new start state, and an L-arc from it to all old final states.

  5. Concatentation • L  R = { x  y | x in L and y in R} • To form a new L-NFA that recognizes the concatenation of two other L-NFAs with the same alphabet do the following • Union the states (you might have to rename them) • Add an L transition from each final state of the first to the start state of the second.

  6. Formally • Let • L =(QL,A,sL,FL,TL) • R =(QR,A,sR,FR,TR) • L  R = =(QLQR,A,sL,FR,T) Where T s L | sЄFL = SR T s c | sЄQL = TL s c T s c | sЄQR = TR s c

More Related