Algorithm 1 (GPPA)
Step 1. Select, and put.
Step 2. If, then stop; otherwise, go to Step 3.
Step 3. Put, and if, choose such that.
Step 4. Set.
Step 5. Replace k by and go to Step 2.