Research Article
Shortest Paths Based Web Service Selection in Internet of Things
Algorithm 2
Expanding a nearest neighbor.
DijkstraMapper : | (1) for all in do | (2) if then | (3) emit; | (4) end if | (5) end for; | DijkstraReducer (output of DijkstraMapper): | (6) let ; | (7) for all do | (8) //find a nearest neighbour not in ; | (9) if then | (10) ; | (11) end if | (12) end for; | (13) return |
|