Commit 4c940483 authored by Colby Green's avatar Colby Green
Browse files

double

parent 79ed2636
......@@ -112,7 +112,7 @@ public:
// Hit a leaf node, without getting pruned off by promising... if it is better than the best path so far, update the best path so far
if (path.size() == permLength) {
// update best path distance if necessary
int temp = distanceMatrix[path[path.size() - 1]][0];
double temp = distanceMatrix[path[path.size() - 1]][0];
if (temp == 0){
temp = pokeDistance(path[path.size() - 1], 0);
distanceMatrix[path[path.size() - 1]][0] = temp;
......@@ -130,7 +130,7 @@ public:
for (size_t i = permLength; i < path.size(); ++i) {
swap(path[permLength], path[i]);
// add to current path length
int temp = distanceMatrix[path[permLength - 1]][path[permLength]];
double temp = distanceMatrix[path[permLength - 1]][path[permLength]];
if (temp == 0){
temp = pokeDistance(path[permLength - 1], path[permLength]);
distanceMatrix[path[permLength - 1]][path[permLength]] = temp;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment