Foundations & Concepts
How search engines and feeds work
Learn How search engines and feeds work: 34 practice questions and answers with an interactive quiz — from the offline AI Learning app.
Questions & Answers
Tap a question to reveal its answer. Written for self-study and interview preparation.
What is a web crawler (sometimes called a spider) and what does it do?
A web crawler is an automated program that search engines use to visit web pages and follow links from page to page. As it travels, it reads the content of each page and sends a copy back so the search engine can store and organize it. This is how search engines discover new and updated pages across the internet.
What is a search engine 'index', and why is it compared to the index at the back of a book?
A search engine index is a huge organized list that connects words to the web pages where those words appear. It works like a book's index, which tells you which pages mention a topic so you don't have to read the whole book. Because the data is pre-organized, the search engine can find matching pages in a fraction of a second instead of scanning the whole internet each time.
Why does a search engine return results almost instantly instead of searching the whole internet when you press Enter?
It does not search the live internet at that moment; instead it looks through its pre-built index, which is already organized for fast lookups. Building the index ahead of time (through crawling) means the hard work is done in advance. So when you search, the engine only has to match your words against the ready-made index and rank the results.
What does 'ranking' mean in a search engine?
Ranking is the process of putting the matching pages in order, so the most useful or relevant results appear at the top. The search engine uses many signals, such as how well the page matches your words and how trustworthy it seems, to decide the order. The goal is to show you the best answers first instead of a random list.
Name two signals a search engine might use to decide which page to rank higher.
One signal is relevance: how closely the page's words and topic match what you searched for. Another is authority or popularity, often measured by how many other trusted pages link to it. Search engines combine dozens of such signals, including freshness and page quality, to choose the order.
What are 'keywords' in the context of searching?
Keywords are the important words you type into a search box that describe what you are looking for. The search engine focuses on these words to find pages that contain or relate to them. Choosing clear, specific keywords usually gives you better results than vague ones.
How can making your search query more specific improve your results?
A specific query gives the search engine more clues, so it can narrow down to pages that truly match your need. For example, 'how to care for a goldfish' returns better help than just 'fish'. Adding details like location, year, or exact terms filters out unrelated pages.
What is a 'feed' in apps like social media or video platforms?
A feed is the scrolling list of posts, videos, or articles that an app shows you, usually with the newest or most interesting items near the top. Instead of you searching for each item, the app delivers a stream of content automatically. Many feeds are personalized, meaning different people see different items.
What is a recommendation algorithm, in simple terms?
A recommendation algorithm is a set of computer rules that predicts which content you are likely to enjoy and shows it to you. It learns from examples, such as what you watched, liked, or skipped in the past. Based on these patterns, it picks new items it thinks you will like.
How does a feed 'learn' what to show you?
A feed learns from your past behavior, such as the posts you like, the videos you finish watching, and the ones you scroll past quickly. These actions are examples that tell the algorithm what interests you. Over time it spots patterns and shows more of the kinds of content you tend to engage with.
What is meant by 'personalized' results or feeds?
Personalized means the content is tailored to you based on your history, location, and preferences, so two people can search the same word or open the same app and see different things. The system uses your past activity to guess what is most relevant to you. This can be helpful, but it also means you might miss content the system thinks you won't like.
What is a 'filter bubble' and why can it be a problem?
A filter bubble happens when personalized systems mostly show you content that matches what you already like or believe, so you rarely see different viewpoints. Over time this can give a narrow picture of the world and make it harder to learn new perspectives. Being aware of it helps you deliberately seek out other sources.
Why might the same Google-style search give two friends different results?
Search results can be personalized using each person's location, language, device, and past search history. Because these signals differ from person to person, the engine may rank pages differently for each of them. Results can also change over time as the web and the index get updated.
What is the difference between 'organic' search results and 'ads' on a results page?
Organic results are pages the search engine ranks because it judges them relevant, and no one paid to place them there. Ads are paid placements where a company pays the search engine to show their link, usually marked with a label like 'Ad' or 'Sponsored'. Knowing the difference helps you judge why a result is shown to you.
How do search engines help fight spam or low-quality web pages?
Search engines use quality signals and rules to detect pages that try to trick the system, such as pages stuffed with repeated keywords or fake links. Pages judged to be spam or low quality are pushed down in the rankings or removed. This helps keep useful, trustworthy pages near the top.
What is 'autocomplete' (search suggestions) and how does it work?
Autocomplete is the feature that predicts and shows possible search phrases as you type, before you finish. It bases these suggestions on common searches that other people have made and sometimes on your own history. This can save time, but the suggestions reflect popular searches, not always the best or most accurate ones.
Why is the order of search results important for the websites that appear?
Most people click on results near the top and rarely scroll to the second page, so higher-ranked pages get far more visitors. This means ranking strongly affects how much attention and traffic a website receives. That is why many website owners work hard to improve where they appear.
What does SEO (Search Engine Optimization) mean?
SEO is the practice of designing and writing a website so it ranks higher in search results for relevant searches. This includes using clear titles, helpful content, good links, and fast-loading pages. Done honestly, SEO helps the right people find useful pages more easily.
How is a search engine like a librarian who has already read every book?
A librarian who knows every book can instantly point you to the right shelf when you ask a question, instead of making you read everything. A search engine does this by crawling pages in advance and storing them in an index, so it can quickly suggest the most relevant pages. In both cases the heavy reading and organizing happen before you ask.
What is 'engagement' and why do many feeds try to maximize it?
Engagement means how much you interact with content, such as liking, commenting, sharing, or watching for a long time. Many feeds are designed to maximize engagement because more interaction often means more time spent in the app and more ad money for the company. This can be useful, but it can also push attention-grabbing content even when it is not the most helpful.
Why should you check more than one source for an important search result?
A single page might be wrong, biased, or out of date, even if it ranks high. Comparing several trustworthy sources helps you confirm whether the information is accurate. Cross-checking is an important habit for telling reliable facts from mistakes or opinions.
What is 'click-through rate' (CTR) and how can feeds use it?
Click-through rate is the percentage of people who click on an item after seeing it. Feeds and search engines use CTR as a signal: items that many people choose to click may be treated as more interesting or relevant. However, a high CTR can also come from clickbait, so it is not a perfect measure of quality.
How do search engines handle pages written in different languages?
Search engines detect the language of each page and of your query, then try to show results in a language you can understand, often based on your settings or location. Some engines can also translate pages or show translated snippets. This helps users find relevant information even when it was written in another language.
What is a simple way to describe how 'PageRank'-style link counting helps ranking?
The idea is that a link from one page to another is like a vote of confidence, suggesting the linked page is useful. Pages that receive many links from trustworthy sites are treated as more important and can rank higher. This helps the engine guess which pages people generally find valuable.
Look at the code. What does this dictionary represent in a tiny search index?
It represents an inverted index, which maps each word to the list of page numbers where that word appears. To answer a search for 'cat', the engine would look up the key 'cat' and instantly get pages [1, 3] without scanning every page. This is the same idea real search engines use, just much larger.
index = {
"cat": [1, 3],
"dog": [2, 3],
"fish": [1],
}
# To find pages with 'cat':
print(index["cat"]) # [1, 3]In the code shown, why is looking up index['dog'] faster than checking every page?
The index already stores, for each word, the exact pages where it appears, so a lookup goes straight to the answer. Checking every page would mean reading all the pages one by one, which is much slower as the collection grows. Pre-organizing data into an index trades some setup work for very fast searches later.
index = {"cat": [1, 3], "dog": [2, 3], "fish": [1]}
pages = index["dog"] # instant lookup
print(pages) # [2, 3]What does it mean for a search engine to keep its index 'fresh', and why does it matter?
Keeping the index fresh means re-crawling pages regularly so the stored copy reflects recent changes, new pages, and deleted ones. This matters because news, prices, and events change quickly, and stale results could be wrong. Freshness is one of the signals used when ranking time-sensitive searches.
Why might a brand-new website not show up in search results right away?
A search engine can only rank pages it has discovered, crawled, and added to its index, and that process takes time. If no crawler has visited the new site yet, perhaps because few pages link to it, it won't appear in results. Submitting the site or getting links from known pages can help it get crawled sooner.
What is 'clickbait', and how does it relate to how feeds rank content?
Clickbait is content with exaggerated or misleading titles designed to make you click even if the content is disappointing. Because some feeds reward items that get many clicks, clickbait can spread by gaming that signal. Good systems try to also measure satisfaction, not just clicks, to reduce it.
How can your own choices, like the videos you watch fully, shape your future feed?
Each action you take is an example the algorithm learns from, so finishing a video signals strong interest in that topic. The feed then shows more similar content, which can reinforce your habits over time. Being mindful of what you engage with gives you some control over what you are shown next.
Why is privacy a concern with personalized search and feeds?
To personalize, these systems collect data about what you search, watch, and click, and sometimes your location. This data can reveal a lot about you, so it is important that it is stored securely and used responsibly. Understanding privacy settings lets you control how much information you share.
What is the difference between 'searching' and 'browsing a feed'?
When you search, you actively type a query to pull up information you want at that moment. When you browse a feed, the system pushes a stream of content to you based on what it predicts you'll like. Searching is user-driven, while a feed is more system-driven.
How can ranking systems sometimes show unfair or biased results, and why does it matter?
Because algorithms learn from real-world data and human behavior, they can pick up and repeat existing biases, such as favoring certain viewpoints or groups. This matters because biased results can spread unfair ideas or hide important information. Designers test and adjust systems to reduce bias and make results fairer.
What is a 'snippet' on a search results page, and how does it help you?
A snippet is the short preview of text the search engine shows under each result's title, often including the words you searched for. It helps you judge whether a page is likely to have what you want before you click. Good snippets save time by letting you compare results quickly.
Related topics in Foundations & Concepts
Put it into practice with AI Learning
This topic — and hundreds more — comes from our free, offline AI Learning app. Practice Q&A, quizzes and cheat sheets anywhere, no account needed.
- Free
- No account
- Works offline