Topics /

Math & Algorithms

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

2017
122

Why the Dow is a useless market index

The Dow Jones Industrial Average (or 'the Dow', ^DJI, DJIA), is a stock market index created back in 1896 by Charles Dow, a journalist. The goal of the index is provide a view of the stock market's health. The Dow is an index of just 30 (arbitrarily chosen) stocks, weighted by the stock prices of its component…

137

Principles of TLA+

TLA+ is a formal specification and verification language intended to help engineers specify, design and reason about complex, real-life algorithms and software or hardware systems. We explore its motivation, application and principles of design.

145

Cracking random number generators (xoroshiro128+)

In software, we generate random numbers by calling a function called a "random number generator". Such functions have hidden states, so that repeated calls to the function generate new numbers that appear random. If you know this state, you can predict all future outcomes of the random number generators. O'Neill, a…

148

Sieve of Eratosthenes in Python (2015)

Sieve of Eratosthenes animation Source: Wikipedia[0] One of the things we need to do when finding Perrin Pseudo-Primes is to recognise prime numbers so we can see if the numbers predicted by the Perrin test to be prime, are. So we need to generate primes. For small primes (for some definition of "small") this can be…

150

Understanding LSTM Networks (2015)

Humans don’t start their thinking from scratch every second. As you read this essay, you understand each word based on your understanding of previous words. You don’t throw everything away and start thinking from scratch again. Your thoughts have persistence.