To avoid an exhaustive search, we use the following heuristic, adopted from Stede (1999): In order to find the globally preferred sentence plan, make the most preferred local choices.
whenever a (local) decision is made between several options, choose the option with the highest score.