|
I've seen the discussions about calculating cost for the programming exercise and I just realized something. If the start and goal cell have the same value then you can use either of two predominant methods with the same result. Imagine a very simple road: [20, 20]. If I move forward (to the goal) and then count the cost of the cell I arrive at I get 1/20. If I count the cost of the cell I'm in (start cell) and then move forward to the goal I get a cost of 1/20 too. In one case I ignore the cost of the start cell and in the other I ignore the cost of the goal cell. Longer paths will simply add cells in the middle for both methods. Likewise lane change costs will be the same for either method. Since the start and goal costs are the same for all of our test cases either method will give the same result. |