Life Is Made of Unfair Coin Flips
It’s time we did a non-pandemic related newsletter issue. So this week we’ll do something more fun. Today we’re going to talk about an interesting journal article that came out two weeks ago,…
Topics /
The most popular blog posts about math & algorithms on Hacker News. 2,391 posts.
It’s time we did a non-pandemic related newsletter issue. So this week we’ll do something more fun. Today we’re going to talk about an interesting journal article that came out two weeks ago,…
Many logos, drawings and other graphical designs have the following shape in it. What is this shape? If you thought: "Ah-ha! I'm smart and r...
Once upon a time, my computer architecture professor mentioned that using a random eviction policy for caches really isn't so bad. That random eviction isn't bad can be surprising — if your cache fills up and you have to get rid of something, choosing the least recently used (LRU) is an obvious choice, since you're…
A free, self-contained introduction to neural networks and differentiable programming, from automatic differentiation to transformers, with additional chapters on advanced topics.
The challenge The authoring platform of choice in many math-heavy disciplines is LaTeX. It produces typeset documents of excellent quality and handles formulas and mathematical diagrams extremely w…
Projects and Ramblings
A retirement project created and maintained by Tom O'Haver , Professor Emeritus , Department of Chemistry and Biochemistry
On the Navier–Stokes Millennium Prize Problem introduces an impressive result from OpenAI, who used an unreleased model to produce a resolution to the Navier–Stokes existence and smoothness problem, one of …
Can Hollywood's stamp of artistic excellence still be trusted?
In this post I derive the physics of pumping a swing and the physics of jumping from a swing. Then, using both pieces I compute the optimal strategy of jumping from a swing to maximize the traveled distance. I propose this game as a new Olympic sport.
The SMBC comic Convert included as the “Votey button” a challenge to extract a Waldo visual from the digits of π.
A few years ago I came across this video, showing a complex machine built entirely in Conway’s Game of Life:
Posted by Nick Johnson | Filed under homomorphic-hashing , damn-cool-algorithms , fountain-codes
Slot machines on the Las Vegas Strip return about 93 cents on the dollar. This is widely considered some of the worst odds in gambling. Yet on Kalshi, a CFTC-regulated prediction market, traders have wagered vast sums on longshot contracts with historical returns as low as 43 cents on the dollar. Thousands of…
I have a little secret: I don’t like the terminology, notation, and style of writing in statistics. I find it unnecessarily complicated. This shows up when trying to read about Markov Chain Monte Carlo methods. Take, for example, the abstract to the Markov Chain Monte Carlo article in the Encyclopedia of…
An online book about collision detection using Processing.
The Doomsday Algorithm gives the day of the week for any date (and you can do it in your head)
A blog about math by Nic Ford
Posted by Nick Johnson | Filed under python , cardinality-estimation , damn-cool-algorithms
This is an explanation of the key function on Proof-of-Work in the Bitcoin blockchain. It focuses on the one feature of Proof-of-Work that is essential and shows that other features often talked about such as security are secondary side-effects, useful, but not essential. This explanation rests on illustrating a few…
I've long had a soft spot for dependently-typed languages like Coq Rocq and Lean. They offer the possibility of a type system capable of encoding and enforcing arbitrarily subtle invariants. The sort of thing that, in regular languages, ends up (at best) as a comment, and which quickly gets lost as the size of the…
In this post we will implement a data compression program in about 150 lines of Haskell. It will use Huffman coding and handle arbitrary binary files using constant memory for encoding and decoding.
a personal blog
We published the triangulator of our map engine as earstrip, an ISC-licensed C++ and WebAssembly library. How it came to be: the ear clipper rebuilt one idea at a time and timed on 3.7 million polygons of real map data.
Water is complicated and fascinating stuff! There are at least sixteen known crystal phases of ice, many shown in this diagram based on the work of Martin Chaplin: (Click for a larger version.) For…
Here’s to being a preserving student for life.
A tale of numbers that like to turn: a different look at complex numbers and the strange things they do.
This blog is written by Hanno Böck. Unless noted otherwise, its content is licensed as CC0 .
Let us say that I ask you to find the number I am thinking about between -1000 and 1000, by repeatedly guessing a number. With each guess, I tell you whether your guess is correct, smaller or larger than my number. A binary search algorithm tries to find a value in an interval by repeating … Continue reading Fast…