Discussion Board
Go to the previous messageThere are no next messages
Current Forum: Homework 5 - Parts 1 and 2
Date: Tue Nov 20 2001 6:16 pm
Author: Patnaik, Rohit <rpatnaik@andrew.cmu.edu>
Subject: Re: Comparing

The way I did it was to keep a list of seen links in a vector and everytime I dequeued something, I searched the vector to see if it was in the vector and if it was not then I added it to the vector.

Even though this is O(N^2)m since we're only crawling 100 pages I think it's acceptable. Another way to do this I guess would be to use a binary tree, I'm not sure if that works though, because links with different names may point to the same web page. In which case we end up double counting.
Post response

Go to the previous messageThere are no next messages
Current Thread Detail:
Comparing      Robinson, Idris      Sun Nov 18 2001 3:55 pm       
Re: Comparing      Patnaik, Rohit      Tue Nov 20 2001 6:16 pm       

Back to previous screen