Topics /

Math & Algorithms

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

2024
153

RSA is deceptively simple and fun

While reading Real-World Cryptography , I came across the "million message attack" . This is an attack that Daniel Bleichenbacher demonstrated in 1998, which effectively broke RSA with a particular encoding function called PKCS #1 . It was only mentioned briefly, so I dug in and decided to try to understand the…

156

Solving SAT via Positive Supercompilation

The boolean satisfiability problem (“SAT” for short) is arguably the most famous NP-complete problem in theoretical computer science. According to Wikipedia, it is “the problem of determining if there exists an interpretation that satisfies a given Boolean formula ”; or, in simpler terms, if there is at least one…

169

The Second Law of Thermodynamics (2011)

Web site content explains the modern view of entropy change and the dispersal of energy in a process (at a specific temperature). It has been selected for instructors in general and physical chemistry by Dr. Frank L. Lambert, Professor Emeritus (Chemistry) of Occidental College, Los Angeles.

175

Regular expression matching can be simple and fast (2007)

This is a tale of two approaches to regular expression matching. One of them is in widespread use in the standard interpreters for many languages, including Perl. The other is used only in a few places, notably most implementations of awk and grep. The two approaches have wildly different performance characteristics:

180

The power of two random choices

In many large-scale web services, multiple layers of stateless and stateful services are seperated by load balancers. Load balancing can be done with dedicated hardware, with dedicated software load balancers, using DNS trickery or through a load-balancing mechanism in the client. In large systems, the resources and…