retagged by
1,411 views
0 votes
0 votes
which of the following statement is True?

a) r* and  r+ are always different.          b) r* and r+ may be equal.

 

Please explain briefly.
retagged by

3 Answers

0 votes
0 votes

According to me  option A is true

0 votes
0 votes
a) r* and  r+ are always different.          b) r* and r+ may be equal.
if r= epsilon

epsilon* = epsilon

epsilon+ = epsilon

from above b is correct

 but if u place

r= phi

phi*= epsilon

phi+ = phi

which is different so it is corrected as fore some condition r+ and r* are smae and for some they are different
0 votes
0 votes

r* means *>= 0,

i.e. r* = {Ɛ,r,rr,rrr,rrrr.....}

but in the case of r+,

r can not be equal to 0 i.e. in simple words + denotes that language contains atleast one r.

i.e. r+ = {r,rr,rrr,rrrr.....}

Hence r* and r+ are always different.

Related questions

0 votes
0 votes
1 answer
1
just_bhavana asked Mar 4, 2017
1,765 views
The difference between number of states in two equivalent mealy and moore machines is 1a) Trueb) False
0 votes
0 votes
1 answer
3
gate_forum asked Jun 17, 2016
844 views
State True/False:"A finite State Machine can add two integers." My approach:A turing machine being a FSM can compute sum or product of two integers.So its true.