logo
Kurashizu Blogwhere ideas flow
  • Home
  • News
  • Blog
  • About
  • Home
  • News
  • Blog
  • About

© 2026 Kurashizu. All rights reserved.

Admin·New Post·Service Status
Powered by Cloudflare·06.11.26
← Back to news

You could have invented PageRank

Original article
praveshkoirala.com|62 points|53 comments|by pkoird|Aug 26, 2026

You Could Have Been the Architect of PageRank


🕰️ Setting the Scene: 1996

Imagine you are browsing the web in the mid-nineties. You are using the dominant search engines of the era, such as AltaVista, and you are deeply frustrated.

Back then, search was primarily content-based. This meant the engine looked for keyword matches. For example, if you searched for the word "Hotels", the engine might serve you an article about "Hotels for Chickens" simply because the word matched, regardless of the page's actual authority or relevance.

The Stanford Breakthrough

Enter Sergey Brin and Larry Page. While pursuing their graduate studies at Stanford, they developed a specific algorithm known as PageRank. This innovation became a cornerstone of Google, transforming it into a global powerhouse and generating immense wealth for its creators.

While it's easy to assume that only Stanford PhDs could conceive of such a system, the reality is that the logic is surprisingly intuitive. Could you have discovered it too?


🛠️ How the Logic Works

The fundamental premise of PageRank is that a link from one page to another acts as a "mark of approval." In essence, a page shares its reputation with the pages it links to.

The Reputation Formula

A page's total rank is calculated as a base minimum value plus the sum of the reputation it inherits from its neighbors.

The Mathematical Concept: Page Rank=1−dN+d∑i∈incomingRankiOutlinksi\text{Page Rank} = \frac{1 - d}{N} + d \sum_{i \in \text{incoming}} \frac{\text{Rank}_i}{\text{Outlinks}_i}Page Rank=N1−d​+d∑i∈incoming​Outlinksi​Ranki​​ Where ddd is the damping factor and NNN is the total number of pages.

Practical Example: The BBC Scenario

Consider a high-authority site like BBC News.

VariableValueDescription
Current Reputation50The total rank of BBC News
Outgoing Links5Number of pages BBC links to
Distribution Rate80%The portion of rank passed to linkees
Points per Linkee8(50×0.80)/5(50 \times 0.80) / 5(50×0.80)/5

The remaining 20% is distributed uniformly across all pages on the web to account for random surfing.


📊 Visualizing the Flow

Here is how the "reputation" flows from one node to another:


💻 Implementing the Algorithm

You can translate this logic into a concise Python script. The goal is to iterate the rank updates until the values stabilize (converge).

# incoming[n]: list of nodes linking to n
# outgoing[n]: list of nodes n links to
# damping: percentage of rank distributed to neighbors

def pagerank(incoming, outgoing, damping=0.85, tolerance=1e-10):
    n = len(incoming)
    rank = [1 / n] * n  # Initialize starting ranks
    
    # Minimum rank a page receives from random jumps
    minimum_rank = (1 - damping) / n 

    while True:
        old = rank.copy()
        for page, neighbors in enumerate(incoming):
            # Sum rank contributed by each neighbor divided by their total outlinks
            acquired = sum(old[neighbor] / len(outgoing[neighbor]) for neighbor in neighbors)
            rank[page] = minimum_rank + damping * acquired
            
        # Check if the algorithm has converged
        if max(abs(a - b) for a, b in zip(rank, old)) < tolerance:
            return rank

🏁 Final Thoughts

By running these updates repeatedly, you eventually arrive at a definitive rank for every page, indicating its relative importance.

While this simplified version ignores certain "bookkeeping" complexities—such as dangling nodes (pages with no outgoing links)—the core mechanism remains the same.

Your "Billionaire" Checklist:

  • Understand link-based reputation.
  • Implement a damping factor.
  • Iterate until convergence.
  • Travel back to 1996.

Congratulations! You now possess the blueprint for one of the most successful algorithms in history.