Skip to main content
. 2019 Nov 5;19(21):4821. doi: 10.3390/s19214821
Algorithm 1 Proposed opportunistic cooperative routing scheme
  • 1:

    Initiate S0=Vs,V1=Vs,T=S0, get R by (9).

  • 2:

    n←0. The source Vs broadcasts the packet X.

  • 3:

    whileVd fails in receiving X do

  • 4:

     n←n+1;

  • 5:

     Update Sn as the set of nodes that have received X;

  • 6:

     Update Vn,Tn and Rn by (7),(8) and (9);

  • 7:

     Vn organizes the nodes in Tn to transmit X to Rn with cooperative beamforming.

  • 8:

    end while