How PageRank iterates a damped link matrix

Short answer: PageRank assigns every page a score that is the stationary distribution of a random surfer. With probability d the surfer follows a link chosen uniformly among the page’s out-links. With probability 1−d the surfer jumps to a uniformly random page. The usual damping factor is 0.85. The…

How Manacher mirrors palindrome radii

Short answer: Manacher’s algorithm finds every palindromic substring’s radius, and in particular the longest one, in O(n) time. It transforms the string so odd and even lengths share one code path, then fills a radius array. A window around the rightmost palindrome found so far mirrors radii across its…