ViewWiki

Lesson 4 of 4

Ranking pages.

About 25 minutes · 6 practice questions

How a search engine knows what matters: the random surfer, PageRank as a share of time on each page, why a link from an important page is worth more, the damping factor, and visits that settle.

Step 1 of 6 · The random surfer

Step 1 of 6

The random surfer

The web here has eight pages, and each arrow is a link from page to page. When you search for something, a search engine finds millions of matching pages, and it has to decide which comes first. The idea of PageRank, on which Google was built, is to see the links as a directed graph and imagine a random surfer: at each step it clicks one of the current page’s links, at random, or, now and then, jumps to any page at random. A page’s PageRank is the share of its time the surfer spends there in the long run. The height of each page’s plinth is its rank.

Right now Chance of clicking a link is 0%: the surfer only jumps. Predict what happens when it starts clicking.

To the question

Step 4 of 6

Climbing

The links to your page come in a fixed order: three quiet pages, then the hub, then the news site. Climb the ranking.

To the question

Step 6 of 6

The surfer settles

How do you work out the ranks, if each depends on the others? You can simply let the surfer walk, and count. Look inside brings in the surfer, and beside each plinth a bar of the share of visits that landed on that page. So far it has made only a few dozen clicks.

To the question

Interactive scene

Loading the interactive version…

Each step sets up the Scene for you, and a control marked “fixed” stays put for that step.

To the experiment

Practice · Predict, then look

Right now the surfer never clicks links, it only jumps to a random page, so all eight pages share one rank. When Chance of clicking a link goes up to 85%, which page will rise to the top?

To the experiment

Practice · Reach the target

Change Pages linking to yours until your page is in second place, behind only the hub, and press Check.

To the experiment

Practice · Predict, then look

The random surfer has made only a few clicks, and the visit bars beside the plinths are far from the ranks. What will happen to the bars when it has made twenty thousand clicks?