Skip to main content
. 2019 Dec 12;19(24):5486. doi: 10.3390/s19245486
Algorithm 1: EDADA-RPL parent selection
Input: DIO, DAO, DAO-ACK, DIO_RER
Output: Optimal Parent
1:For preferred_ParentNodeparentNode-list do
2: compute RER
  RER(Ni)=EInitialEDepletedEInitial
3:compute the Rank(N)
       Rank(x)=Rank(parentNode(x))+Rank_Increase_Value
4:Calculate the Rank_Increase_Value
Rank_Increase_value=RER+MinHop_RankIncrease
5:IfBest_ParentNode>= Preferred_ParentNodeThen
Best_ParentNode=Preferred_ParentNode
6:End
7:Whilepreferred_ParentNode==Best_ParentNodedo
SourceNode=Preferred_ParentNode
8:End
9:End
10:Return Optimal Parent