star height of regular languages
play

Star height of regular languages Thomas Lang 14 July 2014 Overview - PowerPoint PPT Presentation

Star height of regular languages Thomas Lang 14 July 2014 Overview Introduction 1 Star height 2 BMC algorithm 3 Loop complexity 4 Connection between star height and loop complexity 5 References 6 Thomas Lang Star height of regular


  1. Star height of regular languages Thomas Lang 14 July 2014

  2. Overview Introduction 1 Star height 2 BMC algorithm 3 Loop complexity 4 Connection between star height and loop complexity 5 References 6 Thomas Lang Star height of regular languages July 2014 2 / 29

  3. Overview Introduction 1 Star height 2 BMC algorithm 3 Loop complexity 4 Connection between star height and loop complexity 5 References 6 Thomas Lang Star height of regular languages July 2014 3 / 29

  4. Motivation Thomas Lang Star height of regular languages July 2014 4 / 29

  5. Motivation Let L 1 , L 2 be regular languages. Thomas Lang Star height of regular languages July 2014 4 / 29

  6. Motivation Let L 1 , L 2 be regular languages. Aim: Give meaning to the statement L 1 is more complicated than L 2 . Thomas Lang Star height of regular languages July 2014 4 / 29

  7. Motivation Let L 1 , L 2 be regular languages. Aim: Give meaning to the statement L 1 is more complicated than L 2 . Attempt 1: L 1 is more complicated than L 2 if | L 1 | > | L 2 | Thomas Lang Star height of regular languages July 2014 4 / 29

  8. Motivation Let L 1 , L 2 be regular languages. Aim: Give meaning to the statement L 1 is more complicated than L 2 . Attempt 1: L 1 is more complicated than L 2 if | L 1 | > | L 2 | ◮ Problem: Infinite languages not comparable Thomas Lang Star height of regular languages July 2014 4 / 29

  9. Motivation Let L 1 , L 2 be regular languages. Aim: Give meaning to the statement L 1 is more complicated than L 2 . Attempt 1: L 1 is more complicated than L 2 if | L 1 | > | L 2 | ◮ Problem: Infinite languages not comparable Attempt 2: L 1 is more complicated than L 2 if the minimal automaton of L 1 has more states than the minimal automaton of L 2 Thomas Lang Star height of regular languages July 2014 4 / 29

  10. Motivation Let L 1 , L 2 be regular languages. Aim: Give meaning to the statement L 1 is more complicated than L 2 . Attempt 1: L 1 is more complicated than L 2 if | L 1 | > | L 2 | ◮ Problem: Infinite languages not comparable Attempt 2: L 1 is more complicated than L 2 if the minimal automaton of L 1 has more states than the minimal automaton of L 2 ◮ Problem: { a 1000 } more complicated than { a n | n ∈ N 0 } Thomas Lang Star height of regular languages July 2014 4 / 29

  11. Overview Introduction 1 Star height 2 BMC algorithm 3 Loop complexity 4 Connection between star height and loop complexity 5 References 6 Thomas Lang Star height of regular languages July 2014 5 / 29

  12. Regular expressions Let A be an alphabet, then we have: Thomas Lang Star height of regular languages July 2014 6 / 29

  13. Regular expressions Let A be an alphabet, then we have: ∅ , ε and a ∈ A are regular expressions. Thomas Lang Star height of regular languages July 2014 6 / 29

  14. Regular expressions Let A be an alphabet, then we have: ∅ , ε and a ∈ A are regular expressions. If e and e ′ are regular expressions, then Thomas Lang Star height of regular languages July 2014 6 / 29

  15. Regular expressions Let A be an alphabet, then we have: ∅ , ε and a ∈ A are regular expressions. If e and e ′ are regular expressions, then ◮ ( e + e ′ ), Thomas Lang Star height of regular languages July 2014 6 / 29

  16. Regular expressions Let A be an alphabet, then we have: ∅ , ε and a ∈ A are regular expressions. If e and e ′ are regular expressions, then ◮ ( e + e ′ ), ◮ ( e · e ′ ), Thomas Lang Star height of regular languages July 2014 6 / 29

  17. Regular expressions Let A be an alphabet, then we have: ∅ , ε and a ∈ A are regular expressions. If e and e ′ are regular expressions, then ◮ ( e + e ′ ), ◮ ( e · e ′ ), ◮ e ∗ are regular expressions. Thomas Lang Star height of regular languages July 2014 6 / 29

  18. Regular expressions Let A be an alphabet, then we have: ∅ , ε and a ∈ A are regular expressions. If e and e ′ are regular expressions, then ◮ ( e + e ′ ), ◮ ( e · e ′ ), ◮ e ∗ are regular expressions. The language described by a regular expression e is denoted by L ( e ). Thomas Lang Star height of regular languages July 2014 6 / 29

  19. Star height of regular expressions Thomas Lang Star height of regular languages July 2014 7 / 29

  20. Star height of regular expressions Let e be a regular expression over an alphabet A , then its star height is defined as Thomas Lang Star height of regular languages July 2014 7 / 29

  21. Star height of regular expressions Let e be a regular expression over an alphabet A , then its star height is defined as If e = ∅ , e = ε or e = a ∈ A , then Thomas Lang Star height of regular languages July 2014 7 / 29

  22. Star height of regular expressions Let e be a regular expression over an alphabet A , then its star height is defined as If e = ∅ , e = ε or e = a ∈ A , then h( e ) := 0 . Thomas Lang Star height of regular languages July 2014 7 / 29

  23. Star height of regular expressions Let e be a regular expression over an alphabet A , then its star height is defined as If e = ∅ , e = ε or e = a ∈ A , then h( e ) := 0 . If e = e ′ + e ′′ or e = e ′ · e ′′ , then Thomas Lang Star height of regular languages July 2014 7 / 29

  24. Star height of regular expressions Let e be a regular expression over an alphabet A , then its star height is defined as If e = ∅ , e = ε or e = a ∈ A , then h( e ) := 0 . If e = e ′ + e ′′ or e = e ′ · e ′′ , then h( e ) := max( h ( e ′ ) , h ( e ′′ )) . Thomas Lang Star height of regular languages July 2014 7 / 29

  25. Star height of regular expressions Let e be a regular expression over an alphabet A , then its star height is defined as If e = ∅ , e = ε or e = a ∈ A , then h( e ) := 0 . If e = e ′ + e ′′ or e = e ′ · e ′′ , then h( e ) := max( h ( e ′ ) , h ( e ′′ )) . If e = e ′∗ , then Thomas Lang Star height of regular languages July 2014 7 / 29

  26. Star height of regular expressions Let e be a regular expression over an alphabet A , then its star height is defined as If e = ∅ , e = ε or e = a ∈ A , then h( e ) := 0 . If e = e ′ + e ′′ or e = e ′ · e ′′ , then h( e ) := max( h ( e ′ ) , h ( e ′′ )) . If e = e ′∗ , then h( e ) := 1 + h ( e ′ ) . Thomas Lang Star height of regular languages July 2014 7 / 29

  27. Examples Thomas Lang Star height of regular languages July 2014 8 / 29

  28. Examples e 1 := a ∗ ( ba ∗ ) ∗ ⇒ h( e 1 ) = Thomas Lang Star height of regular languages July 2014 8 / 29

  29. Examples e 1 := a ∗ ( ba ∗ ) ∗ ⇒ h( e 1 ) = 2 Thomas Lang Star height of regular languages July 2014 8 / 29

  30. Examples e 1 := a ∗ ( ba ∗ ) ∗ ⇒ h( e 1 ) = 2 e 2 := a ∗ + (( b ∗ ab ∗ ) ∗ a ) ∗ ⇒ h( e 2 ) = Thomas Lang Star height of regular languages July 2014 8 / 29

  31. Examples e 1 := a ∗ ( ba ∗ ) ∗ ⇒ h( e 1 ) = 2 e 2 := a ∗ + (( b ∗ ab ∗ ) ∗ a ) ∗ ⇒ h( e 2 ) = 3 Thomas Lang Star height of regular languages July 2014 8 / 29

  32. Examples e 1 := a ∗ ( ba ∗ ) ∗ ⇒ h( e 1 ) = 2 e 2 := a ∗ + (( b ∗ ab ∗ ) ∗ a ) ∗ ⇒ h( e 2 ) = 3 Caution: L ( a ∗ ) = L (( a ∗ ) ∗ ), but Thomas Lang Star height of regular languages July 2014 8 / 29

  33. Examples e 1 := a ∗ ( ba ∗ ) ∗ ⇒ h( e 1 ) = 2 e 2 := a ∗ + (( b ∗ ab ∗ ) ∗ a ) ∗ ⇒ h( e 2 ) = 3 Caution: L ( a ∗ ) = L (( a ∗ ) ∗ ), but h( a ∗ ) = 1 � = 2 = h(( a ∗ ) ∗ ) Thomas Lang Star height of regular languages July 2014 8 / 29

  34. Star height of regular languages Thomas Lang Star height of regular languages July 2014 9 / 29

  35. Star height of regular languages Let L be a regular language, then its star height is defined as Thomas Lang Star height of regular languages July 2014 9 / 29

  36. Star height of regular languages Let L be a regular language, then its star height is defined as h( L ) := min( { h( e ) | L ( e ) = L } ) . Thomas Lang Star height of regular languages July 2014 9 / 29

  37. Overview Introduction 1 Star height 2 BMC algorithm 3 Loop complexity 4 Connection between star height and loop complexity 5 References 6 Thomas Lang Star height of regular languages July 2014 10 / 29

  38. Description Thomas Lang Star height of regular languages July 2014 11 / 29

  39. Description Brzozowski-McCluskey algorithm Thomas Lang Star height of regular languages July 2014 11 / 29

  40. Description Brzozowski-McCluskey algorithm Operates on generalized automaton A , i.e. an automaton whose edges are labeled with regular expressions Thomas Lang Star height of regular languages July 2014 11 / 29

  41. Description Brzozowski-McCluskey algorithm Operates on generalized automaton A , i.e. an automaton whose edges are labeled with regular expressions Computes regular expression e with L ( e ) = L ( A ) Thomas Lang Star height of regular languages July 2014 11 / 29

  42. BMC algorithm Thomas Lang Star height of regular languages July 2014 12 / 29

  43. BMC algorithm 1 Insert new state i and ε -transitions from i to all initial states Thomas Lang Star height of regular languages July 2014 12 / 29

  44. BMC algorithm 1 Insert new state i and ε -transitions from i to all initial states 2 Insert new state t and ε -transitions from all final states to t Thomas Lang Star height of regular languages July 2014 12 / 29

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend