Pertemuan 5 non deterministic finite automata with transition nfa
Download
1 / 18

Pertemuan 5 Non Deterministic Finite Automata with  Transition (NFA-  ) - PowerPoint PPT Presentation


  • 106 Views
  • Uploaded on

Pertemuan 5 Non Deterministic Finite Automata with  Transition (NFA-  ) . Matakuliah : T0162/Teori Bahasa dan Automata Tahun : 2009. Finite Automata with ε Transition. NFA that allow a transition on ε , the empty string ( ε -NFA).

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' Pertemuan 5 Non Deterministic Finite Automata with  Transition (NFA-  ) ' - rosine


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Pertemuan 5 non deterministic finite automata with transition nfa

Pertemuan 5Non Deterministic Finite Automata with  Transition (NFA- )

Matakuliah : T0162/Teori Bahasa dan Automata

Tahun : 2009


Finite automata with transition
Finite Automata with ε Transition

  • NFA that allow a transition on ε, the empty string (ε-NFA).

  • In effect, NFA is allowed to make a transition spontaneusly without receiving an input symbol.







Reguler expression
Reguler expression

  • Regular expressions describe regular languages in formal language theory

    Given a finite alphabet Σ, the following constants are defined:

  • (empty set) ∅ denoting the set ∅.

  • (empty string) ε denoting the set containing only the "empty" string, which has no characters at all.


Reguler expression1
Reguler expression

  • (concatenation) RS denoting the set { αβ | α in R and β in S }. For example {"ab", "c"}{"d", "ef"} = {"abd", "abef", "cd", "cef"}.

  • (alternation) R | S denoting the set union of R and S. For example {"ab", "c"}|{"ab", "d", "ef"} = {"ab", "c", "d", "ef"}.

  • (Kleene star) R* denoting the smallest superset of R that contains ε and is closed under string concatenation. This is the set of all strings that can be made by concatenating any finite number (including zero) of strings from R. For example, {"0","1"}* is the set of all finite binary strings (including the empty string), and {"ab", "c"}* = {ε, "ab", "c", "abab", "abc", "cab", "cc", "ababab", "abcab", ... }.


Examples
Examples

  • a|b* denotes {ε, a, b, bb, bbb, ...}

  • (a|b)* denotes the set of all strings with no symbols other than a and b, including the empty string: {ε, a, b, aa, ab, ba, bb, aaa, ...}

  • ab*(c|ε) denotes the set of strings starting with a, then zero or more bs and finally optionally a c: {a, ac, ab, abc, abb, abbc, ...}





Exercise
exercise

The RE (a|b)c is mapped to the following NFA:


ad