938 views
0 votes
0 votes
If L={a^n w a^n , w={a,b}* }

how come this is a regular language , although I can write like

a(a+b)*a +aa (a+b)*aa but still how are we able to make sure that the power of a from the beginning is the same as the power of from end , plz draw a finite automaton for it , I am stucked up in this .

1 Answer

Best answer
3 votes
3 votes

If $L=\{a^n w a^n , w \in \{a,b\}^* \}$

When a set definition is given, we must consider all possible cases as per the definition- i.e., for a language we must include all possible strings satisfied by the given definition. In this question when we put $n = 0$, we get $L = \Sigma^*$ and that is the maximal set and so we don't need to consider any other value for $n$. And this set is regular. 

selected by

Related questions

782
views
2 answers
3 votes
radha gogia asked Nov 29, 2015
782 views
For a set of string $A$, define the set $FirstHalves$ $A=\{x\, |\, \exists y, |y|=|x|\, and \: xy\in A\}$For example, $FirstHalves$ ... A) Regular(B) Context-free but not-regular(C) Recursive but not context-free(D) None of the above
2.1k
views
1 answers
0 votes
radha gogia asked Nov 17, 2015
2,052 views
L={a^nk , k>0 and n is an integer constant }In this question which constant should be changed , n or k while considering the DFA since then it can be either n+1 or k+1 ?
8.1k
views
1 answers
0 votes
sumit kumar asked Jun 22, 2015
8,135 views
my question is whether we have a shortcut an idea which can help us in recognizing any language to be regular or not,in GATE .and also what is the best way to get it properly done when you want to do it the old school way?