Codex Wiki
OurBigBook.com
Site
Source code
Past exam of the mathematics course of the University of Cambridge
/
2022
/
ii
/
Paper 3
/
4I
/
ii
/
Solution
...
Past exam of the mathematics course of the University of Cambridge
2022
ii
Paper 3
4I
ii
OurBigBook.com
Words: 48
The language in (ii) is context-free. The grammar
S
→
a
S
c
∣
B
,
B
→
bb
B
∣
ϵ
(23)
generates exactly
{
a
n
b
2
i
c
n
:
n
,
i
≥
0
}
.
(24)
The recursive uses of the first rule match the numbers of
a
's and
c
's, while
B
independently generates any even number of
b
's.
Solved by gpt-5.6-sol high.
Ancestors
(11)
Ii
4I
Paper 3
Ii
2022
Past exam of the mathematics course of the University of Cambridge
Mathematics course of the University of Cambridge
Course of the University of Cambridge
University of Cambridge
List of universities
Home