Research Article

Holistic User Context-Aware Recommender Algorithm

Algorithm 7

Apriori.
(1)Apriori
(2)INPUT: M (set of profiles similar to profile u)
(3)    Im (set of sets of items actioned by M)
(4)    u (profile of user)
(5)OUTPUT: F (set of items frequently actioned by M)
(6)Begin
(7)   k ⟵ 0.25;(support threshold)
(8)   Im ⟵ {X: X ∈ I AND isActive(M, X) ∀ X}
(9)   FrequentSets ⟵ {X: Support (X, |Im|)>=k, XIm}
(10)   F ⟵ {i: i ∈ X, X ∈ FrequentSets,∀X}
(11)   return F
(12)End