Which one of the following is TRUE?

(A) A
(B) B
(C) C
(D) D
Answer: (C)
Explanation: (A) L = {a n b n |n >= 0} is not regular because there does not exists a finite automaton that can
derive this grammar. Intuitively, finite automaton has finite memory, hence it can’t track
number of as. It is a standard CFL though.
(B) L = {a n b n |n is prime} is again not regular because there is no way to remember/check if
current n is prime or not. Hence, no finite automaton exists to derive this grammar, thus it
is not regular.
(C) L = {w|w has 3k+1 bs} is a regular language because k is a fixed constant and we can easily
emulate L as a ∗ ba ∗ …..ba ∗ such that there are exactly 3k + 1 bs and a ∗ s surrounding each b in
the grammar.
(D) L = {ww| w ∈ Σ ∗ } is again not a regular grammar, infact it is not even a CFG. There is no
way to remember and derive double word using finite automaton.
Hence, correct answer would be (C).
This solution is contributed by vineet purswani.
Quiz of this Question
Recommended Posts:
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 2
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 3
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 4
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 6
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 7
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 8
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 9
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 10
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 11
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 12
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 13
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 14
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 23
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 5
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 1
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 24
- GATE | Sudo GATE 2020 Mock II (10 January 2019) | Question 30
- GATE | Sudo GATE 2020 Mock II (10 January 2019) | Question 46
- GATE | Sudo GATE 2020 Mock II (10 January 2019) | Question 47
- GATE | Sudo GATE 2020 Mock II (10 January 2019) | Question 48


