Maths question on using the minimum amount of DVD disc

  • Thread starter Thread starter kenny1999
  • Start date Start date
  • Tags Tags
    Disc Minimum
kenny1999
Messages
235
Reaction score
5
this is a practical question

I have 14 files to burn on a single layer DVD5 disc in which each of them has a size approximately 4.37GB

Those 14 files are of the size (in GB)

2.25
2.25
1.15
3.05
1.16
2.40
0.65
2.05
1.36
1.97
1.11
1.14
2.48
2.65

All values are in GB

If I want to burn these 14 files into minimum number of DVD discs for environmental and economic purposes, how should these files be arranged? I think at least a few discs could be saved if the files are arranged correctly, and I want to learn the concept. thanks
 
Mathematics news on Phys.org
Basically you want to pack each disk as much as possible. You could figure it out like this. Start with your largest file and burn it on a disk. Then you'll have 4.37-3.05=1.32 space. There is not enough room for the two smallest files to fit on that disk, so just put the largest file on their with less than 1.32. In other words, the 1.16. So your first disk is
(3.05, 1.16).
Cross those off your list and continue this process. Next step you load
(2.65, 1.36), so cross those off the list.
Then you load 2.48 and notice you have 1.89 space left. Your largest available file is 1.15 which leaves you enough room to squeeze on the .65, so you got
(2.48, 1.15, .65)
Next
(2.40, 1.97) an exact fillup. Hopefully that one actually fits :)
You could probably figure out the last five.

Now you only have 7 left...
 
Vargo said:
Basically you want to pack each disk as much as possible. You could figure it out like this. Start with your largest file and burn it on a disk. Then you'll have 4.37-3.05=1.32 space. There is not enough room for the two smallest files to fit on that disk, so just put the largest file on their with less than 1.32. In other words, the 1.16. So your first disk is
(3.05, 1.16).
Cross those off your list and continue this process. Next step you load
(2.65, 1.36), so cross those off the list.
Then you load 2.48 and notice you have 1.89 space left. Your largest available file is 1.15 which leaves you enough room to squeeze on the .65, so you got
(2.48, 1.15, .65)
Next
(2.40, 1.97) an exact fillup. Hopefully that one actually fits :)
You could probably figure out the last five.

Now you only have 7 left...

Thanks i ll try
 
Several of the files are bigger than half the size of the DVD.

You con't fit two of those files onto the same DVD, so that gives you the minimum possible number of disks.

You then need to check that you can actually fit all the files onto that many disks.
 
Your task is what's called the bin packing problem. For such a small number of files, any brute force approach probably will be satisfactory. Another possibility: If you don't need to store the files in their native format, most compression programs will allow you to split the files across multiple discs. That feature allows you to fill up each disc before going to the next one.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...

Similar threads

Replies
4
Views
3K
Back
Top