Question
Consider the languages and . Which one of the following represents ?
Official answer and solution
- Official answer
- A
- From
- Official GATE 2013 answer key
Solution
Apply the definitions of concatenation and Kleene star for the empty language and singleton language.
Given and :
-
Concatenation with the empty set:
Concatenating any language with the empty language yields the empty language: -
Kleene star of the empty set:
By definition of the Kleene star, , and for any language , including the empty language: -
Union:
Thus, the resulting language is .
Option (A)
Thinking that is , whereas because the zero-length string is always included.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2013 Computer Science and Information Technology (CS)
- Question
- 8 of 65, printed as CS Q.8
- 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.