Algorithm 2 (GG-PPA)

Step 1. Select, , and put.

Step 2. If, then stop; otherwise, go to Step 3.

Step 3. Put, and if, choose such that and

Step 4. Set.

Step 5. Replace k by and go to Step 2.