64 64 votes Consider the languages $L_1 = \phi$ and $L_2 = \{a\}$. Which one of the following represents $L_1 {L_2}^* \cup {L_1}^*$ ? $\{\epsilon\}$ $\phi$ $a^*$ $\{\epsilon, a\}$ Theory of Computation gatecse-2013 theory-of-computation normal regular-language + – Arjun 29.0k views answer comment Share Follow Print See all 6 Comments 6 6 Comments reply Show 3 previous comments razvardhan commented Dec 24, 2024 reply Follow flag what would be the ans for: Φ * ε ? 0 0 replyShare ahthneeuhl commented Aug 8 reply Follow flag Concatenation of empty language with any language will give empty language 1 1 replyShare GO Classes Support commented Sep 16 i edited by GO Classes Support Sep 17 reply Follow flag Watch the Detailed Video Solution by clicking the button below..!Watch Detailed Video Solution 0 0 replyShare Please log in or register to add a comment.
Best answer 131 131 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\}$. Praveen Saini answered Mar 5, 2015 • edited Jun 15, 2018 by Milicevic3306 Praveen Saini comment Share Follow See all 23 Comments 23 23 Comments reply Show 20 previous comments Shaik Masthan commented Jun 11, 2024 reply Follow flag @halfcodeblood,If union has grater precedence than concatenation then answer is phi. But as we know, union has less precedence than concatenation, answer is language which contains empty string. 2 2 replyShare halfcodeblood commented Jun 11, 2024 reply Follow flag Ok now clear. Thanks. 0 0 replyShare razvardhan commented Dec 24, 2024 reply Follow flag what would be the ans for: Φ * ε ? 0 0 replyShare Please log in or register to add a comment.
7 7 votes L1.anything is empty language and empty union empty* is epsilon hence a kireeti answered Oct 22, 2014 kireeti comment Share Follow See all 2 Comments 2 2 Comments reply Anu commented Jun 14, 2015 reply Follow flag Closure has the highest precedence, followed by concatenation, followed by union. otherwise we will get a wrong answer as shown below ;) L1=ϕ L2*=a* L1*=ϕ* = ∊ L2*∪L1*=a* L1L2*∪L1*=ϕ.a*=ϕ 8 8 replyShare set2018 commented Oct 16, 2017 reply Follow flag Operator Symbol Precedence Position Associativity Kleene star * 1 Postfix Associative Concatenation N/A 2 Infix Left-associative Alternation | 3 Infix Left-associative someone explain this with example pls 1 1 replyShare Please log in or register to add a comment.
6 6 votes Answer is A sonapraneeth_a answered Jan 18, 2015 sonapraneeth_a comment Share Follow See 1 comment 1 1 comment reply Yash Agrawal 3 commented Jul 28, 2017 reply Follow flag Why are we considering L1.L2* = phi as 0*a=0 but why not phi concatenated with multiple a so product becomes a* and final equation becomes a union epsilon 0 0 replyShare Please log in or register to add a comment.
2 2 votes Should be A as per me. Gate Keeda answered Oct 10, 2014 Gate Keeda comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes the correct option is (A) ASHU2015 answered Jan 16, 2015 ASHU2015 comment Share Follow 0 reply Please log in or register to add a comment.