Suppose that we have five websites: A, B, C, D, and E. Let'salso suppose that the links between the sites are depicted in thegraph below:
Here, the arrow pointing from C to D means that there is ahyperlink on site C that takes you to site D. For small sets ofobjects, graphs like this one are a convenient way to depictconnections.
Create a linking matrix L containing theinformation of which site links to which, just as we did in thepopularity example. Remember to normalize, and be sure that yourinput is exact. (For example, make sure you enter 1/3 instead of0.3333—this is important for the next part of this exercise, sinceour columns must sum to 1.) Include all input and output fromMATLAB.
Use the rref command to find all solutions x tothe matrix equation (L -I)x = 0. Includeall input and output from MATLAB. If you get an error message, besure to double-check your answer for the first part of thisexercise.
Which website has the highest PageRank? Explain your answer,especially in light of any negative numbers that may have appearedin your solutions. List the remaining websites in decreasingPageRank order.