|
-
August 4th, 2011, 04:09 PM
#2
Re: List combination algorithm
You can represent the pairs in a table like this.
Code:
1 2 3 4
1 x x x
2 x x
3 x
4
For example the upper left x represents the 1,2 pair.
Now the problems is to visit the x in a sequence that obeys the non-repetition rule. For example you did it like this,
Code:
1 2 3 4
1 1 5 4
2 2 6
3 3
4
I claim (without proof) that there's a systematic visiting order that always obeys the rule. This is when you move diagonally back and forth along ever smaller diagonals like (I put in an extra number to make the system more visible),
Code:
1 2 3 4 5
1 1 7 8 10
2 2 6 9
3 3 5
4 4
5
And this is the corresponding list,
1,2
2,3
3,4
4,5
3,5
2,4
1,3
1.4
2,5
1,5
Last edited by nuzzle; August 5th, 2011 at 07:16 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|