@@ -428,7 +428,7 @@ way we could for 2 + 2. Instead, we have to keep creating potential
428428solutions until we find one that works.
429429
430430The number of possible routes through a graph is infinite. But
431- when searching for a route from _ A_ to _ B_ , we are only interested in
431+ when searching for a route from _ A_ to _ B_ , we are interested only in
432432the ones that start at _ A_ . We also don't care about routes that visit
433433the same place twice—those are definitely not the most efficient route
434434anywhere. So that cuts down on the amount of routes that the route
@@ -438,7 +438,7 @@ In fact, we are mostly interested in the _shortest_ route. So we want
438438to make sure we look at short routes before we look at longer ones. A
439439good approach would be to "grow" routes from the starting point,
440440exploring every reachable place that hasn't been visited yet, until a
441- route reaches the goal. That way, we'll only explore routes that are
441+ route reaches the goal. That way, we'll explore only routes that are
442442potentially interesting, and find the shortest route (or one of the
443443shortest routes, if there are more than one) to the goal.
444444
605605
606606{{index "robot efficiency (exercise)"}}
607607
608- The main limitation of ` goalOrientedRobot ` is that it only considers
608+ The main limitation of ` goalOrientedRobot ` is that it considers only
609609one parcel at a time. It will often walk back and forth across the
610610village because the parcel it happens to be looking at happens to be
611611at the other side of the map, even if there are others much closer.
@@ -646,7 +646,7 @@ value.
646646
647647{{index singleton}}
648648
649- Why do you only need one ` PGroup.empty ` value, rather than having a
649+ Why do you need only one ` PGroup.empty ` value, rather than having a
650650function that creates a new, empty map every time?
651651
652652{{if interactive
@@ -693,7 +693,7 @@ To add a property (`empty`) to a constructor that is not a method, you
693693have to add it to the constructor after the class definition, as a
694694regular property.
695695
696- You only need one ` empty ` instance because all empty groups are the
696+ You need only one ` empty ` instance because all empty groups are the
697697same and instances of the class don't change. You can create many
698698different groups from that single empty group without affecting it.
699699
0 commit comments