Skip to main content
. 2022 Jul 7;22(14):5119. doi: 10.3390/s22145119
Algorithm 4: Check Successor
function:FindSuccessor
input:ID
output:successor
procedure:
if ID∈ (v, successor)then
  return successor
else
  for i = vo to 1do
   if name[i]∈ (v, ID) then
    returnAlgorithm 4← name[i]
   returnAlgorithm 4← v