in Theory of Computation recategorized by
861 views
2 votes
2 votes

For a regular expression $e$, let $L(e)$ be the language generated by $e$. If $e$ is an expression that has no Kleene star $\ast$ occurring in it, which of the following is true about $e$ in general?

  1.  $L(e)$ is empty
  2.  $L(e)$ is finite
  3. Complement of  $L(e)$ is empty
  4. Both  $L(e)$ and its complement are infinite
in Theory of Computation recategorized by
861 views

4 Comments

@Kabir5454

what if e itself is ε

0
0
What are you implying?
0
0

@Kabir5454

Given:

 let L(e) be the language generated by e. 

e can be 0 +1 or 0+00 or any other thing 

does e = ε possible.

0
0
yes why not .

$L(e)=\left \{ \epsilon \right \}$.

The corresponding regular expression is = $\epsilon$ .

Here $L(e)$ is not empty but finite with a string of $0$ length .

Complement of $L(e)$=$(a+b)^{+}$  assuming $\sum =\left \{ a,b \right \}$ which is infinite not empty . so option C is also false .

Option D is also false as $L(e)$ is finite .
1
1

2 Answers

1 vote
1 vote

Suppose R.E $e  = 00 + 11$ 

Language generated by R.E is $L(e) = \left \{ {00,11}\right \}$

Clearly the given language is finite

So option B.

complement of L is $\Sigma ^*- \left \{ {00,11}\right \}$  not empty.

4 Comments

let me put in this way 

consider DFA with 2 states q0 and q1 where q0 is finial and q1 is final and let $\Sigma$={a}

  a
$\rightarrow$q0 q1
*q1 q1

now tell me is given DFA valid for this question 

0
0
your dfa contain kleene  star 00*
0
0

so what  you are trying to say that by any means we should not be able to generate 0+ directly or indirectly 

0
0
0 votes
0 votes

Answer:

Answer:

Related questions