Wednesday 16 September 2009

Calculating Pagerank with matricies



Google pagerank is calculated as a function of how many pages link to you, and how many pages link to the pages that link to the pages that link to you, and so on.

Evidence suggests that this pagerank is calculated by google using Matrix calculations, not least, because it would be much faster to calculate.

Here is how it is done.

Imagine six web pages, that interlink as shown
(See image Left)

From this, we create a 6x6 matrix, where the rows represent pages, and the columns represent links to other pages.

A "Link" is a Matrix cell in the format 1/x where x is the total number of out-links from that page. So 1/2 means that there are 2 out-links.


This is the Matrix shown in Fractions (above). This needs to be converted to decimals, so I can feed it into Wolfram alpha for the calculations:
{{0,0.5,0.5,0,0,0},
{0,0,0,0,0,0},
{0.33,0.33,0,0,0.33,0},
{0,0,0,0,0.5,0.5},
{0,0,0,0.5,0,0.5},
{0,0,0,1,0,0}}

To calculate the pagerank, we need to pre-multiply it by a matrix {1,1,1,1,1,1} known as the Pagerank Vector.




This then yields the result:



Which shows, in relative importance, which page would be deemed most important, in this case "1.5" which is Page 4.

Wednesday 2 September 2009

Namecheap affiliate program

Namecheap's new affiliate program

And here's their prices:

biz $9.69/yr
bz $28.88/yr
ca $15.95/yr
cc $28.88/yr
cm $104.99/yr
cn $28.88/yr
co.uk $8.88/yr
com $9.69/yr
com.cn $28.88/yr
de $17.88/yr
eu $11.44/yr
in $21.00/yr
info $2.98/yr
me $21.98/yr
mobi $7.99/yr
net $9.69/yr
net.cn $28.88/yr
nu $28.88/yr
org $9.69/yr
org.cn $28.88/yr
org.uk $8.88/yr
tv $17.99/yr
us $8.88/yr
ws $28.88/yr