algorithm to determine minimum payments amongst a group

后端 未结 8 729
庸人自扰
庸人自扰 2020-12-05 12:09

The Problem

I was recently asked to calculate the money owed amongst a group of people who went on a trip together and came upon an interesting problem: given that

8条回答
  •  悲哀的现实
    2020-12-05 12:26

    As one @Edd Barret stated, this can be solved approximately using linear programming. I have written a blog post describing this approach, along with a tiny R package that implements it.

提交回复
热议问题