7/28
Part 2 of 6 · Breadth firstLearn and do

Mark a URL when you find it, not when you fetch it

One line in that loop decides how often a page gets fetched: the moment you mark it as seen. Take the 41-page site: the home page links p0 to p39, and each p links to the next one.

Predict

Mark each URL when you fetch it instead of when you find it. On the 41-page site, with one worker, how many fetches?

Pick an answer above to see the rest