1,610 views
1 votes
1 votes

Consider the following language.
                                                          L = {wxwy | x,y,w∈(a+b)+}
How many states are there in equivalent NFA for above L?

2 Answers

Best answer
4 votes
4 votes

Regular expression for the language is $a(a+b)^+a(a+b)^+ +b(a+b)^+b(a+b)^+$

NFA will be as 

Or 

For Reference :

https://gateoverflow.in/32989/why-this-is-not-a-regular-language

edited by
1 votes
1 votes
NFA doesnt exist.

its not even context free.

the NFA given is wrong .since it will accept string that are not in the language.

remeber,if string is not in langugae then NFA will reject it.

but if its in languga atleast one path will be present to final state

Related questions

1.4k
views
1 answers
3 votes
rahul sharma 5 asked Aug 4, 2017
1,373 views
What will be total number of final states in NFA for the given regular expression?$R=(a+b)^{*}b(a+b+\epsilon )$
2.4k
views
1 answers
0 votes
reena_kandari asked Jun 20, 2017
2,414 views
How many NFA with exactly four states can be constructed over the alphabet S= {a, b} withdesignated initial state?
12.1k
views
1 answers
10 votes
wxyz asked Jan 4, 2016
12,051 views