1,059 views

2 Answers

3 votes
3 votes

it should be may be regular... as L contains strings in 'xy' form where |x| = |y| and any string in L has length |x|+|y| = 2|x|=2|y| that means length is always even now the language can be either anbn [this has even len] or (aa+bb)* hence language may be regular not always.

edited by
0 votes
0 votes

It is a tricky question..

See given in the language L1 we have |x| = |w| = |y|

But in language L we do not have the w component .Only x and y components are there..

And we require |x| = |y| as L is defined in terms of L1 in the question..

So as |x| = |y| , thus it is guaranteed that any string belonging to language L is an even length string as then only |x| = |y| is satisfied..

We know we can make a DFA of 2 states for the even length strings with say Qstate corresponding to even length strings and Q1 for odd length strings..

Alternatively , we can have regular expression as : [(a + b)2]*  =  (aa + ab + ba + bb)*..

Thus the language L is regular..

Hence option A) is correct ..

Related questions

0 votes
0 votes
1 answer
4