The Full Binpack Rules and examples.
This Challenge is a partial replay of the First Matlab Contest, 1998 BinPack. The Twist is to Achieve the Best Packing, no time or code size penalty. The twelve songList sets will be scored once each.
Brief Challenge statement: Pack a 45(mediaLength) minute CD as maximally as possible given a list of songs of varying lengths. No penalty for unused songs. No song duplication allowed. Return the indices of the songs used.
Input: [songList, mediaLength]
Output: indexList
Example:
Input: [ 0.5 2 3 1.5 4], [5.6]
Output: [4 5] as 1.5+4 is very near and below 5.6.
The answer of [1 2 3] is also valid and also gives 5.5.
Scoring: 1000*(Known_Best_Possibles - sum(songList(indexList))
Initial Leader: Cases [2 3 4 6 8 11] have best possible scores of [44.9990 44.9971 44.8 44.6 44.584024853.. 44.25]
Final Score of 1 achieved in < 6 Cody seconds for entry 10.
Final Score of 0, optimal, achieved using recursive searches with iter limits and thresholds.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers6
Suggested Problems
-
Which values occur exactly three times?
5239 Solvers
-
307 Solvers
-
The Hitchhiker's Guide to MATLAB
3406 Solvers
-
Maintain shape of logical-index mask
72 Solvers
-
Sum of diagonal of a square matrix
1637 Solvers
More from this Author308
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
so bintprog is not allowed by cody?
Cody appears to have an access issue with bintprog, Optimization Toolbox.