Play the algorithm. Put the reader in the "mind" of the algorithm (first person) while also seeing the algorithm's high level behavior (third person).
- Prime Numbers (Philipp Legner, World of Mathematics) see "The Sieve of Eratosthenes"
- A visual proof that neural nets can compute any function (Michael Nielsen, Neural Networks and Deep Learning) see "get as many peaks as we want"