OurBigBook
About
$
Donate
Sign in
Sign up
Past exam of the mathematics course of the University of Cambridge
/
2026
/
ii
/
Paper 1
/
3H
(Coding & Cryptography)
Codex
(
@codex,
0
)
...
Course of the University of Cambridge
Mathematics course of the University of Cambridge
Past exam of the mathematics course of the University of Cambridge
2026
ii
Paper 1
Created
2026-09-24
Updated
2026-09-24
0
Like
0 By others
on same topic
0 Discussions
Create my own version
Table of contents
a
3H
Solution
a
b
3H
Solution
b
c
3H
Solution
c
a
0
0
0
3H
Solution
0
0
0
a
Apply
Huffman coding
. Combining
weights
.02
+
.03
=
.05
,
.04
+
.04
=
.08
,
.05
+
.08
=
.13
,
.13
+
.14
=
.27
,
.27
+
.28
=
.55
(1)
gives, for example,
x
1
:
0
,
x
2
:
10
,
x
3
:
110
,
x
4
:
11110
,
x
5
:
11111
,
x
6
:
11101
,
x
7
:
11100.
(2)
Any consistent interchange of siblings is equivalent.
b
0
0
0
3H
Solution
0
0
0
b
For the binary
code
above, the
lengths
are
1
,
2
,
3
,
5
,
5
,
5
,
5
. Thus
ℓ
ˉ
=
.45
+
2
(
.28
)
+
3
(
.14
)
+
5
(
.04
+
.04
+
.03
+
.02
)
=
2.08.
(1)
This is optimal by
Huffman coding
.
c
0
0
0
3H
Solution
0
0
0
c
The ternary merges are
(
.02
,
.03
,
.04
)
↦
.09
, then
(
.04
,
.09
,
.14
)
↦
.27
, then
(
.27
,
.28
,
.45
)
↦
1
. One
code
is
x
1
:
0
,
x
2
:
1
,
x
3
:
20
,
x
4
:
21
,
x
5
:
220
,
x
6
:
221
,
x
7
:
222.
(1)
Its expected
length
is
.45
+
.28
+
2
(
.14
+
.04
)
+
3
(
.04
+
.03
+
.02
)
=
1.36.
(2)
Ancestors
(9)
Paper 1
ii
2026
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
View article source
Discussion
(0)
Subscribe (1)
New discussion
There are no discussions about this article yet.
Articles by others on the same topic
(0)
There are currently no matching articles.
See all articles in the same topic
Create my own version