in Others edited by
162 views
0 votes
0 votes

 

Which of the following is (are) correct about the regular expression?

$a a^{*} b b^{*} c c^{*} d d^{*}$

$\text{A}$. The language for the given expression is:

$\mathrm{L}=\left\{\mathrm{a}^{\mathrm{n}} \mathrm{b}^{\mathrm{n}} \mathrm{c}^{\mathrm{m}} \mathrm{d}^{\mathrm{m}} \mid \mathrm{n} \geq 1, \mathrm{~m} \geq 1\right\} \mathrm{U}\left\{\mathrm{a}^{\mathrm{n}} \mathrm{b}^{\mathrm{m}} \mathrm{c}^{\mathrm{m}} \mathrm{d}^{\mathrm{n}} \mid \mathrm{n} \geq 1, \mathrm{~m} \geq 1\right\}
$

$\text{B}$. The Context Free Language for the given expression is:

$\begin{array}{l}
\mathrm{S} \rightarrow \mathrm{AB} \mid \mathrm{C} \\
\mathrm{A} \rightarrow \mathrm{aAb} \mid \mathrm{ab} \\
\mathrm{B} \rightarrow \mathrm{cBd} \mid \mathrm{cd} \\
\mathrm{C} \rightarrow \mathrm{aCd} \mid \mathrm{aDd} \\
\mathrm{D} \rightarrow \mathrm{bDc} \mid \mathrm{bc}
\end{array}$

$\text{C}$. The language generated by this expression is equal number of $'a's$, followed by equal number of $'b's$, followed by equal number of $'c's$ and followed by equal number of $'d's$.

Choose the correct answer from the options given below:

  1. Only $\text{A}$ is correct
  2. Only $\text{B}$ is correct
  3. Both $\mathrm{A}$ and $\mathrm{B}$ are correct
  4. All the three $\text{A, B}$ and $\text{C}$ are correct

(Option $1 [39529]) 1$
(Option $2 [39530]) 2$
(Option $3[39531]) 3$
(Option $4 [39532]) 4$

Answer Given by Candidate: $2$

in Others edited by
by
162 views

1 comment

Is this question correct?
I think the provided options are not correct.

Can anyone give a correct answer...
0
0

Please log in or register to answer this question.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

64.3k questions

77.9k answers

244k comments

80.0k users