Allright folks this is probably a simple and well-known problem with a known solution but I can't find it.
I was putting MP3s on CDs for my car and trying to figure out how to maximize CD space usage.
What I wanted was to have combinations of MP3s that would fill my CDs as much as possible so I would minimize slack.
I wrote a small program that did this brute-force, trying all combinations of all files to find out which combination would approximate my max. time on the CD best.
Then I added some code to it to eliminate some unneccessary combinations that the program knew would be too long/short.
What I am asking here is what known solutions for this sort of problems are out there. Mine is not optimal to say the least because once you want to distribute 200 titles over a few CDs it takes very very long to calculate the optimal sequences, even with some elimination.
Thanks for any input.
hansmuff
I was putting MP3s on CDs for my car and trying to figure out how to maximize CD space usage.
What I wanted was to have combinations of MP3s that would fill my CDs as much as possible so I would minimize slack.
I wrote a small program that did this brute-force, trying all combinations of all files to find out which combination would approximate my max. time on the CD best.
Then I added some code to it to eliminate some unneccessary combinations that the program knew would be too long/short.
What I am asking here is what known solutions for this sort of problems are out there. Mine is not optimal to say the least because once you want to distribute 200 titles over a few CDs it takes very very long to calculate the optimal sequences, even with some elimination.
Thanks for any input.
hansmuff