Question
If and , consider
(I) is a regular language
(II)
Which one of the following is CORRECT?
Official answer and solution
- Official answer
- A
- From
- Official GATE 2014 answer key
Solution
Determine the closure of regular languages under concatenation and distinguish independent iteration from paired exponentiation.
Given and .
-
Language Definitions:
- (all strings of zero or more 's).
- (all strings of zero or more 's).
- Both and are regular languages.
-
Statement (I): is a regular language:
- Concatenation of and produces .
- Because the class of regular languages is closed under concatenation, is a regular language.
- Hence, Statement (I) is CORRECT.
-
Statement (II): :
- In , the number of 's and the number of 's are independently chosen: with .
- For example, the string is in , but it is not in (which requires equal counts of and ).
- Furthermore, is non-regular, whereas is regular.
- Hence, Statement (II) is INCORRECT.
-
Therefore, Only (I) is CORRECT (option A).
A
Assuming the bound variable n in the definitions of L1 and L2 forces equal exponents during concatenation.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2014 Computer Science and Information Technology (CS) Session 2
- Question
- 25 of 65, printed as CS Q.15
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.