|
Algorithm 1 Node reliability-aware backup survivable embedding algorithm (NCS). |
Input: physical WSN ; VSNR
Output: The node mapping results set
Initialization: Candidate node set , node mapping results set
for in VSNR do
if
then
Add to
end if
ifthen
return Node embedding failed
else
for each in Ns do
if
and
then
Calculate through Equation (19)
end if
end for
Choose with the highest
Add to
end if
end for
return Node embedding successfully
|