Each time a visitor requests a page from a web site “xxx.com”, the web server writes a log entry recording the visitor's identity and the kind of page requested. Entries are written in chronological order to a plain-text file, with one entry per line.
The format of each entry is:
user-id page-type-id
User IDs are arbitrary strings that uniquely represent a given user; if a user visits multiple pages, each log entry will have the same user ID. Page types Ids are arbitrary strings that uniquely represent a given kind of page on our site, such as the homepage, a product detail pages, or the shopping cart. Tons of users visit the website, but there are only a few dozen types of pages. These weblogs are used to answer questions about user behavior. One interesting question is: what is the most common three page sequence through the site? E.g., if the most common pattern is to buy items advertised on the homepage of the site, then the most common three page sequence could be "Homepage -> ProductDetailPage -> Shopping Cart". However, if customers spend a lot of time browsing the “Customers who bought this item also bought” features, then the most common three page sequence as
"ProductDetailPage -> ProductDetailPage -> ProductDetailPage".
Write a Java program to read the sample log file and find the most common three page sequence for the given user.( program)
Answers
Answered by
0
Answer:
Indian youtuber here, lSubscribe Cherry Blossom I youtube i you are not getting this channel search - Cherry Blossom Shout Out people who are not getting plz search - Cherry Blossom Shout outs there u will get 1 video touch there and subscribe people who have subscribed sent the pic
Similar questions
Math,
2 months ago
Environmental Sciences,
2 months ago
English,
2 months ago
Science,
4 months ago
Environmental Sciences,
4 months ago
Science,
10 months ago
English,
10 months ago