proofreading

This commit is contained in:
Andriy Kashcha 2017-09-10 16:27:48 -07:00
parent 1d46fb2d1d
commit 0ce6681436

View File

@ -82,7 +82,7 @@ graph.addLink('Philadelphia', 'Washington');
![guided](https://raw.githubusercontent.com/anvaka/ngraph.path/master/docs/guided.png)
When we build shortest path here, from NYC to Washington, we want to tell the pathfinder
When we build the shortest path from NYC to Washington, we want to tell the pathfinder
that it should prefer Philadelphia over Boston.
``` js
@ -108,10 +108,10 @@ var pathFinder = aStar(graph, {
let path = pathFinder.find('NYC', 'Washington');
```
With this simple heuristic our path-finding algorithm becomes smarter and converges significantly faster.
With this simple heuristic our algorithm becomes smarter and faster.
It is very important that our heuristic function does not overestimate actual between two nodes. If it does
so, then algorithm cannot guarantee the shortest path.
It is very important that our heuristic function does not overestimate actual distance
between two nodes. If it does so, then algorithm cannot guarantee the shortest path.
TODO: expand on this section