424 views

2 Answers

1 votes
1 votes
L= 0 => 0(No string possible)

L=1 => 1 {a}

L=2 => 3 {aa, ba, ab}

L=3 => 7 {aaa, aba, baa, bba, bab, aab, abb}

Therefore total =0+1+3+7=11
0 votes
0 votes
0 length 0

1 length =1 a

2 length = 3 aa,ba,ab

3 length = 7 aaa,aba,baa,aab,aba,bab

total 11
edited by

Related questions

1 votes
1 votes
2 answers
1
Shaina Singh asked Jul 30, 2023
538 views
Convert DFA to regular expression
1 votes
1 votes
2 answers
2
0 votes
0 votes
1 answer
3
akash_chauhan asked Jul 20, 2022
433 views
what is the difference between, r* and r^(*) can anyone please elaborate !
1 votes
1 votes
1 answer
4
samarpita asked Nov 21, 2021
580 views
What will be the answer