Which Data Structure?
For each of the following problems, determine the data structure that you would use to solve the problem in the most efficient way possible. You should use the simplest data structure(s) that allows you to attain that efficiency.
a. You are writing a browser program for the Web, and your browser must remember all the sites that a user has visited for proper implementation of “back” and “forward” buttons.
b. You are writing a web crawling program that, given a site, finds all the sites to which it links, then find all the sites to which those sites link, and so on, up to 10 levels. Your program lists all the sites and corresponding levels.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.