is there any ranking algorithm by which i can find top 10 most visited sites from the database since daatbase will have same site name repeated many times
ranking the sites
Collapse
X
-
You could use a priority_queue. This data structure is a sorted linked list whose next() operation always returns the maximum value.
The hit-count could be your key and could be associated with a URL. -
Heya, smitanaik.
The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. You have not asked a question. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.
Please read the Posting Guidelines and particularly the Coursework Posting Guidlines.
Then when you are ready post a new question in this thread.
MODERATORComment
Comment