Hi, > If i compare record 20 to record 1030 and find them to be comparable and > decide to calculate the distance between them, then why should i recompare > record 1030 to 20 when the time comes in the loop?
Correct theres no need to. > So if I stored the distance in a huge 38k x 38k array(or > vector), and the first thing I check is if a distance has been recorded in > this array No need to do that. All you need to do is alter the loop as I suggested and then when you update the array for i also update the array for j as well. > Do you think it is worth trying this scenario? Well up to you but it will half the time it takes to run so yes. Thanks, Justin
