I have to implement a breadth-first web crawler. I have to stop the search based on the level which will be given by user. Not sure how to implement this logic? Please advice if you have any thoughts on this.
You would do well to write down the algorithm in simple words on paper. The pseudo-code method. Also draw a picture of a tree, and go over it with a pencil showing the order you are visiting the nodes.
Joined: Oct 23, 2006
I am doing it now. But somehow I am not able to catch the logic.
Joined: Oct 13, 2005
This is what I found on Google: 123. And lots more.