in reply to Creating a sub-list constrained by an average while maintaining maximum number of original elements
My take on that would be:
For sure this algorithm is not guaranteed to provide a solution, but provided your list is big enough and the lengths of the files are sufficiently well spread out, it should not be too bad (for various appropriate definitions of "big enough", "sufficiently" and "not too bad").
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Creating a sub-list constrained by an average while maintaining maximum number of original elements
by stevieb (Canon) on Sep 01, 2010 at 06:52 UTC | |
by CountZero (Bishop) on Sep 01, 2010 at 10:15 UTC |