DigiNews

Tech Watch by Johan Denoyer

← Back to articles

Monuses and Heaps

Quality: 8/10 Relevance: 7/10

Summary

A dense technical exploration of monus algebra and its use in heaps and phase-based computations. The post introduces the monus concept as a partial subtraction in an ordered monoid, demonstrates how storing weights as differences can optimize heap-based algorithms, and shows how to implement pairing heaps and Phases (an applicative transformer) in Haskell. It then extends to stability concerns and introduces a Key monus for maintaining original order when keys collide, culminating in a stable, efficient approach for phase-controlled computations.

🚀 Service construit par Johan Denoyer