The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
87 views
$Que-$ The minimum number of states in the $NFA$ for the regular expression $(a + a(b + aa)*b)* a(b + aa)*a$ is ______.

Approach ?
asked in Theory of Computation by Boss (15.5k points)
edited by | 87 views
0
is the ans 3?
0
Yes.
+1

The DFA would like this.

Try making the DFA for $(a+(b+aa)^*b)^*$, we can easily see $q_3$ will be the final state.

0
your NFA is not accepting ababa and so many strings.
0
corrected it
0

@Shobhit Joshi, Thank you.
Is there any alternative approach to solve this question quickly?
Something making DFA consumes a lot of time if given RE is complicated. 

 

0

@Soumya29 I don't know if there is some method, I do it this way only.

0

Ok.. Thanks @Shobhit 

+1

@Soumya29 I first made the NFA for the smallest string that the given regular expression was accepting and then completed it as to accept the other strings also.. So I guess for the minimum no of states of a particular NFA we should see the minimum no of states required to accept the string of minimum length and then proceed with the necessary modifications.

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
49,532 questions
54,123 answers
187,319 comments
71,044 users