NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

29th International Symposium on Theoretical Aspects of Computer Science: STACS '12, February 29th to March 3rd, 2012, Paris, France

Christoph DürrPublication 2009

Abstract

Obtaining a truly representative "slice" of the internet is a fundamental challenge in web science. While various random-walk algorithms have been proposed to sample web pages uniformly, their performance on the live, large-scale web often diverges from theoretical predictions. This paper evaluates three major sampling techniques—Algorithms A, B, and C—revealing significant biases introduced by real-world web structures like "host traps" and the inherent limitations of current mathematical corrections. Our findings suggest that while these algorithms work in theory, the digital universe presents practical hurdles that current models have yet to fully overcome.

Introduction: The Sampling Problem

To understand global properties of the internet—such as the distribution of languages, the prevalence of specific top-level domains (TLDs), or the average size of a webpage—researchers require a "uniform random sample." In such a sample, every page on the web has an equal probability of being selected. However, the sheer scale and dynamic nature of the World Wide Web make exhaustive crawling impossible.

The Symposium on Theoretical Aspects of Computer Science (STACS) is a premier venue for algorithmic research.

While mathematicians have developed several random-walk algorithms to achieve uniform sampling, these are frequently tested only on small, synthetic graphs. This research addresses the "reality gap" by implementing and testing three leading techniques on the live web simultaneously to determine which, if any, provides an unbiased view of the digital universe.

Methodologies

The study compared three distinct random-walk approaches, all based on the concept of a "walker" navigating the web by clicking links:

  1. Algorithm A (Rusmevichientong et al.): This approach treats the web as an undirected graph. Since most web links are one-way, it utilizes search engine "inlink" data to allow the walker to move both forwards and backwards.
  2. Algorithm B (Henzinger et al.): An extension of Algorithm A that incorporates "self-loops." By ensuring every page has the same total number of links (including loops where the walker stays put), the walker should theoretically visit every page with equal probability over time.
  3. Algorithm C (Bar-Yossef et al.): Modeled after the PageRank algorithm, this walker follows links but occasionally "teleports" to a previously visited page to maintain coverage and avoid getting stuck in dead ends.

The researchers executed these walks for 240 hours using 50 parallel processes starting from yahoo.com. They applied "subsampling" filters to mitigate known biases, such as the tendency for walkers to gravitate toward highly connected, popular pages.

Real-World Challenges: The "Host Trap"

The most significant discovery was the prevalence of "host traps." Algorithms A and B frequently became stuck within specific hosts—large websites (e.g., shopping portals) containing millions of internal links but few external pointers. Walkers would bounce internally for thousands of steps, failing to explore the broader web. This effectively turned the walkers into "prisoners" of a single domain.

Furthermore, Algorithm C remained heavily biased toward high-PageRank pages. Even with mathematical corrections intended to sample inversely proportional to PageRank, the resulting collection favored high-visibility sites over the "long tail" of the web.

Results and Analysis

The empirical results highlighted stark differences between theoretical expectations and real-world performance:

  • Sample Concentration: In Algorithm C, the most frequent host appeared only 32 times in a 10,000-page sample. Conversely, in Algorithms A and B, a single host (such as fr.shopping.com) could represent over 30% of the entire sample, indicating a failure to achieve uniformity.
  • Outdegree Distribution: The number of links per page typically follows a "power law" with an exponent around 2.72. However, Algorithm A/B produced samples with an exponent of 2.01, and Algorithm C was further off at 1.49, confirming a strong bias toward pages with high out-degrees (many outgoing links).
  • Domain Distribution: Despite these biases, the methods showed general agreement on the dominance of the .com TLD (44–65%), followed by .net and .org (each around 4–9%).

Conclusion and Future Directions

The study concludes that while random-walk algorithms are mathematically sound, the structural irregularities of the live web—particularly host traps—pose significant hurdles. The authors found that how you sample matters: sampling unique "states" (pages visited) is far more effective than sampling every "step," which exacerbates the trap problem.

Algorithm B, when combined with state-based sampling, appeared the most robust of the three. However, achieving a "perfect" uniform sample remains an open challenge, requiring better mechanisms to escape traps and less reliance on potentially biased search engine APIs. Future work must focus on "reset" mechanisms to ensure walkers can traverse the web's vast and uneven landscape without becoming trapped in local clusters.

Summary updated

BibTeX
@inproceedings{durr2009th,
  author = {Christoph Dürr},
  title = {{29th International Symposium on Theoretical Aspects of Computer Science: STACS '12, February 29th to March 3rd, 2012, Paris, France}},
  booktitle = {Publication},
  year = {2009},
  doi = {10.4230/lipics.stacs.2012.i},
}
Figure