a "language" consists of thrree words, w1=a, w2=ba, w3=bb. let N(k) be number of "sentencces" using exactly k letters ex N(1)=1 (i.e a),N(2)=3 (aa,ba,bb), N(3) =5(aaa,aba,abb,baa,bba) no space is allowed between words.
a. show that N(k) = N(k-1) + 2N(k-2) ,k =2,3,... define (N(0)=1)
how to proof this?
a "language" consists of thrree words, w1=a, w2=ba, w3=bb. let N(k) be number of "sentencces" using...
• Build an FA that accepts the language of all words with only a’s or only b’s in them. For example, a, aa, aaa, b, bb, bbb, etc are in the language, while null string, ab, ba, aab, aba, bab, bba, baa, etc are not in the language. • Give a regular expression for this language.