| Algorithm 1: Two-Round Relay Selection (2-RRS) Scheme Algorithm. |
| Input: Define N number of relay, ; |
| while S transmit to N Relays |
| Update ; |
| First Round Selection |
| for |
| Initialize ; |
| while |
| update the group ; |
| There are M relay successfully decode S information, ; |
| end while |
| end for |
| Second Round Selection: |
| if then |
| Find the best relay maximizing ; |
| end if |
| end while |