How does the Google search engine work?

This is the information age . . . knowing how to find information will be a survival skill.
The other night I was watch one of those outdoor survival shows, where the guy simulates being the survivor of a plane crash and he has to survive in the wilderness for a few days until the producers of the show pickup him up. It was fun watch him start a fire with some gasoline from the plane and two wires to the planes batteries.
At some point in the show, I turned to my wife and said, that is sooo 20th century cave man stuff. An information age techie, whouldn’t need to worry about starting a fire . . . his big concern would be how do I find the phone number for the helicopter rescue service. Using his handi GPS enabled, smart phone he could connect to the Internet, go to Google Mobile, search Google Local, and find the closest helicopter rescue team. He’d be dinning on fine linnen and silver in a local resturant within the hour.
Cave man skills are not what we are going to need . . . information acqusition skills will be your Swiss Army knife of the future.
To that end, you better know how it works, here it is in Google’s own words.
|
“ |
How does Google collect and rank results? One of the most common questions we hear from librarians is “How does Google decide what result goes at the top of the list?” Here, from quality engineer Matt Cutts, is a quick primer on how we crawl and index the web and then rank search results. Matt also suggests exercises school librarians can do to help students. Crawling and Indexing Our crawl has produces an enormous set of documents, but these documents aren’t searchable yet. Without an index, if you wanted to find a term like civil war, our servers would have to read the complete text of every document every time you searched. So the next step is to build an index. To do this, we “invert” the crawl data; instead of having to scan for each word in every document, we juggle our data in order to list every document that contains a certain word. For example, the word “civil” might occur in documents 3, 8, 22, 56, 68, and 92, while the word “war” might occur in documents 2, 8, 15, 22, 68, and 77. Once we’ve built our index, we’re ready to rank documents and determine how relevant they are. Suppose someone comes to Google and types in civil war. In order to present and score the results, we need to do two things:
We’ve developed an interesting trick that speeds up the first step: instead of storing the entire index on one very powerful computer, Google uses hundreds of computers to do the job. Because the task is divided among many machines, the answer can be found much faster. To illustrate, let’s suppose an index for a book was 30 pages long. If one person had to search for several pieces of information in the index, it would take at least several seconds for each search. But what if you gave each page of the index to a different person? Thirty people could search their portions of the index much more quickly than one person could search the entire index alone. Similarly, Google splits its data between many machines to find matching documents faster. How do we find pages that contain the user’s query? Let’s return to our civil war example. The word “civil” was in documents 3, 8, 22, 56, 68, and 92; the word “war” was in documents 2, 8, 15, 22, 68, and 77. Let’s write the documents across the page and look for those with both words.
Arranging the documents this way makes clear that the words “civil” and “war” appear in three documents (8, 22, and 68). The list of documents that contain a word is called a “posting list,” and looking for documents with both words is called “intersecting a posting list.” (A fast way to intersect two posting lists is to walk down both at the same time. If one list skips from 22 to 68, you can skip ahead to document 68 on the other list as well.)
|
,,
Read the entire article
Further information about this topic is available in the online class:
| Related Articles |
Technorati Tags: how search engines work, search spider, webcrawler
Got a question, war story or comment about this topic? Share it in the link at the very bottom of this article. Some of my best ideas for future articles come from reading reader comments. I’d love to hear from you!
More on finding niche content Adding RSS capability to an existing Web site How to become the “Go To” in your niche Internet Christmas Sales - Can you still get in on the action? Are you confused about implementing Adsense?
Save this page to: del.icio.us - Digg it - Yahoo MyWeb



