Understand it by taking it apart.
Proofs, calculus, machine learning and the machinery of distributed data systems, as articles you operate rather than read. Every diagram answers your hand, and every number on it is computed.
Articles
12 articles in three tracks.
Proofs and discrete math
- What is a matroid? Definition, examples, and why greedy worksWhat a matroid is, in plain terms: the exchange axiom, graphic, linear and uniform examples you can click, and why greedy is optimal exactly on matroids.
- Pythagorean Theorem: Visual ProofThe Pythagorean theorem a² + b² = c²: an interactive proof, similar triangles, the converse, Euclid's formula for triples, law of cosines, common mistakes.
- Proof that √2 is Irrational: Interactive WalkthroughWhy the square root of 2 is irrational: the parity proof done carefully, three more proofs, when √n is irrational, a card that checks each line you try.
- Cantor's Diagonal Argument: ℝ is UncountableCantor's diagonal argument done carefully: why no list holds every real, the 0.4999… = 0.5000… trap, what it proves, a card that builds the missing number.
Calculus and machine learning
- PCA and Eigenfaces: building a face from six numbersMorph real faces and dogs with six sliders first, then derive Principal Component Analysis underneath: variance maximization, reconstruction error, covariance, and SVD.
- Derivatives on a computer: finite differences, the chain rule, backpropagationBackpropagation from the derivative up: the chain rule on a computation graph, why gradients add, why a tiny h fails in floating point. Part 2 of 2.
- What is a derivative? Slope, limit and gradient descent, interactivelyWhy machine learning needs derivatives: how gradient descent walks downhill, why a point has no slope, how the secant becomes the tangent. Part 1 of 2.
Data and distributed systems
- CSR: How Graphs Are Stored in Flat ArraysInteractive visualization of Compressed Sparse Row: three flat arrays replace nested hash maps for sparse graphs, for 10-30x speedups from cache locality.
- Apache Spark RDD Transformations PipelineWhat a Spark RDD is: partitions, lineage, lazy transformations and actions, narrow vs wide dependencies, how map-side combine shrinks a shuffle. Live data.
- Spark Fault Tolerance via RDD LineageHow Spark survives a lost executor or node: lineage, shuffle files, FetchFailed and stage retries, the external shuffle service, checkpoints, speculation.
- Spark DAG Scheduler: From Logical Plan to Physical ExecutionHow Spark's DAGScheduler turns an action into jobs, stages and tasks: where shuffles cut stages, ShuffleMapStage vs ResultStage, retries, a clickable DAG.
- EMR YARN Dynamic Executor AllocationHow Spark on YARN gets executors on Amazon EMR: ResourceManager, NodeManagers, containers, an executor's real memory request, dynamic allocation, cost.