Get the latest tech news

Monuses and Heaps


This post is about a simple algebraic structure that I have found useful for algorithms that involve searching or sorting based on some ordered weight. I used it a bit in a pair of papers on graph search (2021; 2025), and more recently I used it to implement a version of the Phases type (Easterly 2019) that supported arbitrary keys, inspired by some work by Blöndal (2025a; 2025b) and Visscher (2025).

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of heaps

heaps

Photo of Monuses

Monuses

Related news:

News photo

Petco accidentally exposed heaps of customer information

News photo

Latest room-temperature claims met with heaps of skepticism