← RGPV CS-501-CBGS Theory of Computation June 2020 Solved Paper
Question
What is a trap state in FA? Explain the properties of transition function.
Asked in: CS-501 | June 2020 | 4(b)
Answer
A trap or sink state is a state that transitions to itself on every input symbol. A rejecting sink cannot lead to acceptance. For a DFA, δ:Q×Σ→Q is total and single-valued; each state-symbol pair has exactly one successor. For an NFA, δ:Q×Σ→2^Q may return zero, one or many successors; ε-NFA additionally allow ε transitions. The extended DFA function satisfies δ*(q,ε)=q and δ*(q,wa)=δ(δ*(q,w),a). Example: a DFA accepting only a* over {a,b} has accepting initial q and rejecting trap t; q on a stays q, on b enters t; t loops on both. Missing DFA transitions can be completed with a rejecting sink.
← RGPV CS-501-CBGS Theory of Computation June 2020 Solved Paper
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion