concept each truck in category algorithms
appears as: each truck

This is an excerpt from Manning's book Algorithms and Data Structures in Action.
There are, however, a few differences. First, while in listing 17.3 we implement an ensemble method, where with some probability one of the transitions will be applied, in genetic algorithms, instead, this ensemble mechanism is already implicit for mutations, and thus we have to provide each mutation (aka local search) method separately.