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(3): My algorithm by SilverKnight)
Brian - source code on it's way... not that it gives any insight into the solution - it only knows the answer, but doesn't understand it.
Roulette wheel sampling? Perhaps you'd like to explain this SilverKnight lol - I've been typing and deleting over and over trying to explain it properly and failing time and again... All I can say is that an imaginary roulette wheel is divided into slices proportionate to the fitness score of each gene, and the wheel is spun (at random), and wherever the ball lands, that's your gene! I'm sure there must be a clever wordy way to say that but it's all I can think of lol
Peace,
Rawlyn.
|
Posted by Rawlyn
on 2004-02-05 20:03:32 |