I wish to know if there are any known algorithms for dispensing a list of files for a specified maximum directory size (disc size for example), while attempting to keep output directories size close to each other.
1 Answer
This is the classic bin-packing problem.
It is classic because it can be applied to so many tasks that we'd like to optimize but it is computationally NP-hard.