the problem is more similar to the knapsack problem https://en.wikipedia.org/wiki/Knapsack_problem There are some articles if you look for "create playlist of specific length" that suggest to use the "smart playlist" function of iTunes.
No comments yet.