1 / 65

Formal Languages Finite Automata

Formal Languages Finite Automata. Chomsky Hierarchy. Type-0 : Unrestricted;recursively enumerated; phrase structured; turing m/c Type-1: CSL;LBA Type-2: CFL;PDA Type-3:RL:FA. Finite Automaton. Input. String. Output. “Accept” or “Reject”. Finite Automaton. Transition Graph.

tayten
Download Presentation

Formal Languages Finite Automata

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. Formal Languages Finite Automata

  2. Chomsky Hierarchy • Type-0 : Unrestricted;recursively enumerated; phrase structured; turing m/c • Type-1: CSL;LBA • Type-2: CFL;PDA • Type-3:RL:FA

  3. Finite Automaton Input String Output “Accept” or “Reject” Finite Automaton

  4. Transition Graph initial state accepting state transition state

  5. Initial Configuration Input String

  6. Reading the Input

  7. Input finished accept

  8. Rejection

  9. Input finished reject

  10. Acceptance or Rejection?

  11. Initial State

  12. Rejection reject

  13. Language?

  14. Another Example

  15. Input finished accept

  16. Rejection Example

  17. Input finished reject

  18. Languages Accepted by FAs • FA • Definition: • The language contains • all input strings accepted by • = { strings that bring • to an accepting state}

  19. Example: L(M) = ? accept

  20. Example accept

  21. Example: L(M) = ? accept accept accept

  22. Example accept accept accept

  23. Example: L(M) = ? trap state accept

  24. Example trap state accept

  25. Formal Definition • Finite Automaton (FA) : set of states : input alphabet : transition function : initial state : set of accepting states

  26. Input Alphabet

  27. Set of States

  28. Initial State

  29. Set of Accepting States

  30. Transition Function

  31. Transition Function

  32. Extended Transition Function

More Related