Research Article

Holistic User Context-Aware Recommender Algorithm

Algorithm 5

isActive.
(1)isActive
(2)INPUT: u (profile of user)
(3)    i (item or set of items)
(4)OUTPUT: bool (True or False)
(5)Begin
(6)   isActive ⟵ False
(7)   ACTIONS ⟵ {click, search, rate, bought}
(8)   A ⟵ {x: x is recent action on i by u AND x ∈ ACTIONS}
(9)   if (A ≠ ∅)):
(10)   isActive ⟵ True
(11)   return isActive
(12)End