retagged by
628 views
2 votes
2 votes

retagged by

2 Answers

Best answer
7 votes
7 votes

1) $ L = \{ uww^{R}v : u,v,w \in \{a + b \}^{+} \} $

This is a regular language, If you look closely then you will see that we can stretch $u$ and $v$ such that we can get $w w^{R} $ as $aa$ or $bb$. 

Associated Regular expression can be : $ (a + b)^{+} . a a . (a + b)^{+} + (a + b)^{+} . b b . (a + b)^{+} $

2) $ L = \{ uww^{R}v : u,v,w \in \{a + b \}^{+}, |u| >= |v| \} $

This is not a regular language, because you need a counter to check that if $ |u| >= |v| $ ? 

Hence this is not regular.

edited by
0 votes
0 votes

A) The language is regular as the input string can be broken in 4 parts where W and WR are the same symbol, either a or b and U can be anything before W and V can be anything after WR . The language can be defined as any string  of length 4 or more containing either aa or bb (Not at end or beginning). 

B) Same as above but there is one more constraint that |U| >= |V|, as DFA has finite memory this language cannot be Regular.

Related questions

0 votes
0 votes
0 answers
1
0 votes
0 votes
0 answers
2
Naveen Kumar 3 asked Apr 12, 2019
154 views
In the chain code language in Exercise 24, Section 3.1, let $L$ be the set of all $w ∈$ {$u,r,l,d$}$^*$ that describe rectangles. Show that $L$ is not a regular languag...
0 votes
0 votes
2 answers
3