in Theory of Computation edited by
4,556 views
4 votes
4 votes

How many states are there in a minimum state automata equivalent to regular expression given below?

Regular expression is $a^*b(a+b)$

  1. $1$
  2. $2$
  3. $3$
  4. $4$
in Theory of Computation edited by
by
4.6k views

2 Answers

4 votes
4 votes
Best answer

The minimal automata for the regular expression : $a^*b(a+b)$ is as shown below

$\therefore$ Option $C.$  $3$ is the correct answer.

edited by

12 Comments

Can't there be 2 states possible as a,b be on Q(as self loop) as final state
0
0
No ...in that case the language will become $a^*b(a+b)^*$.
1
1
Yeah ,got it:)
0
0
How can this be a valid automaton?

There are no transitions in the final state. Why haven't you included a dead state?
0
0
It is a NFA not a DFA. (both DFA and NFA are automatas)
0
0

On wiki this has been written about minimum state automata( DFA Minimization):

For each regular language, there also exists a minimal automaton that accepts it, that is, a DFA with a minimum number of states and this DFA is unique (except that states can be given different names).[2][3] The minimal DFA ensures minimal computational cost for tasks such as pattern matching.

My question is should we go for NFA whenever minimum states automation has been asked without any prior mention of the type of automata.

As this question hasn't mentioned anything about the type of automata.

0
0
in such questions, We should go with the one that has minimum number of states.
1
1
Roger That!
0
0

@Satbir

Where is the transition for $\mathbf{Dead\; State}$.

In Dfa you have to complete all the transitions.

So $\mathbf{4}$ states should be there.

It says minimum state automata not $\mathbf{NFA}$

1
1

@Arjun

Please verify this answer once.

0
0
DFA and NFA both are automatas
0
0
Yeah, that's ok but I think we need to draw DFA only.

NFA is the more simpler form.

I am not sure whether its correct drawing an NFA in place of DFA
0
0
2 votes
2 votes

I think answer is four. Because it also has to reject the strings like bab,abba,etc.

Answer:

Related questions