if (fnc <= fpop[best]) best = i; // update best [/cpp] it gave compilation error.the final result is not deterministic! and I cannot understand why. I attached the algorthm.cpp file I have some other questions to Jim S. not concerning this algorithm but more general ones....