Anonymous user
A* search algorithm: Difference between revisions
m
→{{header|Java}}
Line 1,963:
* @return : cost from current node to goal. use Manhattan distance.
*/
public int calculateCost(
int rState = this.getR();
int rGoal = goal.getR();
Line 1,979:
}
public void setFather(
this.father = node;
}
return
}
public void
}
|