Automata Exam 2 Flashcards
Adfa stands for
acceptance problem for DFA
Adfa is…
decidable
Proof that Adfa is decidable pt1
Simulate B on input w
Proof that Adfa is decidable pt2
If the simulation ends in an accept state, accept; if it ends in an non accepting state, reject
Anfa is…
decidable
For Adfa, B’s current state is
q0
For Adfa, B’s current input position is
the leftmost symbol of w
To prove Anfa is decidable
convert NFA B to equivalent DFA C
Arex is..
decidable
To prove Arex is decidable
convert REX to equivalent DFA A
Edfa is…
decidable
TM to prove a DFA accepts a string
- Mark the start state of A
- Repeat until no new states get marked
- Mark any state that has a transition coming into it form any state that is already marked
- If no accept state is marked accept; otherwise reject
EQdfa test whether
two DFA’s recognize the same language
For EQdfa C accepts..
only those strings that are accepted by either A or B but not both
Formula for EQdfa
L(C) = ( L( A ) ∩ L( A’ ) ) ∪ ( L( B ) ∩ L( B’ ) )
TM S for Acfg
- Convert G to an equivalent grammer in Chomsky normal form
- List all derivations with 2n-1 steps, where n is the length of w except if n = 0, then list all derivations with 1 step
- If any derivations generate w, accept; if not, reject
Prove Ecfg is decidable on input G where G is a CFG
- Mark all terminal symbols in G
- Repeat until no new variables get marked
- Mark any variable where G has a rule A->U1,U2..Uk and each symbol has already been marked
- if the start symbol is not marked, accept; otherwise reject