Skip to main content

Table 2 Data transmission of EBR

From: Improved energy-balanced algorithm for underwater wireless sensor network based on depth threshold and energy level partition

  Data transmission: Relay Selection based on Energy Level
1: if EL j>=ELi then
2: continue
3: else
4: ELNoticePacketSend(j, i)
5: NeighborFinding (i)
6: LinkBuild.sourceID = j
7: for neighborID k=1:m do
8: if EL k>= EL i then
9: node k be new relay node
10: LinkBuild.soureID = k
11: end if
12: end for
13: end if