1,569 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

3 votes
3 votes
1 answer
1
0 votes
0 votes
1 answer
2
reena_kandari asked Jun 20, 2017
2,403 views
How many NFA with exactly four states can be constructed over the alphabet S= {a, b} withdesignated initial state?
10 votes
10 votes
1 answer
4
wxyz asked Jan 4, 2016
11,973 views