1,239 views

1 Answer

3 votes
3 votes

Answer: 5

S→ aSa | bSb | a | b | epsilon 


1st production S→ aSa

2nd  production S→ bSb 

3rd  production S→ a 

4th  production S→ b

5th  production S→ epsilon

Palindrome strings = odd length palindrome( production 1,2,3,4) + even length palindrome (production 1,2,5).

Here single variable is ‘S’ which is start symbol.

Related questions

1 votes
1 votes
2 answers
1
amit166 asked Jan 5, 2023
485 views
In a host size for PDU of network layer is 17076 bytes, MTU size for that network is 200 bytes and IPv4 header size is 20 bytes .find number of IP fragments
0 votes
0 votes
0 answers
2
Ejaz Ali asked Jan 4, 2019
242 views
0 votes
0 votes
0 answers
3
rasto mapp asked Jan 17, 2018
211 views
I Got 31.But the answer is 9.How is it?