define a type $0$ grammar to accept the language

38 Views Asked by At

I have a trouble with implementing a $0$ grammar rule to accept the language $\{ww| w\in (0+1)^*\}$. I want to split the sentence by half with some specific symbol and compare each part of the sentence. E.g. the initial sentence is $$101101$$ I can modify it to $$\text{_}101X101\text{_}$$ And now I need rules to compare these two parts. Any tips?