• edited by
14,822 views
40 40 votes

Which one of the following regular expressions is NOT equivalent to the regular expression $(a + b + c)^*$?

  1. $(a^* + b^* + c^*)^*$
  2. $(a^*b^*c^*)^*$
  3. $((ab)^* + c^*)^*$
  4. $(a^*b^* + c^*)^*$

5 Answers

Best answer
59 59 votes
  1. $(a^* + b^\ast + c^\ast)^\ast  = ( \epsilon + a+aa+ \ldots +b+bb+\ldots +c+cc + \ldots)^\ast = (a+b+c+ aa+\ldots + bb +\ldots +cc+\ldots )^\ast= (a+b+c)^\ast$ 
    [any combination of rest of $aa ,bb,cc,$ etc. already come in $(a+b+c)^\ast$ ]
  2. $(a^\ast b^\ast c^\ast)^\ast = (a^\ast+b^\ast+c^\ast +a^\ast b^\ast+b^\ast c^\ast+a^\ast c^\ast+ \ldots)^\ast=(a+b+c+\ldots)^\ast = (a+b+c)^\ast$
  3. $((ab)^\ast + c^\ast)^\ast =(ab+c+\epsilon +abab+\ldots)^\ast = (ab+c)^\ast$
  4. $(a^\ast b^\ast + c^\ast)^\ast = (a^\ast+b^\ast+c^\ast+\ldots)^\ast =(a+b+c+\ldots)^\ast =(a+b+c)^\ast$

Correct Answer: C.

• edited by
11 11 votes
((ab)* + c*)* will not produce the strings where 'a' comes without 'b' and vice-versa. Therefore, language generated by option (c) is proper subset of language genrated by (a+b+c)* . Answer would be (C).
Answer:
Position:
Show:

Related questions

59 59 votes
5 answers 5 answers
12.5k
12.5k views
Ishrat Jahan asked Nov 2, 2014
12,526 views
Let $M=(K, Σ, \sigma, s, F)$ be a finite state automaton, where$K = \{A, B\}, Σ = \{a, b\}, s = A, F = \{B\},$$\sigma(A, a) = A, \sigma(A, b) = B, \sigma(B, a) = B \text{...
71 71 votes
10 answers 10 answers
89.4k
89.4k views
Ishrat Jahan asked Nov 2, 2014
89,386 views
Let $M = (K, Σ, Г, Δ, s, F)$ be a pushdown automaton, where$K = (s, f), F = \{f\}, \Sigma = \{a, b\}, Г = \{a\}$ and$Δ = \{((s, a, \epsilon), (s, a)), ((s, b, \epsilon), ...
3 3 votes
1 answers 1 answer
3.9k
3.9k views
Ishrat Jahan asked Nov 2, 2014
3,911 views
Given below are several usages of the anchor tag in HTML.<A HREF = "http://www.gate.ac.in/HTML/BASIC/testpage.html">Test Me</A><A HREF = "/BASIC/testpage.html">Test Me</A...
1 1 vote
1 1 answer
2.7k
2.7k views
Ishrat Jahan asked Nov 2, 2014
2,656 views
Consider an XML file called intro.xml and a document type defintion (DTD) file intro.dtd as follows:intro.xml<?xml version = "1.0"? <!DOCTYPE myMessage SYSTEM "intro.dtd"...