Skip to content
Official PYQ · 2013

GATE CS 2013 Q33 — Regular Expressions and Finite Automata

Explain with AI

Consider the DFA AA given below.

 

Which of the following are FALSE?

  1. Complement of L(A)L(A) is context-free.
  2. L(A)=L((11∗0+0)(0+1)∗0∗1∗)L(A) = L((11^*0+0)(0 + 1)^*0^*1^*)
  3. For the language accepted by A,AA, A is the minimal DFA.
  4. AA accepts all strings over {0,1}\{0, 1\} of length at least 22.
Choose one option
View worked solution

Answer: D

Let us analyze each statement based on the language of the DFA AA:

  • Statement 1 is TRUE: Since AA is a DFA, the language L(A)L(A) is regular. Regular languages are closed under complementation, and every regular language is also context-free.
  • Statement 2 is TRUE: The regular expression (11∗0+0)(0+1)∗0∗1∗(11^*0 + 0)(0+1)^*0^*1^* simplifies to 1∗0(0+1)∗1^*0(0+1)^*, which represents the set of all strings over {0,1}\{0, 1\} containing at least one 00. The given DFA AA accepts exactly this language.
  • Statement 3 is FALSE: The minimal DFA for the language "at least one 00" requires only 22 states (a start state that loops on 11 and goes to an accepting state on 00, which then loops on both 00 and 11). The given DFA AA has 33 states, meaning it is not minimal.
  • Statement 4 is FALSE: The string 1111 has a length of 22 but contains no 00, so it is not accepted by AA. Thus, AA does not accept all strings of length at least 22.

Since statements 3 and 4 are FALSE, the correct option is D.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Regular Expressions and Finite Automata questions