03.12.2012 Views

C++ for Scientists - Technische Universität Dresden

C++ for Scientists - Technische Universität Dresden

C++ for Scientists - Technische Universität Dresden

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

274 CHAPTER 14. NUMERICAL EXERCISES<br />

1 3<br />

2<br />

Figure 14.2: An example of a web with only four pages. An arrow from page A to page B<br />

indicates a link from page A to page B.<br />

or<br />

with<br />

14.3.4 Exercise<br />

du<br />

dt<br />

= f(u)<br />

f(u) = −A(u)u .<br />

Use the Runge-Kutta 4 method <strong>for</strong> evaluating the Van der Pol equation <strong>for</strong> µ = 0, µ = 0.1 and<br />

µ = 1 in the time interval [0, 10] with time steps h = 0.001. Also try smaller and larger time<br />

steps.<br />

Plot the results using gnuplot.<br />

14.4 Google’s Page rank<br />

We all use Google <strong>for</strong> web searching. In this exercise, we try and understand a particular tool<br />

used by Google to rank pages, called PageRank.<br />

The basic idea behind the Google Page Ranking Algorithm, is that the importance of a webpage<br />

is determined by the number of references made to it. We would like to compute a score xk<br />

reflecting the importance of page k. A simple minded approach would be just to count the<br />

number of links to each page. This approach does not reflect the fact that some pages might<br />

be more significant than others there<strong>for</strong>e rendering their votes more important. It also leaves<br />

open the possibility of artificially inflating the rank of a particular page by generating other<br />

trivial or advertising pages whose only function is to promote the importance of a particular<br />

page. Significant refinements are:<br />

• Weight each in-link by the importance of the page which links to it.<br />

• Give each page a total vote of 1. If page j contains nj links, one of which links to page k,<br />

then page k’s score is boosted by xj<br />

nj .<br />

4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!