Computing

Every tool on this shelf

Chapters

Machines and algorithms

L2: school

What a data structure makes cheap

COMPEvery structure here answers one question fast and pays for it somewhere else. A Bloom filter keeps no keys at all and can still say definitely not; a trie answers the prefix questions a hash table cannot; a heap always knows its smallest key and little else. The last page asks which page to throw out of memory, where the best answer needs the future.

  1. 01Bloom filter
  2. 02Trie
  3. 03Binary heap
  4. 04Page replacement

L3: undergraduate

Why an algorithm is correct

COMPAn algorithm is right for a reason that can be stated, and wrong for one a small test can find. Each page sets a correct version beside a plausible wrong one: fourteen of the sixteen ways to write binary search fail, greedy change-giving loses on old British coins and never on US cents, Kruskal and Prim agree for a reason, and a code that corrects one flipped bit makes two flips worse.

  1. 01Binary search
  2. 02Coin change
  3. 03Minimum spanning tree
  4. 04Hamming code

Security

L1: foundations

How codes are broken

COMPEach cipher here hides the letters and leaves something else showing. A substitution leaves the letter counts, a keyword cipher leaves them in columns, and a one-time pad used twice leaves the spaces. Only a random key as long as the message shows nothing at all, and then the hard part becomes getting that key to the other side, which the last two pages do in public.

  1. 01Substitution cipher
  2. 02Vigenère cipher
  3. 03One-time pad
  4. 04Diffie–Hellman
  5. 05RSA

L3: undergraduate

Protecting a stream: revoke a device, then find out which one

COMPTwo halves of the same problem, in the order a studio meets them. First, a key has leaked and the licence must keep working for everyone else — which turns out to cost a header that does not grow with the size of the system at all. Then the harder half: knowing whose key it was, from a copy that several subscribers built together specifically so that it names nobody.

  1. 01Device revocation
  2. 02Forensic watermarking

Signals and information

L3: undergraduate

The Fourier transform in practice

COMPA signal is a sum of spinning arrows, and every practical way of reading them off costs something the textbook formula leaves out. A finite window smears a tone that does not fit it across every bin; a shorter window buys time and pays in pitch; an average is a filter with a shape of its own; and the last page is the reason any of it is affordable.

  1. 01Discrete Fourier transform
  2. 02Spectrogram
  3. 03Moving average as a filter
  4. 04Fast Fourier transform

Proof, counting and games

Problems solved in full

Articles written from these tools

Related categories: Mathematics, Physics