nice compsci homework question! quick google on 'generating combinations' http://www.google.com/search?q=generating+combinations&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official yields all kinds of nifty stuff. http://www.thescripts.com/forum/thread161838.html looks like a promising algorithm. ....wish I had time to jump on this, but alas the day end draws near!
DK On 11/27/06, Ian Skinner <[EMAIL PROTECTED]> wrote: > > Say I have the following values: A,B,C > How could I programically create the following list in this order? > ACC,ABC,AAC,BAC,CAC,CAB,CAA,CBA,CCA,BCA,ACA,BCA > > Or the same thing with the numbers 0,8,16: > 16 0 0,16 8 0,16 16 0,8 16 0,0 16 0,0 16 8,0 16 16,0 8 16,0 0 16,8 0 16,16 > 0 16,16 0 8 > > > Now do the same thing, but with any number of values between 1 and 16. > IE. AB(0 16), ABC(0 8 16), ABCDE(0,4,8,12,16) > > > I don't even have a clue on how to start. > > > -------------- > Ian Skinner > Web Programmer > BloodSource > www.BloodSource.org > Sacramento, CA > > --------- > | 1 | | > --------- Binary Soduko > | | | > --------- > > "C code. C code run. Run code run. Please!" > - Cynthia Dunning > > Confidentiality Notice: This message including any > attachments is for the sole use of the intended > recipient(s) and may contain confidential and privileged > information. Any unauthorized review, use, disclosure or > distribution is prohibited. If you are not the > intended recipient, please contact the sender and > delete any copies of this message. > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261785 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

