Question: Bob has n computer files which he needs to save on to his K hard disks. The files have sizes s 1 , s 2
Bob has n computer files which he needs to save on to his K hard disks. The files have sizes
s s sn and the hard disks have identical size T Bob wants to know whether there is a way
to put all files into hard disks without cutting any file into pieces.
pts Finding the minimum Kopt such that all files can be saved on to Kopt many hard disks
is NPcomplete you dont have to prove it So Bob wants to find an efficient approximation
algorithm for it Help Bob come up with an efficient approximation algorithm for this
problem, and prove its correctness and running time.
Optional Prove that for any there is no polynomialtime algorithm that gives a
approximation unless P NP
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
