Consider the following Deterministic Finite Automata. Which of the following…

2015

Consider the following Deterministic Finite Automata. Which of the following is true?

image.png

  1. A.

    It accepts all strings with prefix as “aababb”

  2. B.

    It accepts all strings with substring as “aababb”

  3. C.

    It accepts all strings with suffix as “aababb”

  4. D.

    None of the above

Attempted by 95 students.

Show answer & explanation

Correct answer: B

The DFA accepts strings containing the substring 'aababb'. The path from start to final state spells 'aababb', and the final state has self-loops for 'a' and 'b', allowing any characters to follow. Thus, the language is all strings where 'aababb' appears as a substring.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Gate Guidance By Sanchit Sir