|
Algorithm 1 Pseudocode for the bifurcation decision process at an intermediate node i
|
-
1:
Input: ← required packet delivery ratio, ← the number of neighbors
-
2:
Output: n ← the number of paths(default = 1)
-
3:
-
4:
▹ link reliability by opportunistic routing
-
5:
= ▹ expected hop-count from itself to the destination
-
6:
= ▹ expected packet delivery ratio
-
7:
-
8:
ifthen ▹ bifurcation do not require
-
9:
return n
-
10:
end if
-
11:
-
12:
whiledo ▹ bifurcation required
-
13:
n = n+1
-
14:
= ▹ when n of nodes is selected by opportunistic routing
-
15:
end while
-
16:
-
17:
return n
|