Research Article
Cyber-Physical-Social Model for Service Recommendation in the Internet of Things
Algorithm 1
Entity-agent mapping algorithm.
| inputCtx; | | outputentity-agent mapping result; | (1) | Extract identities of entities from context | | Etyi.Identity ←Ctxi | (2) | Repeat i from 1 to n | (3) | Repeat j from 1 to m | | IF Simz(Ety i, Aj) = 1; | | Visit WordNet Semantic tree: Simw(Ety i, Aj); | | Else Continue; | | IF Simw(Ety i, Aj) = 1; | | Return (Ety i, Aj); Break; | | Else Continue; | (4) | End | | Return False; | (5) | End |
|