In the 4x4 grid below, 32 consecutive two digit numbers (45 to 76) have been packed in it.
1 3 5 9
2 5 4 8
0 7 6 2
1 6 3 9
*****
The challenge: Pack as many consecutive 3 digit numbers as possible into a 9x9 grid. The numbers may be read from any direction. No leading zeros.
(In reply to
re: My algorithm by SilverKnight)
The higher the fitness score of the gene, the more chance it has of spreading its own attributes amongst the population. It doesn't nescessarily give the offspring a good chance of improving, in fact, most new genes are little or no improvement - and quite often worse than their parents. However, once a strong gene is in the population, it stands a good chance of survival and reproduction, so it will quickly "take over" the population. Any improvement from there will also have the same effect. Just like genetics - survival of the fittest.
Was that what you meant? Or did you want me to give a general explanation of roulette wheel sampling?
Peace,
Rawlyn.
|
Posted by Rawlyn
on 2004-02-04 20:08:21 |