224 views
0 votes
0 votes
XWW  AND XWW^R    where X (0+1)*  AND W (0+1)*   are  what kind of languages  also in case of + instead of *  ?

1 Answer

0 votes
0 votes

Considering (a+b)*:

L = xww is regular. Since, w can be ϵ and x∈(a+b)∗, making L=Σ∗. i.e.; the set of strings generated by L is {ϵ,a,b,aa,ab,ba,bb,aaa,…}=Σ∗

L = xww^R is also regular.

Considering (a+b)+:

L = xww is CSL. Since x∈(a+b)+ , w cant be ϵ , so string comparison is required.

L = xww^R is NCFL.

 

Related questions

1 votes
1 votes
1 answer
1
Shantanu Ghosh asked Dec 23, 2017
810 views
Consider the grammar below:G: S → AaBCBC → εaB →aaBA → εWhich of the following is TRUE?( Marks: -0.33 ) G is Type 2 G is Type 3 G is Type 1 G is Type 0
1 votes
1 votes
2 answers
3
rajveer43 asked Jan 29
212 views
Suppose a classifier predicts each possible class with equal probability. If there are 10 classes, what will the cross-entropy error be on a single example?$− log(10)$$...