Stupid question. Can I "slice or destroy" $distance[$u-1][$s-1] after the last (-1) if($distance[$u][$s] < $minDistance) The only thing I like to find is what $weight[$dim][$s] is closest to $input[$dim][$u]. I don't need this 2x-array anymore. BTW, the 600 seconds work for a small $S. With $S=100000 the process will be destroyed. :(
Comment on Re^2: for-loop issue - swap gets crazy large