Research Article
Energy Balanced Source Location Privacy Scheme Using Multibranch Path in WSNs for IoT
Algorithm 2: MHR Scheme (Node )
| Input: | | The sink node; | | : the intermedium node; | | Output: | | The routing path of MHR phases; | | The branch path; | | 1: Initiation: ; | | 2: Get visible area angle (,); | | 3: Get RW angle (); | | 4: range of ; | | 5: while!=sink node do | | 6: Built the candidate set; the candidate set delete RW node; | | 7: Select the node with the most energy in candidate set and node not in angle as the next hop; | | 8: if== | | 9: Bran0 (, hop); | | 10: else | | 11: Generates a random number (Ran) that is uniformly distributed between 0 and 1; | | 12: if Ran< | | 13: Bran(, hop); | | 14: end if | | 15: end if | | 16: the next-hop node as current node ; | | 17: end while |
|
Algorithm 2: MHR Scheme (Node ) |