edited by
6,165 views

6 Answers

Best answer
42 votes
42 votes

A is the answer.

Say $s_1, s_2 , s_3$ and $t$ are the states (in sequence) with $s_1$ being the start state

$s_1= \epsilon + s_1a + s_1b = \epsilon +s_1(a+b) = (a+b)^*$ [using Arden's theorem  $R= Q+RP$ , then $R= QP^*$][$\epsilon$ because of being the start state]

$s_2 = s_1a = (a+b)^*a$

$s_3= s_2a+s_2b = s_2(a+b) = (a+b)^*a(a+b)$

$t= s_3b= (a+b)^*a(a+b)b$

$t$ is final state so regular expression is $(a+b)^*a(a+b)b$

edited by
0 votes
0 votes

the first S represents (a+b)*

and the next 2 states are S so they are same as S(first state) 

that is output of 2,3 states are generated by first S, that means we can combine those 3 states and finally make S as final state 

which lead to option D that is (a+b)*

0 votes
0 votes
  • option b and option d genrate null so it is false.becz it is not accepted by finite autometa
  • option c genrate string ab which is also false

 so option a is true

0 votes
0 votes

The given NFA accepts all the strings that contains at least 1 ‘a’ and ends with ‘b’

  1.  is the answer 
  2. it does not accept string starting with b while our NFA accepts string starting with both ‘a’ and ‘b’  (Hence False)
  3. this expression accepts strings ending with ‘a’ (Hence False)
  4.  Same as option C (Hence False)
edited by
Answer:

Related questions

11.6k
views
4 answers
41 votes
Ishrat Jahan asked Nov 1, 2014
11,615 views
Let $L$ be a regular language. Consider the constructions on $L$ below:$\text{repeat} (L) = \{ww \mid w \in L\}$ ... b)^*$\{\epsilon, a, ab, bab\}$(ab)^*$\{a^nb^n \mid n \geq 0\}$
9.7k
views
2 answers
31 votes
Ishrat Jahan asked Nov 1, 2014
9,721 views
Let $L$ be a regular language. Consider the constructions on $L$ below:repeat $(L) = \{ww \mid w \in L\}$ ... of the constructions could lead to a non-regular language?Both I and IVOnly IOnly IVBoth II and III
8.5k
views
4 answers
46 votes
Ishrat Jahan asked Oct 31, 2014
8,544 views
For a state machine with the following state diagram the expression for the next state $S^+$ in terms of the current state $S$ and the input variables $x$ and $y$ is$S^+ = S' . y' + S . x$ ... $S^+ = S' . y + S . x'$
8.2k
views
5 answers
34 votes
Ishrat Jahan asked Oct 31, 2014
8,246 views
In the context-free grammar below, $S$ is the start symbol, $a$ and $b$ are terminals, and $\epsilon$ denotes the empty string.$S \to aSAb \mid \epsilon$ ... $a^* b^*$