A computer stores files on its disk. File occupies units of space, and its compressed version occupies units, where .
To compress a file, the computer first writes its compressed version into free space on the same disk. Only after the compressed version has been written completely does it delete the original file. Thus, the disk must have at least units of free space before file can be compressed.
You may compress the files in any order, one at a time.
Find the minimum amount of free disk space needed initially to compress all the files.