Most Frequent 3 page sequence in a weblog

Posted by Sundararajan S on Stack Overflow See other posts from Stack Overflow or by Sundararajan S
Published on 2010-06-07T16:54:46Z Indexed on 2010/06/07 17:02 UTC
Read the original article Hit count: 279

Filed under:

Given a web log which consists of fields 'User ' 'Page url'. We have to find out the most frequent 3-page sequence that users takes.

There is a time stamp. and it is not guaranteed that the single user access will be logged sequentially it could be like user1 Page1 user2 Pagex user1 Page2 User10 Pagex user1 Page 3 her User1s page sequence is page1-> page2-> page 3

© Stack Overflow or respective owner

Related posts about algorithm