M
Morten Snedker
This hasn't to do with coding in particular, but since it is done in
vb.net this is where I'll try to find inspiration.
If I'm in the wrong group please re-direct me.
1,2,3,4,3,3,2,3,4,5,6,6,8,3,8,5,3 etc.
One number occuring more than once. Usually the amount of different
numbers are around 5, but it may vary.
Now for what makes my grey cells spin:
The numbers should be sorted by these prioritized rules:
1. A number in the sequence may not have same value as the previous.
1231 is good. (1 doesn't follow 1)
2113 is not good. (1 follows 1)
2. The spread between two numbers should as big as possible.
12341 is good (widest possible spread for 1)
12134 is okay according to rule 1, but the spread could be better.
Any thougts as how to handle the problem is greatly appreciated. If
any of you know of som .Net mathematical routines that might be of
help, naturally I'd love to hear of them.
Regards /Snedker
vb.net this is where I'll try to find inspiration.
If I'm in the wrong group please re-direct me.
1,2,3,4,3,3,2,3,4,5,6,6,8,3,8,5,3 etc.
One number occuring more than once. Usually the amount of different
numbers are around 5, but it may vary.
Now for what makes my grey cells spin:
The numbers should be sorted by these prioritized rules:
1. A number in the sequence may not have same value as the previous.
1231 is good. (1 doesn't follow 1)
2113 is not good. (1 follows 1)
2. The spread between two numbers should as big as possible.
12341 is good (widest possible spread for 1)
12134 is okay according to rule 1, but the spread could be better.
Any thougts as how to handle the problem is greatly appreciated. If
any of you know of som .Net mathematical routines that might be of
help, naturally I'd love to hear of them.
Regards /Snedker
