in Theory of Computation retagged by
2,466 views
0 votes
0 votes

According to the given language, which among the following expressions does it correspond to ?

Language $L=\{x\in\{0,1\}\mid x\text{ is of length 4 or less}\}$.

  1. $(0+1+0+1+0+1+0+1)^4$
  2. $(0+1)^4$
  3. $(01)^4$
  4. $(0+1+\varepsilon)^4$
in Theory of Computation retagged by
by
2.5k views

2 Comments

D is the correct answer.
0
0
option D because of empty string .
0
0

6 Answers

0 votes
0 votes
option D will be correct because It can produce empty string
0 votes
0 votes
It means length of string atmost 4 .

$\left ( \epsilon \right ) + \left (0+1 \right )+\left ( 0+1 \right )^{2} +\left ( 0+1 \right )^{3}+\left ( 0+1 \right )^{4} = \left ( \epsilon +0+1 \right )^{4}$
Answer:

Related questions