class TSPRowSolver extends MyObject
implements Runnable{
// other declarations and constructor
public void run(){
// initialization
totMat.setVal(myRow, col,
costMat.val(myRow, col));
for(col = col - 1; col >= 0; col--){
bar1.check(); // includes all rows
// computation
}
bar2.check(); // includes all rows and main
} }
Previous slide | Next slide | Back to first slide | View graphic version |