Topics /

Math & Algorithms

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

2020
42

Cache Oblivious Algorithms

Cache-Oblivious Algorithms Cache-oblivious algorithms seemed incredible to me when I first heard about it in 6.854 (Advanced Algorithms). It’s relatively straightforward to imagine algorithms that utilizes information about page size $B$ and cache size $M$ to create efficient data structures. However, cache-oblivious…

44

Ramanujan's Easiest Formula

A while ago I decided to figure out how to prove one of Ramanujan’s formulas. I feel this is the sort of thing every mathematician should try at least once. I picked the easiest one I could f…

47

Gamedev Tutorial: Dot Product, Rulers, and Bouncing Balls

[latexpage] 本文之中文翻譯在此 Prerequisites Trignometry Basics – Sine & CosineTrigonometry Basics – Tangent, Triangles, And CannonballsInverse Trigonometric Functions, Slope Angles, And Facing Objects Overview The dot product is a simple yet extremely useful mathematical tool. It encodes the relationship between two vectors'…

53

Sphere Eversion

Topology is the study of the properties of geometric objects which aren’t changed by continuous deformation. A standard low-grade math joke is that toplogists consider a coffee mug and a doughnut equivalent because they’re both torii—(pauses for laughter)—one can be continuously deformed into the other, called a…

54

Is every game of Slay the Spire winnable?

There is a lot of randomness in a game of Slay the Spire. From the cards and relics offered, to the potions dropped, to the map layouts and random encounters, very little remains the same between two playthroughs. This is part of the beauty of the game, forcing you to adapt and make the most out of the resources you…