3b_Finite Automata.pdf - Deterministic Finite Automata And Regular Languages Deterministic Finite Automaton(DFA Input Tape String Output Finite

3b_Finite Automata.pdf - Deterministic Finite Automata And...

This preview shows page 1 - 17 out of 57 pages.

Deterministic Finite Automata And Regular Languages
Image of page 1

Subscribe to view the full document.

Deterministic Finite Automaton (DFA) Input Tape “Accept” or “Reject” String Finite Automaton Output
Image of page 2
Transition Graph initial state accepting state state transition 0 q 1 q 2 q 3 q 4 q a b b a 5 q a a b b b a , b a ,
Image of page 3

Subscribe to view the full document.

0 q 1 q 2 q 3 q 4 q a b b a 5 q a a b b b a , b a , } , { b a For every state, there is a transition for every symbol in the alphabet Alphabet
Image of page 4
Initial Configuration 1 q 2 q 3 q 4 q a b b a 5 q a a b b b a , Input String a b b a b a , 0 q Initial state Input Tape head
Image of page 5

Subscribe to view the full document.

Scanning the Input 0 q 1 q 2 q 3 q 4 q a b b a 5 q a a b b b a , a b b a b a ,
Image of page 6
0 q 1 q 2 q 3 q 4 q a b b a 5 q a a b b b a , a b b a b a ,
Image of page 7

Subscribe to view the full document.

0 q 1 q 2 q 3 q 4 q a b b a 5 q a a b b b a , a b b a b a ,
Image of page 8
0 q 1 q 2 q 3 q 4 q a b b a accept 5 q a a b b b a , a b b a b a , Input finished
Image of page 9

Subscribe to view the full document.

1 q 2 q 3 q 4 q a b b a 5 q a a b b b a , a b a b a , 0 q A Rejection Case Input String
Image of page 10
0 q 1 q 2 q 3 q 4 q a b b a 5 q a a b b b a , a b a b a ,
Image of page 11

Subscribe to view the full document.

0 q 1 q 2 q 3 q 4 q a b b a 5 q a a b b b a , a b a b a ,
Image of page 12
0 q 1 q 2 q 3 q 4 q a b b a 5 q a a b b b a , reject a b a b a , Input finished
Image of page 13

Subscribe to view the full document.

1 q 2 q 3 q 4 q a b b a 5 q a a b b b a , b a , 0 q ) ( Another Rejection Case Tape is empty reject Input Finished
Image of page 14
Language Accepted: abba L 0 q 1 q 2 q 3 q 4 q a b b a 5 q a a b b b a , b a ,
Image of page 15

Subscribe to view the full document.

To accept a string: all the input string is scanned and the last state is accepting To reject a string: all the input string is scanned and the last state is non-accepting
Image of page 16
Image of page 17
  • Fall '19
  • Abyaym

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes