}
uint convertSize(uint cost) {
- cost = 1.2 * cost;// fudge factor
+ cost = FUDGEFACTOR * cost;// fudge factor
return NEXTPOW2(cost);
}
totalCost = (newSize - leftSize) * leftGraph->numElements +
(newSize - rightSize) * rightGraph->numElements;
}
- double conversionfactor = 0.5;
- if ((totalCost * conversionfactor) < eeValue) {
+
+ if ((totalCost * CONVERSIONFACTOR) < eeValue) {
//add the edge
mergeNodes(left, right);
}