About

The algorithms that hold things up

Load Bearing Bits is a collection of short walkthroughs of the algorithms behind the software we use every day: how each one works, and where it actually gets used. Every piece is written by an engineer who uses these ideas on the job and has spent years teaching them.

Most programmers never write a sorting algorithm or a hash table after school. Libraries handle it, and now AI writes a lot of the rest. That's fine until something gets slow or breaks in a way nobody expected. Then the algorithm underneath is the only thing that tells you why.

Algorithms also have a reputation for being harder than they are. Textbooks and interviews make them feel like puzzles you either get or you don't. Most of them come down to one or two simple ideas, and once you see those ideas, the rest follows. That's what each topic here tries to do.

Who's behind it

I'm Andrew Ferguson, a software engineer with a focus on systems. I've worked in aerospace, space systems, and large-scale systems integration, and nearly all of it runs on the kind of algorithms you'll find on this site. My background is in computer science and mathematics.

Teaching has always run alongside the engineering. Understanding something well enough to explain it is half the fun, and I'm glad to pass along what I've learned.

I take on select consulting, advisory, and full-time engineering work, and I still teach one-on-one. Work with me

How I work

Whether it's a system or a student, the approach is the same: break the problem into pieces small enough to reason about, work them by hand, and check the answer against reality. "You'll never use this" gets said about algorithms all the time, and it's rarely true. The same algorithm that finds the cheapest way to connect a network helps epidemiologists trace an outbreak, and a string search from 1987 helps labs identify viruses.

With students, that means they work through the problems themselves, with me as a guide, and we come back to the ideas later so they stick. With systems, it means numbers before opinions: measure it, model it, then change it.

About the topics

Each topic explains one algorithm, shows a working implementation, and follows it to a real problem it solves. If you find a mistake, please tell me.

Outside of work, I'm based in New Hampshire and have lived all over New England. I like skiing, gaming, reading, and spending time with my dog, cat, and family.