Difference between DFA and NFA
In a NFA there can be more than one choice from the same input e.g. input ‘a’ has two transitions. Also some states have no outgoing transitions whereas in DFA each state has exactly one transition per input
In an NFA how do you choose which path to take
Work out if the string is accepted for all paths and if it is accepted for at least one then the string is accepted even if all other paths are rejected
An NFA accepts a string if:
If there is at least one computation of the NFA that accepts the string
If there is still string left over after reaching an acceptance state with no transitions is it accepted or rejected
Rejected
An NFA rejects the string if:
For each computation:
The entire input string is consumed and the last state is not an accepting state
OR
The input string cannot be scanned entirely/the input cannot be consumed
What is the epsilon transition (ε)
The transition happens without reading an input. If there is a ε transition from q1 to q2, the NFA can decide whether to stay at q1 or jump to q2
what does L = {ab}^+ mean
L = {ab,abab,ababab, …}
What does L = {ab}^* mean
L = {empty string, ab, abab, ababab, …}
Formal definition of NFA’s, give the states symbols and definitions
what does the set Delta(q,x) contain
All the states you can reach from the transition x from q, including states which you can get to via an x and epsilon transition
What is the extended transition function
deltaHat({q0},aa) gives the set of states where the NFA can end up after the transition aa
How is extended transition function different to normal transition function
Extended transition function takes a string of multiple transitions
Machine m1 is equivalent to machibe m2 if?
They have the exact same language
If an NFA has k states what is the most states the DFA can have
2^k
When converting from an NFA TO A DFA how are the states labeled in the DFA
In the DFA, every state is a set
Convert this NFA to a DFA
For any DFA state, if at least one state in the set is an accepting state in the NFA then…
That set is an accepting state in the DFA