In the ε-NFA M = ({q0, q1, q2, q3}, {a}, δ, q0, {q3}) with δ: q0 –ε→ q1, q1 –ε→ q2, q2 –a→ {q2, q3}, and no other moves, what is the minimum length of a string that reaches the final state?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: B. 1
Explanation
From q0 the ε-moves reach q2 without input; one a then reaches q3. Minimum length = 1.
More Theory of Computation and Compilers questions
- Which of the following is (are) correct? 1. The language for the given expression is L = {aⁿbⁿcᵐdᵐ | n ≥ 1, m ≥ 1} ∪ {aⁿbᵐcᵐdⁿ | n ≥ 1, m ≥…
- Which of the following are correct for regular expressions? a. ∅ + L = L + ∅ = L b. εL = Lε = L c. ∅L = L∅ = ∅ d. ∅L = L∅ = L
- Match the following based on the language accepted by using brute force method of parsing.
- What is the safest order while simplifying Context Free Grammar? ∈
- What is the Move in the cell with number 'M1' of the resultant Table?
- What is the Move in the cell with the number 'M2' of the resultant Table?