Theory-of-Computation
December 6, 2023
Question 9743 – Theory-of-Computation
December 6, 2023
Theory-of-Computation
December 6, 2023
Question 9743 – Theory-of-Computation
December 6, 2023

GATE 2001

Question 4

Consider the following two statements:

    S1: {02n|n≥1|} is a regular language
    S2: {0m1n0m+n|m≥1 and n≥1|} is a regular language

Which of the following statements is correct?

A
Only S1 is correct
B
Only S2 is correct
C
Both S1 and S2 are correct
D
None of S1 and S2 is correct
Question 4 Explanation: 
For S1 we can construct DFA. S1 represents the string contains even no. of 0’s. So S1 is regular.
For S2, DFA is not possible which is not regular.
Correct Answer: A
Question 4 Explanation: 
For S1 we can construct DFA. S1 represents the string contains even no. of 0’s. So S1 is regular.
For S2, DFA is not possible which is not regular.

Leave a Reply

Your email address will not be published. Required fields are marked *