Figure 2. Pseudocode for a candidate generation (augmentation) subroutine