edited by
19,444 views
51 votes
51 votes

Consider the languages $L_1 = \phi$ and $L_2 = \{a\}$. Which one of the following represents $L_1 {L_2}^* \cup {L_1}^*$ ?

  1. $\{\epsilon\}$
  2. $\phi$
  3. $a^*$
  4. $\{\epsilon, a\}$
edited by

5 Answers

Best answer
89 votes
89 votes

Concatenation of empty language with any language will give the empty language and ${L_1}^ * = \phi^* = \epsilon$.
 

Therefore,

$L_1L_2^* \cup L_1^*   $
$=\phi.(L_2)^* \cup \phi^ *$
$= \phi \cup \{\epsilon\} \left(\because \phi \text{ concatenated with anything is } \phi \text{ and }\phi^* = \{\epsilon\} \right)  $
$= \{\epsilon \} $.

Hence, option (A) is true.

PS: $\phi^* = \epsilon$, where $\epsilon$ is the regular expression and the language it generates is $\{\epsilon\}$. 

edited by
5 votes
5 votes
L1.anything is empty language and empty union empty* is epsilon hence a
5 votes
5 votes

L_1L_2^* = \phi \because \text{ concantenation of any language with } \phi \text{ gives } \phi. \phi^* = \epsilon

Answer is A

Answer:

Related questions

11.3k
views
2 answers
44 votes
Arjun asked Sep 24, 2014
11,348 views
Which of the following is/are undecidable?$G$ is a CFG. Is $L(G) = \phi$?$G$ is a CFG. Is $L(G) = \Sigma^*$?$M$ is a Turing machine. Is $L(M)$ regular?$A$ ... $3$ and $4$ only $1, 2$ and $3$ only $2$ and $3$ only
16.7k
views
4 answers
49 votes
Arjun asked Sep 24, 2014
16,716 views
Consider the DFA $A$ given below. Which of the following are FALSE?Complement of $L(A)$ is context-free.$L(A) = L((11^*0+0)(0 + 1)^*0^*1^*) $For the language ... $2$.1 and 3 only2 and 4 only2 and 3 only3 and 4 only
15.9k
views
2 answers
38 votes
Arjun asked Sep 24, 2014
15,943 views
Consider the following languages.$L_1 = \left \{ 0^p1^q0^r \mid p,q,r \geq 0 \right \}$L_2 = \left \{ 0^p1^q0^r \mid p,q,r \geq 0, p ... $L_2$ is recursive.Complement of $L_1$ is context-free but not regular.
7.6k
views
1 answers
25 votes
Arjun asked Sep 23, 2014
7,611 views
Which of the following statements are TRUE?The problem of determining whether there exists a cycle in an undirected graph is in $P$.The problem of determining whether there exists a cycle ... $2$ and $3$ only $1$ and $3$ only