mrdot on Nostr: #asknostr #programming #sets I have a set of tuples (A, B). I want to find the subset ...
#asknostr #programming #sets
I have a set of tuples (A, B).
I want to find the subset for which
- there is no other subset with a higher total sum of A and
- for which the average amount of B is above a threshold X.
What algorithm can I use here?
I have a set of tuples (A, B).
I want to find the subset for which
- there is no other subset with a higher total sum of A and
- for which the average amount of B is above a threshold X.
What algorithm can I use here?