Automata Exam 2 Flashcards

1
Q

Adfa stands for

A

acceptance problem for DFA

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Adfa is…

A

decidable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Proof that Adfa is decidable pt1

A

Simulate B on input w

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Proof that Adfa is decidable pt2

A

If the simulation ends in an accept state, accept; if it ends in an non accepting state, reject

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Anfa is…

A

decidable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

For Adfa, B’s current state is

A

q0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

For Adfa, B’s current input position is

A

the leftmost symbol of w

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

To prove Anfa is decidable

A

convert NFA B to equivalent DFA C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Arex is..

A

decidable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

To prove Arex is decidable

A

convert REX to equivalent DFA A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Edfa is…

A

decidable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

TM to prove a DFA accepts a string

A
  1. Mark the start state of A
  2. Repeat until no new states get marked
  3. Mark any state that has a transition coming into it form any state that is already marked
  4. If no accept state is marked accept; otherwise reject
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

EQdfa test whether

A

two DFA’s recognize the same language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

For EQdfa C accepts..

A

only those strings that are accepted by either A or B but not both

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Formula for EQdfa

A

L(C) = ( L( A ) ∩ L( A’ ) ) ∪ ( L( B ) ∩ L( B’ ) )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

TM S for Acfg

A
  1. Convert G to an equivalent grammer in Chomsky normal form
  2. 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
  3. If any derivations generate w, accept; if not, reject
17
Q

Prove Ecfg is decidable on input G where G is a CFG

A
  1. Mark all terminal symbols in G
  2. Repeat until no new variables get marked
  3. Mark any variable where G has a rule A->U1,U2..Uk and each symbol has already been marked
  4. if the start symbol is not marked, accept; otherwise reject