Repository navigation
Correct crawler fingerprints and exact deduplication semantics - #76
Merged
Merged
Conversation
Distinguish hash candidates from exact equality, quantify collision risk, preserve URL-specific discovery, and correct fingerprint/URL sizing and robots.txt terminology. Verified the probability, arithmetic, relative-link examples, and unchanged notebook execution state. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7411b498-db61-4f72-8629-4af2b007c3a4
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for this documentation-only clarification of crawler fingerprinting and deduplication guidance.
No open issues 🎉
What changed in this PR
This documentation-only PR corrects the crawler design’s fingerprinting and deduplication guidance, separating exact content equality from URL-specific processing.
Changes:
- Uses SHA-256 to identify candidates, with byte comparisons confirming equality while preserving base-relative link discovery.
- Clarifies collision probabilities, storage estimates, normalized URL equality, and the limits of caches and approximate filters.
- Corrects
robots.txtreferences and synchronizes the Markdown and notebook documentation.
| File | Description |
|---|---|
designing_webcrawler.md |
Revises deduplication semantics, collision and capacity calculations, and crawler access-rule terminology. |
designing_webcrawler.ipynb |
Mirrors the documentation updates without changing code, outputs, or metadata. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A 32-bit checksum cannot distinguish 15 billion URLs, and a 64-bit document fingerprint has significant population-wide collision risk. Treating equal fingerprints as equal content can discard distinct pages; skipping all processing for equal content also loses base-relative links.
Changes
robots.txtfilename.Update Markdown and its notebook. Scheduling and checkpoint recovery remain separate work.
Validation
Python checks reproduce 6.10 expected pairs and 99.78% probability for the stated ideal 64-bit model, the storage arithmetic, and distinct relative-link resolutions. The notebook schema passes; code, outputs, and metadata are unchanged.
git diff --checkpasses.GitHub CI passes on Python 3.9, 3.10, and 3.11. Markdown links and Codacy pass.
No crawler implementation or measured collision experiment is claimed.