Research Article
MMW-NOMA: An Uplink NOMA Communication System Based on the Node Pairing Algorithm of Maximum and Minimum Weight in Underwater Acoustic Networks
Algorithm 2
The node replacement algorithm.
1: Procedure() | 2: Input: τ //input the channel correlation threshold | 3: For(i =0; i <20; i++) | 4: { | 5: For(j =20; j >0; j--) | 6: { | 7: //count for the channel correlation | 8: //count for the channel gain difference set | 9: } | 10: If(){ | 11: //replace FENj with node x | 12: | //modify channel gain difference | 13: } | 14: Else | 15: { | 16: //keep the initial node pair | 17: } | 18: Output:; | 19: } | 18: End procedure |
|