Skip to main content
. 2016 Jun 2;16(6):810. doi: 10.3390/s16060810
Algorithm 1 Least cost path recommendation algorithm.
INPUT: G={C,L}, Ci
OUTPUT: The next node Cnext to visit
Initialize: O –> current location = Ci, O–>request = 1, min, next hop Cnext=
Repeat
for all Cj neighbor tables of Ci do
  Calculate: fij
  if fij<min then
   min=fij
   update: Cnext=Cj
  end if
end for
return Cnext