Skip to content
EvenRound
Glossary

Smart settlement

An algorithm that produces the minimum number of transactions needed to settle all balances in a group.

Definition

Smart settlement (also called 'simplified debts' by Splitwise, 'optimal settlement' by EvenRound) is the algorithmic process of taking a set of group balances - where each member is either net-positive (owed money) or net-negative (owing money) - and producing the minimum-transaction payment plan that zeros every balance. The naive approach is for everyone who owes money to pay everyone they owe directly, but that produces too many transactions in a group of 4+. The smart approach uses greedy debt minimization: at each step, settle the largest debtor against the largest creditor. The result is a plan with at most n−1 transfers, where n is the number of members with non-zero balances. This is mathematically optimal in the sense of minimizing transaction count, though not always optimal in the sense of who-pays-whom from a social-graph perspective.

Examples

Related terms