Algorithm to simplify a weighted directed graph of debts

后端 未结 3 1460
南旧
南旧 2020-12-02 17:52

I\'ve been using a little python script I wrote to manage debt amongst my roommates. It works, but there are some missing features, one of which is simplifying unnecessarily

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 18:05

    Here is an academic paper which investigates this problem in great detail. There is also some sample code for the different algorithms in Section 8 towards the end.

    Verhoeff, T. (2004). Settling multiple debts efficiently : an invitation to computing science. Informatics in Education, 3(1), 105-126.

提交回复
热议问题