00:01
Hey there, welcome to numerate.
00:02
We are asked to find the context -free grammars for each of these following problems, these languages here.
00:11
So let's go ahead and start with part a.
00:14
Starting with part a, what we know and what we have here is that we are looking at l is equivalent to a raised to n times b raised to n, where n is, even.
00:39
All right, so hence our step one, we know that we're going to use the even pair generating rule.
00:45
So we have 2s, 2a, and base rule for balance pair, a to a to a, uppercase a to lowercase b, epsilon.
01:07
All right, and that's basically what we have here.
01:11
And with this, we have our part b.
01:21
Part b, we are looking at l is equivalent to a raised to n times b raise the n, where n is odd.
01:35
So hence, we're looking at s to a, t, b...