Topics /

Math & Algorithms

The most popular blog posts about math & algorithms on Hacker News. 135 posts.

2021
66

RNA Memory Hypothesis

There’s an old theory that memory is actually encoded in part in RNA. The argument is pretty simple: there’s no obvious way for all that sensory data to be captured in synapses as long …

67

All Horses Are the Same Color

Problem: Show that all horses are of the same color. “Solution”: We will show, by induction, that for any set of $ n$ horses, every horse in that set has the same color. Suppose $ n=1$, this is obviously true. Now suppose for all sets of $ n$ horses, every horse in the set has the same color. Consider any set $ H$ of…

71

Review: The Book of Why

The Book of Why: The New Science of Cause and Effect is a collaborative effort aimed at a general audience by Judea Pearl , a professor of computer science at UCLA, and Dana Mackenzie , a science writer. As a medical student with a laughably poor formal education in statistics, I believe I qualify as a card-carrying…

73

Does having prime neighbors make you more composite?

Babylonian accountants and land surveyors did their arithmetic in base 60, presumably because sexagesimal num­bers help with wrangling fractions. When you organize things in groups of 60, you can divide them into halves, thirds, fourths, fifths, sixths, tenths, twelfths, fifteenths, twentieths, thirtieths, and…

82

Donut.c Without a Math Library

My little donut.c has been making the rounds again, after being featured in a couple YouTube videos (e.g., Lex Fridman and Joma Tech ). If I had known how much attention this code would get over the years, I would have spent more time on it.