LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-31-2005, 12:23 AM   #1
Dommy
Member
 
Registered: Jul 2004
Location: Canberra
Distribution: Mint 7
Posts: 204

Rep: Reputation: 30
Question Software to pack files on CD


I am after a program , or an article describing how to write a program, that will maximise the number of variable size files I can fit on a CD as follows:

From a list of 200+ files all of varying lengths choose a set of files that will leave the least amount of wasted space on a CD. Then repeat the process with the left over files untill all are used.
Then to add a slight complication , make the space available on CD a variable as well.
 
Old 01-31-2005, 10:18 AM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
Instead of doing all those calculations you might be better off just tar'ring the files you want to back up into one file, then compress that file if you'd like, then split the file into 700MB chunks for storing on CD.

The downside is that you'd need to restore all of the CDs to recreate the original file, but it's a whole lot simpler from a programming stand point.
 
Old 01-31-2005, 05:38 PM   #3
Dommy
Member
 
Registered: Jul 2004
Location: Canberra
Distribution: Mint 7
Posts: 204

Original Poster
Rep: Reputation: 30
Forgot to mention in my original post that file compression is out. The files must be stored in their original state.
I'm thinking that the solution is similar to that of the "Towers of Hanoi" puzzle.

Thanks Itsme86 for the suggestion.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Download vs Power Pack zubir Mandriva 5 07-11-2007 12:35 AM
software for encrypting files? mifan Linux - Security 8 08-13-2005 09:13 AM
Does anyone have the expansion pack for 5.2? solid7 AIX 14 04-26-2005 12:18 PM
Mandrake 10.0 Prerequisites pack? NoBonus Mandriva 2 06-29-2004 01:25 PM
which service pack is installed? mbhenry Linux - Software 0 11-26-2003 11:55 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration