Research Article

HPM: A Hybrid Model for User’s Behavior Prediction Based on N-Gram Parsing and Access Logs

Algorithm 6

Matcher.
Input: user’s query (UQ), weighted logs (WL)
Output: prioritized URLs List (PUL)
Begin
(1) PUL = Ø
(2) Read UQ;
(3) T ← Parser (UQ);
(4) For each URL in WL do
(5)//weight of URL u
(6) For each term do
(7)
(8) EndFor
(9) EndFor
(10) If
(11)
(12) Sort elements of PUL;
(13) Return PUL;
End
In the next section, an example concerning the above-proposed work is presented.