Open In App

GATE | GATE CS 2020 | Question 20

Consider the language L = { an ∣ n≥0 }∪{ anbn ∣ n≥0 } and the following statements.

Which of the above statements is/are TRUE ?



(A)

Ⅰ only



(B)

Ⅱ only

(C)

Ⅰ and Ⅲ only

(D)

Ⅲ only


Answer: (C)
Explanation:

Language { an ∣ n≥0 } is regular and { anbn ∣ n≥0 } is deterministic context free language (DCFL), so union of these will be DCFL, because union of DCFL with regular is always DCFL, but may be regular. Every DFCL is always CFL but converse may not true. 
So, statement (I) is true and (II) is false. Statement (III) is also true. 

hence, Option (C) is Correct.

Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :