in reply to Re: Puzzle: need a more general algorithmin thread Puzzle: need a more general algorithm
By the way, $columns = 2 gives:
best result: 0 3 4 1 5 2 [download]
$columns = 4 gives:
best result: 0 1 2 3 4 5 [download]