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 2006 ii Paper 1 19F b iii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
There are the inflated quotient characters of dimension one and the single representation of dimension from part (ii). These are distinct: for their dimensions distinguish , and for its nontrivial value on distinguishes it from the trivial quotient character. Their dimension squares sum toThe sum-of-squares theorem for irreducible representations leaves no room for any further irreducible. This includes , when and both representations have dimension one.
Past exam of the mathematics course of the University of Cambridge 2006 ii Paper 1 19F b ii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
Write for the affine map . Conjugation by sends translation by to translation by , so it permutes transitively the nontrivial characters of . Since is normal, the induced character is zero outside . On a translation by it is the sum of all conjugates of , henceFor the sum of the nontrivial additive characters is minus one, since the sum including the trivial character is zero. Its character norm isBy the irreducibility criterion for characters, is irreducible of dimension . All choices of nontrivial give the same representation.
Past exam of the mathematics course of the University of Cambridge 2006 ii Paper 1 19F b i Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
The translation subgroup is normal and , via the upper-left entry . Thus the coset representation is the regular representation of that cyclic quotient. If runs through its complex one-dimensional characters, inflated to , thenEach occurs once: the regular character is at the quotient identity and zero elsewhere, which is also the sum of all quotient characters by finite character orthogonality.
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 8 b ii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
Use strength reduction on the disassembled hot instructions. In a fixed-width wrapping integer model,The first replacement is a single left bit shift. For the second, preserve the original operand in a register, shift a copy left by four and subtract the original:This avoids a general multiplication if shifts and subtraction are cheaper on the target processor. The two identities hold for positive and negative two's complement operands when only the low result bits are required.
text
rOriginal = x
rResult = rOriginal << 4
rResult = rResult - rOriginalBecause only a binary is available, patch the machine instructions and adjust displaced branches or use a jump to a replacement code block if the new sequence does not fit. Preserve live registers and the calling convention. If later instructions consume overflow or other condition flags, or the original multiplication produces a double-width result or traps on overflow, matching only the low-word arithmetic is insufficient: those effects must be reproduced or the transformation rejected. Finally, measure the modified program; a fast hardware multiply need not be slower than several replacement instructions.
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 8 b i Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
Add profiling to the timer-interrupt handler. When the target operating-system process is interrupted while running, record its saved instruction pointer, map that address to a code region in the executable, and increment an address histogram. Addresses with many samples identify regions consuming a large fraction of execution time. The executable's code can then be disassembled around these addresses even when source and symbolic names are absent.
This is statistical program profiling: uniform samples of running time estimate time spent in code, not exact execution counts. Restrict samples to the desired process and distinguish application execution from unrelated kernel work. A sufficiently fine address histogram and many samples reveal hot loops; varying the sample interval reduces synchronization bias. If exact visit counts rather than time hotspots are needed, arrange breakpoint or single-step traps, or rewrite the binary to add counters, accepting their much larger overhead. Source code is not required to associate sampled execution with instruction addresses.
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 8 a iv Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
Separate buses match different bandwidth, latency and electrical requirements. Processor-memory traffic needs high bandwidth and short delays, whereas many peripheral devices are slower or use different signaling protocols. Bridges let them communicate without making every memory transfer obey the slowest peripheral's timing. Separating traffic also reduces contention and electrical loading, and permits expansion or compatibility with older device interfaces. Thus a hierarchical computer bus organization is useful even though all devices are ultimately reachable from the processor.
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 8 a iii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
With direct memory access, a device can initiate memory transfers, so the processor is no longer the only computer bus master. Requests must be arbitrated to prevent conflicting transfers, and the processor may have to wait while the device owns a shared bus. The operating system must supply valid stable buffers and arrange safe completion before reusing them. On a noncoherent system, cached processor copies must be flushed or invalidated as appropriate so processor and device agree on data. These extra initiators also need suitable address and protection controls.
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 8 a ii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
The processor selects the device's data or control register by presenting its address, either in memory-mapped input-output space or in a distinct port-address space. For a write, it places data on the computer bus and asserts the appropriate write control. For a read, it asserts read control and samples the data supplied by the addressed device. The device recognizes the address and uses the bus timing or acknowledge protocol to indicate completion, including wait states if needed.
The processor uses status registers to determine readiness and control registers to request operations. This register-level communication can be arranged using polled input-output or interrupt-driven input-output; the bus transaction itself and the policy for waiting on a device are separate issues.
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 8 a i Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
A computer bus conventionally has address, data and control components. Address information selects a memory location or device register; data carries the value being transferred; control identifies operations and coordinates timing, direction, completion and arbitration. A clock, request/grant and acknowledge signals are examples of control information. These are logical roles, not a requirement for three physically separate wire groups: implementations may multiplex address and data on the same wires.
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 7 a iii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
Choose CLOCK for page replacement in a conventional operating system. Good temporal locality makes recency valuable, and CLOCK page replacement captures it reasonably well using cheap reference flags. FIFO page replacement ignores accesses after a page arrives, so it can evict a hot page. Exact LRU replacement has a stronger recency rule but recording and maintaining the order on every ordinary memory access is usually too costly. This is a practical cost-versus-hit-rate choice, not a theorem that CLOCK page replacement minimizes faults on every reference sequence.
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 7 a ii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
Emulate reference observations using page table protection and page faults. When resetting a page's reference state, temporarily revoke access to its resident mapping and invalidate any corresponding translation lookaside buffer entry. The first subsequent access traps. The handler recognizes an intentionally protected resident page, sets a software reference flag and restores the mapping without performing a disk read. A later CLOCK page replacement scan can use and clear this software flag.
One protection fault records the first access after each reset, rather than trapping on every access. All mappings that can access the frame must be considered. The method requires ordinary memory-protection traps, even though hardware reference bits are absent, and adds a fault cost that native reference flags avoid.
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 7 a i Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
FIFO page replacement orders resident pages by when they were loaded and evicts the oldest arrival. An access to a resident page does not change this order, so an old but heavily used page can be the next victim.
LRU replacement records the recency of every page access and evicts the page whose most recent access is oldest. It makes use of temporal locality, but exact reference tracking can require expensive per-access hardware or software bookkeeping.
CLOCK page replacement arranges frames in a circle with a scanning hand and one reference flag per frame. A use sets the flag. During replacement, the hand clears a set flag and moves on, giving that page another chance; it selects an eligible frame with a clear flag. Recent pages tend to survive a scan. CLOCK page replacement approximates recency rather than preserving the exact LRU replacement ordering. A dirty victim must be written back before its frame is reused, and pinned frames must be skipped.
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 6 a ii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
For a pure predicate For a lazy list, return a delayed computation. Searching for the next retained element begins only when this computation is forced:A retained element has a delayed filtered tail, so the whole input is not forced at once. A long run of rejected elements must still be traversed to find the next match. If an infinite lazy list has no matching element beyond the current position, forcing the next result does not terminate; laziness does not promise productivity for every predicate.
p, the ordinary linked list version copies only the surviving spine:sml
fun filterO p ONil = ONil
| filterO p (OCons (x, xs)) =
if p x then OCons (x, filterO p xs)
else filterO p xs;sml
fun filterL p stream () =
case stream () of
LNil => LNil
| LCons (x, rest) =>
if p x then LCons (x, filterL p rest)
else filterL p rest ();The destructive mutable list version operates on the link reaching the current node:When a node survives, recurse on its tail link. When it fails, bypass it by copying its successor into the same link and inspect that link again, which correctly handles several consecutive rejected nodes. No new list nodes are allocated. In particular, changing the root ML reference type cell handles deletion of the head. These arguments assume finite acyclic input for the eager and destructive versions and a predicate that does not itself mutate the list. Aliases observe the mutations; a detached node is not promised to disappear from all external references.
sml
fun filterM p link =
case !link of
MNil => ()
| MCons (x, tail) =>
if p x then filterM p tail
else (link := !tail; filterM p link); Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 6 a i Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
These Standard ML declarations separate the three evaluation and mutation models:The ordinary linked list is immutable and its spine is built eagerly. A lazy list is a delayed function producing the next constructor, with another delayed function for its tail; it can describe an infinite stream without constructing it in advance. A mutable list uses an ML reference type cell for both the root link and every tail link. Updating those cells can remove nodes, including the original head. This lazy list representation delays evaluation but does not automatically implement memoization; repeated forcing can repeat work or effects.
sml
datatype 'a olist = ONil | OCons of 'a * 'a olist;
datatype 'a lnode = LNil | LCons of 'a * (unit -> 'a lnode);
type 'a llist = unit -> 'a lnode;
datatype 'a mnode = MNil | MCons of 'a * 'a mnode ref;
type 'a mlist = 'a mnode ref; Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 5 a iii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
The two-list functional queue has constant-time
peek and isEmpty, but an individual insertion or removal can cost linear time when it reverses a rear list of length . Its useful guarantee is constant amortized time per operation along a single history starting from empty.For the amortized analysis, each item is consed into the rear once, transferred into the front at most once, and removed at most once. Charge its future reversal to the earlier insertion. Thus operations perform only total list-cell work. More formally, use potential , with sufficient to pay the per-cell reversal cost. An insertion into a nonempty front increases by and has constant actual cost; a reversal of cells decreases by , paying its actual cost. With and ,This amortized analysis is deterministic, not an average over a random workload. It assumes subsequent operations use the successive returned versions. If a persistent old version with a long rear is reused repeatedly, each independent dequeue can redo the same reversal. The simple potential accounting does not give constant amortized cost across such a branching history without further memoization or a stronger persistent FIFO queue implementation.
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 5 a ii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
Use a two-list functional queue. Its representation Enqueue prepends to the reversed rear list. Removing the head either leaves a nonempty front or reverses the accumulated rear to restore the invariant. The result pair from
(front, rear) denotes the abstract sequence front @ rev rear; the front is nonempty unless the whole FIFO queue is empty. Normalize only when the front runs out:sml
datatype 'a queue = Q of 'a list * 'a list;
exception EmptyQueue;
fun check ([], rear) = Q (rev rear, [])
| check (front, rear) = Q (front, rear);
fun empty () = Q ([], []);
fun isEmpty (Q (front, _)) = null front;
fun enqueue x (Q (front, rear)) = check (front, x :: rear);
fun peek (Q ([], _)) = raise EmptyQueue
| peek (Q (x :: _, _)) = x;
fun dequeue (Q ([], _)) = raise EmptyQueue
| dequeue (Q (x :: front, rear)) = (x, check (front, rear));dequeue contains the removed element and the new FIFO queue. The constructor should be hidden behind an abstract interface so clients cannot construct an unnormalized representation that invalidates isEmpty. Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 5 a i Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
A FIFO queue provides an empty queue, an emptiness test, insertion at the rear, inspection of the front item, and removal of the front item. It preserves insertion order: after enqueuing and then , removing an item returns first. Inspection and removal on an empty FIFO queue must have a specified outcome, such as an exception handling case or an option-valued result. In a functional interface, insertion and removal return the new FIFO queue rather than updating their argument.
Past exam of the mathematics course of the University of Cambridge 2005 ii Paper 4 6E b iii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
Averaging the fast fluctuations in givesThus a nonzero steady vector satisfiesIts direction is an eigenvector of the input second-moment matrix, and its magnitude is the square root of that eigenvalue. The zero vector is also a steady state and satisfies the displayed relation with . This is an averaged steady state; the microscopic fluctuating update need not vanish at each instant.
Past exam of the mathematics course of the University of Cambridge 2005 ii Paper 4 6E a ii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
For the modified Hebbian learning rule,It increases below and decreases above , without crossing that equilibrium. More precisely, for a nonzero initial norm,Under persistent excitation, meaning the integral tends to infinity, this givesWithout persistent excitation the limiting norm need not reach this value; zero weights remain zero. The quartic norm stabilization of Hebbian learning bounds the norm and supplies negative feedback at large amplitudes.
Past exam of the mathematics course of the University of Cambridge 2005 ii Paper 4 6E a i Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-14
Set . The exact Hebbian learning rule givesThus the norm never decreases, and increases whenever the output is nonzero. Because learning is slow relative to input fluctuations, its averaged equation is , where is the input second-moment matrix. It is a covariance matrix only if the inputs have zero mean. Diagonalizing the positive semidefinite matrix gives components . Hence weights grow without bound whenever the initial vector has a component in an excited positive-eigenvalue direction. A vector entirely in , or identically zero input, is an important stationary exception.
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





