GATE CS 2024 Set 2 — Question 22
MCQ+1 / -0.33MediumDFA to REFinite Automata & Regular LanguagesTheory of Computation
Theory of Computation → Finite Automata & Regular Languages → DFA to RE
Last updated
Question
Which one of the following regular expressions is equivalent to the language accepted by the DFA given below?
A.
B.
C.
D.
Correct answer
(A) 0^ 1(0 + 10^ 1)^
Solution
The DFA has two states. Let the start state be and the accepting state be .
Transitions:
This matches option (A).
Transitions:
1.To reach from for the first time, we must read any number of 0s followed by a 1: .
2.Once in , we can stay in by reading 0s () or by going back to and returning to . The path corresponds to reading a 1, then any number of 0s (loop at ), then a 1. So, the cycle is .
3.Therefore, from , we can loop any number of times using either or . This corresponds to .
Combining these, the total regular expression is the concatenation of the initial path and the loop:This matches option (A).
More questions on Finite Automata & Regular Languages
2024 Set 1 Q23Let be two regular languages and a language which is not regular. Which of the…2024 Set 2 Q41Let be the 5-state NFA with -transitions shown in the diagram below. [figure] Which…2024 Set 1 Q50Consider the 5-state DFA accepting the language shown below. For any…2024 Set 2 Q52Consider a context-free grammar with the following 3 rules.…2024 Set 1 Q59Let be a context-free grammar in Chomsky Normal Form with…
Practice GATE CS PYQs with adaptive difficulty
Timed practice, skill tracking, and AI explanations — free to start.
Start practicing free