recategorized by
1,798 views
1 1 vote

Let $P, Q, R$ be a regular expression over $\Sigma$. If $P$ does not contain null string, then $R=Q+RP$ has a unique solution ___________ .

  1. $Q^{*}P$
  2. $QP^{*}$
  3. $Q^{*}P^{*}$
  4. $\left ( P^{*}O^{*} \right)^{*}$

1 Answer

5 5 votes

According to arden's theorem, we can directly find the answer is QP*
Arden's Theorem
Statement:
Let $P$ and $Q$ be two regular expressions.
If $P$ does not contain null string, then $R = Q + RP$ has a unique solution that is $R = Qp*$
Proof:
$R=Q+(Q+RP)P$ [After putting the value $R=Q+RP$]
$=Q+QP+RP^{2}$
When we put the value of $R$ recursively again and again, we get the following equation:
$R=Q+QP+QP^{2}+QP^{3}....$
$R=Q(\epsilon +P+P^{2}+P^{3}+....)$
$ R=QP^{*}   [ P^{*}  =  (\epsilon +P+P^{2}+P^{3}+....)] $

Answer:
Position:
Show:

Related questions

1 1 vote
2 2 answers
1.5k
1.5k views
admin asked Mar 31, 2020
1,516 views
$\left (0+ \varepsilon \right) \left (1+ \varepsilon \right)$ represents :$\left \{0,1,01,\varepsilon \right \}$$\left \{0,1,\varepsilon \right \}$$\left \{0,1,01, 11, ...
2 2 votes
1 1 answer
1.3k
1.3k views
admin asked Mar 31, 2020
1,260 views
Complement of $\left (a+b \right)^{*}$ will be : $Phi\left ( \Phi \right )$Null$a$$b$
2 2 votes
4 4 answers
2.4k
2.4k views
admin asked Mar 31, 2020
2,364 views
The automaton which allows transformation to a new state without consuming any input symbols : $NFA$$DFA$$NFA - 1$All of the options
3 3 votes
4 4 answers
2.7k
2.7k views
admin asked Mar 31, 2020
2,677 views
Complement of a $DFA$ can be obtained by :making starting state as final state.make final as a starting state.making final states non-final and non-final as final.None of...