When there are multiple paths of the same length but one is cheaper than the other, the algorithm does not return the cheapest path. Why is this? I have tried modifying the cost function from the example, but that has not seemed to work. Thanks.
When there are multiple paths of the same length but one is cheaper than the other, the algorithm does not return the cheapest path.
Why is this? I have tried modifying the cost function from the example, but that has not seemed to work.
Thanks.