Join Nostr
2026-11-12 19:18:35 UTC

Amboss on Nostr: Binary search always splits the range in half. That is a fine guess when you know ...

Binary search always splits the range in half. That is a fine guess when you know nothing, but Lightning nodes probing a channel's hidden balance usually know something. Splitting where the balance probably is makes probing 3 to 6% more efficient in production.

Our researchers built Bayesian Binary Search: it learns where balances are likely to sit, then splits the range where the probability is, not at the midpoint.

The paper was published in the peer-reviewed journal Algorithms (MDPI, 2025), in collaboration with Stillmark. It runs in production at Amboss today.

The plain-English overview and the paper are in the reply.

Overview and paper: https://amboss.tech/blog/bayesian-binary-search