486 views
0 votes
0 votes

wxw ;w,x belongs to {a,b}*

this regular or dcfl or cfl??? somewhere it is written as regular but dontknow why??

3 Answers

1 votes
1 votes
Yes, the language is regular because

wxw = x only when w, x belong to {a,b}^*

Hence the language is (a+b)^* which is regular
0 votes
0 votes
Yes, the language is regular because you can eliminate the dependency between two w's by substituting epsilon in place of w. Once the dependency is over the language becomes regular.

Now, since language is regular it is also CFL & DCFL.

Related questions

3 votes
3 votes
2 answers
1
0 votes
0 votes
1 answer
2
gateexplore asked Jun 11, 2023
441 views
Construct an NFA that will accept string of 0's, 1's and 2's beginning with a 0's followed by an odd number of 1's and ending with any number of 2's. Please give the answ...
0 votes
0 votes
0 answers
3
vishnu777 asked Nov 24, 2022
215 views
Can anyone explain what is the meaning of saying set of some languages is another language.Ex: L1,L2,L3.....Ln are some languages then i define L={L1,L2,L3.....Ln} which ...
1 votes
1 votes
2 answers
4