Topics /

Math & Algorithms

The most popular blog posts about math & algorithms on Hacker News. 2,391 posts.

Any year
484

Statistics, Fast and Slow

Written for and first published in the Financial Times on 13 April 2018. One way to understand China is to look at the statistics. Real income per person has increased nearly tenfold since 1990. Si…

487

Pathfinding for Tower Defense

In a Tower Defense game, there are many enemies that are all headed to the same place. In many Tower Defense games, there is a predetermined path, or a small number of paths. In some, such as the classic Desktop Tower Defense [1] , you can place towers anywhere, and they act as obstacles that affect the paths taken by…

488

How traffic actually works

Every so often this article makes the rounds and it annoys me. That isn’t how traffic works and the proposed solutions won’t fix anything. Maybe you can eliminate the annoying stop-and-go, but no one gets home any faster. In fact you can prove that you and everyone behind you get home strictly later than if you had…

494

What is an eigenvalue?

An eigenvalue of a square matrix $LATEX A$ is a scalar $latex \lambda$ such that $latex Ax = \lambda x$ for some nonzero vector $latex x$. The vector $latex x$ is an eigenvector of $LATEX A$ and it…

502

GPS and Relativity

People often ask me "What good is Relativity?" It is a commonplace to think of Relativity as an abstract and highly arcane mathematical theory that has no consequences for everyday life. This is in fact far from the truth.

508

Breaking RSA with a quantum computer?

A group of Chinese researchers have just published a paper claiming that they can—although they have not yet done so—break 2048-bit RSA. This is something to take seriously. It might not be correct, but it’s not obviously wrong. We have long known from Shor’s algorithm that factoring with a quantum computer is easy…

509

An RNG that runs in your brain

Humans are notoriously bad at coming up with random numbers. I wanted to be able to quickly generate “random enough” numbers. I’m not looking for anything that great, I just want to be able to come up with the random digits in half a minute. Some looking around brought me to an old usenet post by George Marsaglia…