News for hackers. Stuff that matters.
Re:Show HN: Allocate poker chips optimally with mixed-intege... by contravariant on Tuesday June 04, 2024 @12:20PM (#40576130)
Optimal in what sense? If you want to have each whole number using each number at most twice then sure.

If you want to get within x% using at most k weights the some kind of logarithmic distribution is also a good bet.

Both you and OP could benefit from being a bit clearer about what you find optimal.

Re:Show HN: Allocate poker chips optimally with mixed-intege... by jstrieb on Tuesday June 04, 2024 @06:40PM (#40579687)
See this comment for a more in-depth explanation of what I meant by "optimal" for poker chip denominations. Hopefully that clarifies. That comment has a link to the code if it's still not clear enough.

https://news.ycombinator.com/item?id=40576198