Write a Scheme program to reverse a web link graph so that for each web site considered, we know those web sites that contain links to it, Use a list to represent the given web link graph where each of its element contains all the links of a same host. For example, [a, b, c] means that from a, we have a link to b and a link to c. Represent the reversed web link graph in a similar way. For example, [a, b, c] means that {b, c} is the set of web sites that contain links to a. If the input is [[a, b, c], [b, c, e], [c, b, a]], for example, your Scheme program should produce this list: [[a, c], [b, a, c], [c, a, b], [e, b]]

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter10: Application Development
Section: Chapter Questions
Problem 11RQ
icon
Related questions
icon
Concept explainers
Question

Write a Scheme program to reverse a web link graph so that for each web site considered, we know those web sites that contain links to it, Use a list to represent the given web link graph where each of its element contains all the links of a same host. For example, [a, b, c] means that from a, we have a link to b and a link to c. Represent the reversed web link graph in a similar way. For example, [a, b, c] means that {b, c} is the set of web sites that contain links to a. If the input is [[a, b, c], [b, c, e], [c, b, a]], for example, your Scheme program should produce this list: [[a, c], [b, a, c], [c, a, b], [e, b]]

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Depth First Search
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning