Lecture 7 From NFA to Regular Language

Lecture 7 From NFA to Regular Language

Lecture 8 From NFA to Regular Language Induction on k= # of states other than initial and final states K=0 a a* b c*a(d+bc*a)* a c d k>1 ac*e

c a e ac*d bc*e d b bc*d Example 1 0 1 0+10

0 1 0 Why? 10 0 1 1 (0+10)*0(1+10(0+10)*0)* 0+10 1

0 (0+10)*0 How to get in the final state? 1 0+10 0 10 10(1+10)*0 Cycles at the final state. Example 2 0 1 0

0 1 0 0 0 1 0 0 0 1 1

1 0 0 1 1 1 1 1 0 1

Solution 1 (0+10)*0(1+10(0+10)*0)* + 0*(1+01*1)(00*(1+01*1))* 0 0 1 0 0 1 1 Solution 2

0 1+01*1 01* 0+(1+01*1)0 (0+(1+01*1)0)*(01*+1+01*1) 01*+(1+01*1) 0 0+10 1 1 0

0 1 1 +1 10 1 Solution 3 (0+10+01*10)*(1+01*(+1)) 0+10+01*10 1+01*(+1) Different ways may give different regular expressions for the same language.

Theorem A language is regular if and only if it can be accepted by an NFA if and only if it can be accepted by a DFA. Closure Properties If A is regular, so is its complement A. If A and B are regular, then AB, A\B, A U B, AB are regular. Quotient L1/L2 = {x | there exists y in L2 s.t. xy in L1} If L1 is regular, so is L1/L2 . L1=L(M), M=(Q,,,s,F) L1/L2 = L(M), M = (Q,,,s, F) where F={q in Q | there exists y in L2 s.t. (q,y) in F} Example L2 = 0*1+0*11

L1 = L(M) 0 0 1 1 0 1 1 0

Recently Viewed Presentations

  • Chapter Eight - University of Michigan

    Chapter Eight - University of Michigan

    Chapter Eight: Taking Control of Alcohol Use The Nature of Alcoholic Beverages Ethyl alcohol or ethanol Produced through fermentation May be concentrated through distillation Alcohol content Beer: 4% Wine: 10-14% Port, sherry: 20% Distilled liquors: 40-100% Proof = Twice the...
  • Test

    Test

    Color applied. Warm colors are on one side of the color wheel and they give the felling of warmth for example red, orange and yellow are the color of fire and feel warm. Cool colors are on the other side...
  • Place Title Here - Texas

    Place Title Here - Texas

    Initial, Middle Name or Former Name: Stevie Ray Vaughan vs. Stevie Vaughan , or Charles T. Pepper vs. Charles Taylor Pepper. Different Field: Sandra Day vs. Sandra Day O'Connor, or Beyonce Knowles vs. Beyonce Knowles-Carter. 12/8/2015. Texas Secretary of State...
  • Diapositiva 1 - PREHOME

    Diapositiva 1 - PREHOME

    I dati sono in linea con quanto emerso a marzo 2016 da Omeoimprese il 36% degli 8 milioni gli italiani che ricorrono all'omeopatia lo fa anche per i propri bambini
  • BSA TROOP 848 THE TRAIL TO EAGLE HINTS

    BSA TROOP 848 THE TRAIL TO EAGLE HINTS

    bsa troop 848 the trail to eagle hints to get you there
  • AP Practice Exam 2

    AP Practice Exam 2

    BASICS. You are allotted 1 hour to answer between 45 and 60 (usually 55) objective questions on four to five prose passages.The selections may vary from works of fiction to nonfiction and from different time periods, of different styles, and...
  • Anschreiben leicht gemacht - SGH Berlin

    Anschreiben leicht gemacht - SGH Berlin

    Buchstabe Vorname - Punkt z. B. KLEIN, D. oder PAHL, M. oder LATZ, H. Innerhalb der Verbände gibt es Unterschiede! Name wie MAX-SCHMELING-HALLE oder die offizielle Hallennummer der Halle wie 203A111 oder offizieller Hallenkürzel wie GE-MBG eintragen. Laut Spielplan ist...
  • Option Valuation: basic concepts Value boundaries Simple arbitrage

    Option Valuation: basic concepts Value boundaries Simple arbitrage

    Option Valuation: basic concepts Value boundaries Simple arbitrage relationships Intuition for the role of volatility S. Mann, 2010 Call Option Valuation "Boundaries" Option Value Define: C[S(0),T;K] =Value of American call option with strike K, expiration date T, and current underlying...