NFA_flashcards

1
Q

What is a key property of a DFA state regarding transitions?

A

Every state has exactly one outgoing arrow for each symbol in Σ.

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

How is the next state in a DFA determined?

A

Completely by the current state and input symbol.

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

Why is having two transitions on the same symbol from one state illegal in DFAs?

A

Because it violates the rule that each symbol leads to exactly one state.

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

Are ε-moves allowed in DFAs?

A

No, ε-moves are not allowed in DFAs but are allowed in NFAs.

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

What is the formal definition of an NFA?

A

A 5-tuple A = (Q, Σ, Δ, s, F).

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

What does Q represent in an NFA?

A

A finite set of states.

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

What does Σ represent in an NFA?

A

The input alphabet.

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

What does Δ represent in an NFA?

A

The transition relation, Δ ⊆ Q × (Σ ∪ {ε}) × Q.

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

What is an alternative definition of the transition function in an NFA?

A

δ: Q × (Σ ∪ {ε}) → P(Q), where P(Q) is the powerset of Q.

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

What does s represent in an NFA?

A

The start state, s ∈ Q.

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

What does F represent in an NFA?

A

The set of accepting states, F ⊆ Q.

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

What is an example of a transition using ε in an NFA?

A

(q₁, ε, q₃).

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

How do NFAs work informally?

A

They try all possible ways of reading the input and accept if any computation path ends in an accepting state.

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

What must exist for an NFA to accept a word w?

A

A sequence y₁…yₙ ∈ Σ ∪ {ε} such that w = y₁…yₙ, and a sequence of states r₀…rₙ with r₀ = s, transitions in Δ, and rₙ ∈ F.

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

Why are NFAs useful?

A

They are easier to construct for many languages and allow powerful constructions like union and intersection.

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

Can DFAs be simulated by NFAs?

A

Yes, any DFA can be simulated by an NFA.

17
Q

What is an example of a language that is easier to define using an NFA?

A

L₁ = { w ∈ {0,1} | w contains 1 in the third position from the end }.