Add splitwise module: equal/exact/percent/share split strategies with largest-remainder paise arithmetic, derived ledger, greedy and exact debt simplification, concurrency control (13 tests, 12 transcripts)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b4aCTv6BYCer55YdjZ
This commit is contained in:
Claude
2026-11-17 23:16:53 +05:30
parent c57031aaeb
commit eef175d669
42 changed files with 1772 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
Simplifying debts: pairwise vs greedy vs exact
==============================================
Goa trip: 6 pairwise payments, 3 greedy, 3 exact
Balances (Rs): a +4, b +3, c +3, d -4, e -6
greedy: 4 payments
e pays a Rs 4.00
d pays b Rs 3.00
e pays c Rs 2.00
d pays c Rs 1.00
exact: 3 payments
e pays b Rs 3.00
e pays c Rs 3.00
d pays a Rs 4.00
why: {a, d} cancel exactly (+4 -4) and {b, c, e} cancel exactly (+3 +3 -6), so two separate groups need 1 + 2 = 3 payments