Basically when you read the string w iff reading M ends at the final state then the string w is accepted, else it is rejected.
The language accepted by M, L(M), is the set of all strings accepted by M.
Also no ϵ transitions and no choice
Drawing Example
TBA from prof example notes
Symbols Example
TBA from prof example notes
Theorem: Every DFSM M, on input s, halts in ∣s∣ steps.
Example:
Regular Languages
A language is regulariff it is accepted by some FSM.
Examples:
L={w∈{a,b}∗:every a is immediately follow by a b}
L={w∈{0,1}∗:w has odd parity}
L={w∈{a,b}∗:w contains at most b}
When the starting state IS the final state, then that means you are accepting ϵ
This also means that ϵ is accepting (in the language)
So basically a iff relationship
L={w∈{a,b}∗:no two consecutive characters are the same}
L={w∈{a,b}∗:every a region in w is of even length}
L={w∈{a,b}∗:every b in w is surrounded by a’s}
Therefore, DFSMs are complete since their transition functions are always complete (So any missing transitions lead to the "dead" state - even if it is not shown for clarity)
Programming FSMs
In this example we want to cluster strings that share a "future"
L={w∈{a,b}∗:w contains an even number of a’s and an odd number of b’s}
L={w∈{a−z}∗:all five vowels, a, e, i, o, and u, occur in w in alphabetical order}
L={w∈{a,b}∗:w does not contain the substring aab}
It is easier to construct the DFA for L={w∈{a,b}∗:w contains aab}
So start with ¬L and complement it
¬L:
How to complement:
Just flip the accepting and rejecting states
L:
The Missing Letter Language
Let Σ={a,b,c,d}
Let LMissing={w:there is a symbolai∈Σnot appearing inw}
Trying to make a DFSM for LMissing is super difficult but apparently making a NDFSM) (Non-deterministic FSM) is easier.