Automata and Theory of Computation: Alphabet Inc. Is A Holding Company That Gives Ambitious
Automata and Theory of Computation: Alphabet Inc. Is A Holding Company That Gives Ambitious
CSE 417
DFA
2020
2020
2
Alphabet
String
u A sequence of symbol(s) from the alphabet set.
If Σ = {a, b}, then
Σ* = {a, b, aa, ab, aab …. }
2020
Language
CSE 417 Automata and Theory of Computation
u is a structured collection of strings
u can be a set with
u Finite elements or
u Infinite elements
u Ex. If Σ = {a…z}, then we can generate
u masaya ang araw ng araw ng linggo
u hari minggu adalah hari yang menyeronokkan
u Sunday is funday
2020
4
READ THE SENTENCE AND COUNT THE F’S IN IT.
String
Belongs to the
Finite Automata Language or not
2020
8
CSE 417 Automata and Theory of Computation
DFA – Deterministic Finite Automata
NFA – Non-Deterministic Finite Automata
2020
u Finite automata determines whether a sting belongs to the given CSE 417 Automata and Theory of Computation
language or not
u Ex: language L1 is the set of all stings starting with a of Σ = {a, b}
= {a, aa, ab, abba, abb, … }
a/b
a String1 = bbaa
Q1 Q2
States = Q3->Q3->Q3->Q3
b
String1 = abba
Q3 States = Q2->Q2->Q2->Q2
a/b
2020
10
If Σ = {0, 1}, and
Even Odd 1
0 0
1
0
2020
11
u The formal definition of any Finite Automaton, M: CSE 417 Automata and Theory of Computation
u M ={Q, S, d, q0, F}
u Q={Set of Finite States}
u S={Set of Alphabets}
u d = transition rules
u current_state, symbol -> next_state
u q0 =Initial State
u F={Set of accepting states}
2020
12
For example: Recognizing Strings Ending in “ing”
2020
13
Not i or g
Not i
Not i or n i
2020
14