Research Article

Energy Balanced Source Location Privacy Scheme Using Multibranch Path in WSNs for IoT

Algorithm 3: Scheme (Node , Hop )

Input:
: the intermedium node;
: the length of ;
Output:
 The routing path of ;
1: Initiation: ;
2: while receive message do
3:  Build the candidate set;
4:  The candidate set delete RW and node;
5:  Select the node with the most energy from the candidate set as the Next_hop;
6:  ;
7:  if
8:   return;
9:  end if
10: end while
Algorithm 3: Scheme (Node , Hop )