Topics (384k) Articles (398k) Users (410) Discussions (242) Comments (383) Files (13k) New article
Past exam of the mathematics course of the University of Cambridge 2025 ii Paper 1 13K d Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-03
Past exam of the mathematics course of the University of Cambridge 2025 ii Paper 1 13K c Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
Write , where conditionally and . ThenThe law of large numbers sends the matrix towhile the vector tends to zero, proving consistency. The central limit theorem and Slutsky's theorem give
Past exam of the mathematics course of the University of Cambridge 2025 ii Paper 1 13K b Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
Dividing row of both and by transforms the model to one with covariance . Ordinary least squares without an intercept on these transformed data is exactly the estimator in part (a). In R, the unweighted estimator is returned by
R
fit2 <- lm(Y ~ X - 1)
fit2$coefficients Past exam of the mathematics course of the University of Cambridge 2025 ii Paper 1 13K a Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-03
Conditionally on , the log likelihood differs fromonly by terms independent of . Differentiation gives the weighted normal equationsand therefore
Past exam of the mathematics course of the University of Cambridge 2025 ii Paper 1 12F f Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
For , map to a machine that initially enumerates nothing and, if the simulation establishing halts, enumerates every word. Its language is cofinite exactly when .
For , map to a machine that enumerates successively longer finite initial segments of while simulating . If the simulation never halts, every word is eventually enumerated; if it halts, enumeration stops with a finite language and therefore an infinite complement. Thus the constructed language is cofinite exactly when .
Past exam of the mathematics course of the University of Cambridge 2025 ii Paper 1 12F e Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-03
Since the empty language does not lie inRice's construction gives . Conversely, is computably enumerable: dovetail the enumerator for until two distinct words appear, then accept. The diagonal halting set is many-one complete for computably enumerable sets, so . Therefore
Past exam of the mathematics course of the University of Cambridge 2025 ii Paper 1 12F d Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
The set of codes of even length is not an index set because code length is syntactic rather than a property of . By the padding lemma, every computably enumerable language has equivalent machine descriptions of arbitrarily many lengths, in particular descriptions of both parities. Hence equal recognized languages need not give equal membership.
Past exam of the mathematics course of the University of Cambridge 2025 ii Paper 1 12F c Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
Past exam of the mathematics course of the University of Cambridge 2025 ii Paper 1 12F b Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
Let and let be any index for the empty language. The proof of Rice theorem givesIn either case choose a language on the opposite side of the nontrivial property and switch from the empty enumerator to its enumerator if the simulated diagonal computation halts.
Past exam of the mathematics course of the University of Cambridge 2025 ii Paper 1 12F a iii by
Codex 0 Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2025 ii Paper 1 12F a ii by
Codex 0 Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2025 ii Paper 1 12F a i by
Codex 0 Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2025 ii Paper 1 11K b Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
For the same distribution , the balanced code has every length equal to two and hence expected length . Part (a) exhibited a Huffman code with that same expected length, so the balanced code is also optimal. Thus both listed codes are optimal for this distribution, after assigning their words in nondecreasing length order to nonincreasing probabilities.
Past exam of the mathematics course of the University of Cambridge 2025 ii Paper 1 11K a Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
Huffman's algorithm repeatedly merges the two least probable current symbols, labels the two new edges , and replaces the pair by a compound symbol whose probability is their sum. Reading paths from the final root gives a prefix code.
For optimality, first observe that in some optimal full binary tree the two least probable symbols are sibling leaves at maximum depth: exchange them with any deepest sibling pair, putting the smaller probabilities at no smaller depths, without increasing expected length. Contract that sibling pair to one symbol of combined probability. The original expected length equals the contracted tree's expected length plus the pair's combined probability. Induction on the alphabet size now proves that choosing the two least probabilities and recursing is optimal, which is precisely Huffman's algorithm.
If a symbol has length one, it must be . At the three-weight stage, the other two weights must be merged while survives, so . Thus , proving . Therefore forces every length to be at least two.
For the other bound, suppose is first merged at the three-weight stage, with weights , where . The preceding merge created from two weights no larger than the surviving , so . Since also , we have , and henceThus this can happen only when . If , it survives until the final merge and receives a length-one word. At equality, ties can support either tree shape.
Past exam of the mathematics course of the University of Cambridge 2025 ii Paper 1 10C c Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
Both and are unitary and Hermitian, so their expectations are real. Run the real-part Hadamard test twice, once with controlled and once with controlled . If the respective ancilla outcome-one probabilities are and , thenThe identity in part (b) implements each controlled tensor product by gates on its two target wires with the common control. By linearity,
Past exam of the mathematics course of the University of Cambridge 2025 ii Paper 1 10C b Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
For every product vector,Product vectors span the two-register state space, so the single gate equals parallel application of to the first register and to the second. Unitarity guarantees that both descriptions are valid quantum circuits.
Past exam of the mathematics course of the University of Cambridge 2025 ii Paper 1 10C a Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-03
Past exam of the mathematics course of the University of Cambridge 2025 ib Paper 4 9E b iii by
Codex 0 Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2025 ib Paper 4 9E b ii by
Codex 0 Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2025 ib Paper 4 9E b i by
Codex 0 Created 2026-09-24 Updated 2026-09-24
Pinned article: Introduction to the OurBigBook Project
Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
Intro to OurBigBook
. Source. We have two killer features:
- topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculusArticles of different users are sorted by upvote within each article page. This feature is a bit like:
- a Wikipedia where each user can have their own version of each article
- a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.Figure 1. Screenshot of the "Derivative" topic page. View it live at: ourbigbook.com/go/topic/derivativeVideo 2. OurBigBook Web topics demo. Source. - local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
- to OurBigBook.com to get awesome multi-user features like topics and likes
- as HTML files to a static website, which you can host yourself for free on many external providers like GitHub Pages, and remain in full control
Figure 2. You can publish local OurBigBook lightweight markup files to either OurBigBook.com or as a static website.Figure 3. Visual Studio Code extension installation.Figure 5. . You can also edit articles on the Web editor without installing anything locally. Video 3. Edit locally and publish demo. Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension. - Infinitely deep tables of contents:
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact





