I have to study PageRank right now, and I have written this algorithm :
I have determined the complexity of the inside of the while loop, which I believe to be O(n^2). But then I'm stuck with the complexity of the while loop itself, which is inherently determined by delta. Delta being the difference of the L1 norm of R at the iteration i and R at the iteration i+1.
Is there any method for determining such a complexity ?
EDIT : a bit more explanation :
- R is the rank vector
- epsilon is a value given by the user (we want epsilon to be small to have a good estimate of PageRank but not too small it takes ages to compute it)
creerMatricePageRank()cretes the adjacency matrix for us, complete with the rank source vectorEadded in the mix- A is the adjacency matrix
