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.
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.