DFA for strings ending in abb
AnswerInterpret the wording as requiring suffix abb, allowing any preceding symbols. States track the longest suffix that is a prefix of abb:…
Read more →AnswerInterpret the wording as requiring suffix abb, allowing any preceding symbols. States track the longest suffix that is a prefix of abb:…
Read more →AnswerRequired regular expression: (0+1)*1100(0+1)*.The prefix and suffix are arbitrary binary strings. The middle block is mandatory. 1100 and 011001 are accepted; 110…
Read more →AnswerRequired regular expression: (0+1)*00.The prefix may be empty or any binary word. The final two symbols must be zero. 00 and 10100…
Read more →AnswerRequired regular expression: a*.Kleene star permits zero or more repetitions. Thus ε, a, aa and aaa belong to the language, while b…
Read more →AnswerArden’s theorem: if ε is not in P, the equation X=Q+XP has the unique regular-language solution X=QP*. Substitution gives Q+QP*P=QP*. Repeated expansion…
Read more →AnswerA CFG is ambiguous if some generated word has two distinct parse trees, equivalently two distinct leftmost derivations.Example 1: E→E+E | E*E…
Read more →AnswerThe diagram has initial q₀, final q₂, ε edge q₀→q₂, 1 edges in both directions between q₀ and q₁, 0 edges in…
Read more →AnswerA DFA has exactly one next state for every state and input symbol. An NFA can have zero, one or several next…
Read more →AnswerP is the class of decision problems solvable by a deterministic Turing machine in polynomial time in input length. Examples include graph…
Read more →AnswerA two-way finite automaton has finite control and a read-only input tape bounded by endmarkers. Unlike an ordinary one-way automaton, its head…
Read more →Ask a study question in English or Hindi. I will find relevant passages from our notes.