HOW THE DIGITAL WORLD REALLY WORKS | CHAPTER 18
Finding a Needle in a Digital Universe
Search a catalog, build an inverted index, and rank a network of fictional pages. Everything stays in this browser.
1. Find a record fast
Search a sorted list of four-digit record IDs. Compare the number of checks with a linear search.
2. Search a tiny index
Five fictional documents are indexed in memory. Query words are combined with AND. Try ice rings or saturn.
| ID | Title | Text |
|---|
See the inverted index
3. Rank a network
A and B link to C; C links to A and D; D links to C; E begins with no outgoing links. Compare the distribution of scores as links change.
This educational graph is not the ranking formula of a commercial search engine.