The patterns is the same. The columns are changing in harmonic motion (so to speak). The other difference bewteen the two sets is that the first one starts C A A and the second one starts A C C. Once the first line is established, the patterns follows in a harmonic motion. The patterns seems to start with the second column. It counds UP or DOWN in the list until it cannot go any further. Then the NEXT column to the left starts to change (while the rest of the columns stay the same). It moves UP or DOWN (whatever direciton is OPPOSITE the dirction of the first active column) until it can no longer change (Max n-1 rows). Then the active column moves to the left once (or wraps to the last column) and repeats.
I don't think the first row is important. I think the first row just dictates where in the pattern it starts. Take a look at the number example: 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 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 16 0 0 16 8 0 16 16 0 8 16 0 0 16 0 I have replaces the CHANGING columns with "X" and the staying the same columns with ".". - - - .. x . .. x . x . . x . . .. . x .. . x .. x . .. x . x . . x . . .. . x .. . x .. x . .. x . x . . x . . .. . x .. . x .. x . .. x . x . . x . . .. . x .. . x .. x . .. x . x . . x . . Notice the "Active" column keeps moving left then wraps. I can't quite figure out the patterns, but that is basically what is going on. Not sure how a FOURTH column would fit into it, but I am guessing the "active" patterns would be: .. x . . .. x . . .. x . . x . . . x . . . x . . . .. . . x .. . . x .. . . x .. . x . .. . x . .. . x . .. x . . .. x . . .. x . . x . . . x . . . x . . . .. . . x .. . . x .. . . x .. . x . .. . x . .. . x . .. x . . .. x . . .. x . . x . . . x . . . I bet that the number of times the "active" column changes is always N-1 before it switches. Can anyone take it from here???? Anyone see the pattern? It looks harmonic to me, but there are patterns that CANNOT happen then, so I am not sure how to determine the first row. ...................... Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -----Original Message----- From: Josh Nathanson [mailto:[EMAIL PROTECTED] Sent: Monday, November 27, 2006 5:41 PM To: CF-Talk Subject: Re: Challenging Loop problem. Wait a minute, even the different lists Ian gave as examples in the original post don't match up --- In the letters one, the third to last and the last letter groups are both "BCA". But in the numbers one, the third to last is "8 0 16" while the last is "16 0 8". So something is amiss in one or the other of those lists. I agree this will be very tough as there is little apparent pattern in the lists. I am curious as to why you need to do this? -- Josh ----- Original Message ----- From: "Bobby Hartsfield" <[EMAIL PROTECTED]> To: "CF-Talk" <[email protected]> Sent: Monday, November 27, 2006 2:20 PM Subject: RE: Challenging Loop problem. >I should have paid a little more attention. I didn't see the order > requirement. I see no rhyme or reason to the order of what you want to > generate though. Is there any? > > What I posted would generate something closer to... > > AAA, AAB, AAC, ABA, ABB, ABC, etc... > > ..:.:.:.:.:.:.:.:.:.:.:. > Bobby Hartsfield > http://acoderslife.com > > > > -----Original Message----- > From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] > Sent: Monday, November 27, 2006 5:09 PM > To: CF-Talk > Subject: RE: Challenging Loop problem. > > <cfset thelist = "a,b,c" /> > <cfoutput> > <cfloop list="#thelist#" index="a"> > <cfloop list="#thelist#" index="b"> > <cfloop list="#thelist#" index="c"> > #a##b##c# > </cfloop> > </cfloop> > </cfloop> > </cfoutput> > > > ...:.:.:.:.:.:.:.:.:.:.:. > Bobby Hartsfield > http://acoderslife.com > > > > > > -----Original Message----- > From: Ian Skinner [mailto:[EMAIL PROTECTED] > Sent: Monday, November 27, 2006 4:34 PM > To: CF-Talk > Subject: Challenging Loop problem. > > 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:261794 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

