CI-802-C Web and Information Retrieval

Web and Information Retrieval (CI-802-C) Important Questions

RGPV · B.Tech · CSIT · Semester 8 · Current scheme · 4 papers (2018 to 2020)

  1. Read the answers

    Start with the topics that come every year.

  2. Revise unit notes

    Go through each unit once to score more.

Paperwala Imp Topics - Web and Information Retrieval important questions

Download Paperwala Imp Question & Answer (PDF)

Counted from the questions in the past papers listed on this site. Repeated = how many times the topic came in those papers.

Web and Information Retrieval important questions with answers

Each answer starts with the short answer. Then come the points to write, a diagram and an exam tip. The questions under each topic are copied from the RGPV papers.

Q1. Information retrieval: meaning, taxonomy, retrieval process, components and issues

Asked 4 times in 2018, 2019, 2020 · Unit 1

From the papers

  • “Explain the issues in the process of Information Retrieval.” (Nov 2019, Dec 2020)
  • “Discuss the components of Information Retrieval system in detail.” (Nov 2019, Dec 2020)
  • “What do you mean by Information Retrieval? Give taxonomy of information Retrieval.” (Jun 2020)
  • “Differentiate Information and data retrieval.” (Jun 2020)

The short answer

Information retrieval (IR) finds documents in a large collection that are relevant to a user's information need, usually stated as a query. It returns them in ranked order. Unlike data retrieval, which returns exact matches from structured records, IR deals with unstructured text where relevance is a matter of degree.

Write these points

Information retrieval and data retrieval

PointInformation retrievalData retrieval
DataUnstructured textStructured tables
MatchingPartial, best matchExact match
QueryNatural language, keywordsSQL, formal
ResultRanked listExact set
Error toleranceSome wrong results are fineOne wrong row is an error

Taxonomy of IR models

  • Classic: Boolean, vector, probabilistic.
  • Set theoretic: fuzzy, extended Boolean.
  • Algebraic: generalised vector, latent semantic indexing, neural.
  • Probabilistic: inference network, belief network.
  • Structured and browsing models: hypertext, flat and guided browsing.

Components of an IR system

  • Document collection and text operations (preprocessing).
  • Indexer that builds the inverted index.
  • Query interface and query operations.
  • Searching, matching and ranking.
  • Relevance feedback from the user.

Issues in IR

  • Relevance: deciding what the user really wants.
  • Vocabulary mismatch: car and automobile.
  • Scale and speed with billions of documents.
  • Evaluation of quality.
  • Spam, duplicates and changing web content.

Searching a college library for "data mining notes".

Data retrieval: SELECT * FROM books WHERE title = 'Data Mining'. A book titled "Mining of Massive Datasets" is missed.

IR: the query is split into terms data and mining; every document containing them gets a score.

Books with both terms many times rank first; books with one term rank lower.

The user sees a ranked list and can click the best match.

Real-life example

Asking a librarian for "something good on cricket history" is information retrieval: she judges what suits you and brings the best books first. Asking the issue counter for book number 4521 is data retrieval: there is exactly one right answer.

Figure: the information retrieval process
Figure: the information retrieval process

Same or opposite: information retrieval and data retrieval

PointIRData retrievalSame or opposite
MatchBest, partialExactOpposite
Uses an index for speedYesYesSame
ResultRankedUnranked setOpposite
ExampleGoogle searchBank balance queryOpposite

Exam tip. Define IR, make the comparison table and draw the retrieval process. Add taxonomy, components or issues as the question asks.

Back to the topic list

Q2. Relevance feedback, query expansion and rewriting

Asked 4 times in 2018, 2019, 2020 · Unit 3

From the papers

  • “How do you expect that relevance feedback using negative judgement will affect the precision and recall?” (Nov 2019, Dec 2020)
  • “What do you mean by query expansion and rewriting?” (Jun 2020)
  • “What are the processing steps used in automatic relevance feed back to enhance user query? Explain.” (Nov 2018)
  • “Give the two major approaches to generating queries? Explain in detail.” (Nov 2018)

The short answer

Relevance feedback uses the user's judgement of the first results (relevant or not) to build a better query. Query expansion adds related terms to the query; query rewriting changes its form, for example correcting spelling or replacing words. The classic method is the Rocchio algorithm in the vector model.

Write these points

Steps in automatic relevance feedback

  1. Run the original query and show the top results.
  2. The user marks some as relevant and some as not relevant.
  3. Add weights of terms from relevant documents; subtract those from non-relevant ones.
  4. Run the new query and show better results.
  5. Repeat if needed.

Rocchio formula

q' = α q + β (average of relevant vectors) − γ (average of non-relevant vectors), with typical α = 1, β = 0.75, γ = 0.15.

Approaches to query expansion

ApproachSource of new terms
User relevance feedbackDocuments the user marked
Pseudo (blind) feedbackAssume the top k results are relevant
Global, thesaurus basedWordNet or a built thesaurus
Local clusteringTerms that co-occur in top documents
Query log basedWhat other users searched next

Effect of negative judgement on precision and recall

  • Negative feedback pushes the query away from bad documents, so precision usually rises.
  • It can also remove terms shared with some relevant documents, so recall may fall slightly.
  • So γ is kept small compared with β.

Rocchio on four terms.

Query q = (1, 0, 1, 0). Relevant docs r1 = (1, 1, 0, 0), r2 = (1, 0, 1, 1). Non-relevant n1 = (0, 0, 0, 1).

Average relevant = (1, 0.5, 0.5, 0.5). β times it = (0.75, 0.375, 0.375, 0.375).

q' = (1, 0, 1, 0) + (0.75, 0.375, 0.375, 0.375) − 0.15 × (0, 0, 0, 1).

q' = (1.75, 0.375, 1.375, 0.225). Term 2 entered the query; term 4 stays small.

Real-life example

When you ask a shopkeeper for "a phone" and say "not this one, more like that one with a big battery", he refines what he shows next. Relevance feedback lets the search engine learn from your reactions the same way.

Figure: one relevance feedback round
Figure: one relevance feedback round

Same or opposite: relevance feedback and pseudo relevance feedback

PointRelevance feedbackPseudo feedbackSame or opposite
User effortMarks documentsNoneOpposite
Expands the queryYesYesSame
RiskUsers skip markingWrong top results misleadOpposite
AccuracyHigherLowerOpposite

Exam tip. Write the steps and the Rocchio formula. Work one small vector example and say how negative feedback changes precision and recall.

Back to the topic list

Q3. Indexing: inverted index, cataloging, concept indexing, automatic indexing, indexing and searching

Asked 4 times in 2018, 2019, 2020 · Unit 3

From the papers

  • “Explain the concept of inverted index file. How it can be used in Information Retrieval?” (Nov 2019, Dec 2020)
  • “Differentiate indexing and searching. Give suitable examples for both of them.” (Jun 2020)
  • “Describe the usage of Cataloging and Indexing in Information Retrieval Systems.” (Nov 2018)
  • “What do you mean by concept indexing approach? Explain in detail with a suitable example.” (Nov 2018)

The short answer

Indexing builds a data structure that lets a system find documents containing given terms without reading every document. The main structure is the inverted index: a dictionary of terms, each with a postings list of documents (and often frequencies and positions). Searching then uses the index to answer queries fast.

Write these points

Building an inverted index

  1. Collect documents and give each an ID.
  2. Tokenise and preprocess (lowercase, remove stop words, stem).
  3. Make (term, doc ID) pairs and sort them by term.
  4. Merge pairs into postings lists with term frequencies.
  5. Store the dictionary in memory, the postings on disk, often compressed.

Indexing and searching

PointIndexingSearching
WhenBefore queries, offlineAt query time, online
InputDocumentsQuery and index
OutputInverted indexRanked results
ExampleBuilding a book's back indexLooking up a word in it

Cataloging, concept indexing and automatic indexing

  • Cataloging: recording a document's details such as title, author, subject (library catalogue, metadata).
  • Concept indexing: index by concepts, not only words, so "automobile" and "car" map to one concept.
  • Classes of automatic indexing: statistical (term frequency), natural language (phrases, parsing), concept (thesaurus), hypertext linkage (anchor text).

Inverted index for three documents.

D1: data mining finds data patterns. D2: web mining uses web links. D3: data warehouse stores data.

data → D1:2, D3:2. mining → D1:1, D2:1. web → D2:2. warehouse → D3:1.

Query data AND mining: {D1, D3} ∩ {D1, D2} = {D1}.

Query data OR web: {D1, D2, D3}. Only short lists are read, never the full documents.

Real-life example

The index at the back of a textbook lists each word with its page numbers. To find "recursion" you go straight to pages 45 and 112 instead of reading the whole book. An inverted index does this for millions of documents.

Figure: an inverted index
Figure: an inverted index

Same or opposite: inverted index and signature file

PointInverted indexSignature fileSame or opposite
LookupTerm to postingsBit pattern per documentOpposite
Speeds up searchYesYesSame
False matchesNonePossibleOpposite
Used byAlmost all search enginesOlder systemsOpposite

Exam tip. Write the five building steps and draw a small index. Make the indexing and searching table. Answer a query using the postings lists.

Back to the topic list

Q4. Link analysis and ranking algorithms: PageRank and HITS

Asked 4 times in 2018, 2019, 2020 · Unit 4

From the papers

  • “Compare HITS and Page rank algorithm in detail.” (Nov 2019, Dec 2020)
  • “What is the use of ranking algorithm? Explain any one of ranking algorithms.” (Jun 2020)
  • “What is the use of ranking algorithm?” (Dec 2020)
  • “Define the following terms: Link Analysis” (Jun 2020)

The short answer

Link analysis uses the hyperlinks between web pages to judge their importance. PageRank gives each page a score from the scores of pages linking to it, like votes. HITS gives each page two scores: an authority score (good content, many good pages point to it) and a hub score (points to many good authorities). Ranking algorithms combine such scores with text relevance to order results.

Write these points

PageRank

  • PR(p) = (1 − d) ÷ N + d × Σ PR(q) ÷ L(q), over pages q linking to p; L(q) is q's number of out-links.
  • d (damping, about 0.85) models a surfer who keeps clicking; 1 − d is a random jump.
  • Computed once for the whole web, independent of the query.
  • Iterate until scores stop changing.

HITS

  • Start from pages matching the query and their neighbours (base set).
  • authority(p) = sum of hub scores of pages pointing to p.
  • hub(p) = sum of authority scores of pages p points to.
  • Normalise and repeat until stable.

Use of ranking algorithms

A query can match millions of pages. Ranking orders them so the most useful appear first, using text scores (tf-idf, BM25), link scores, freshness and user signals.

PageRank and HITS on A → B, A → C, B → C, C → A.

PageRank with d = 0.85, N = 3, start 1/3 each. First step: PR(A) = 0.05 + 0.85 × 0.333 = 0.333, PR(B) = 0.05 + 0.85 × 0.167 = 0.192, PR(C) = 0.05 + 0.85 × (0.167 + 0.333) = 0.475.

Repeating until stable gives A = 0.388, B = 0.215, C = 0.397. C ranks first; B, with one in-link from a page that splits its vote, ranks last.

HITS, start hub = 1: authority A = 1 (from C), B = 1 (from A), C = 2 (from A and B).

Hub A = auth B + auth C = 3, hub B = 2, hub C = 1. A is the best hub, C the best authority.

Real-life example

In a college, a teacher recommended by many senior teachers is highly respected (PageRank). A student who always suggests the best books is a good hub. The books themselves are good authorities (HITS).

Figure: a link graph with PageRank and HITS scores
Figure: a link graph with PageRank and HITS scores

Same or opposite: PageRank and HITS

PointPageRankHITSSame or opposite
Scores per pageOneTwo: hub and authorityOpposite
Uses the link graphYesYesSame
Depends on the queryNoYesOpposite
ComputedOffline, onceAt query timeOpposite

Exam tip. Write both formulas and draw a three page graph. Do one PageRank step and one HITS step, then make the comparison table.

Back to the topic list

Q5. Online IR systems, OPACs and snippet generation

Asked 4 times in 2018, 2019, 2020 · Unit 5

From the papers

  • “Explain snippet generation for online IR system.” (Nov 2019)
  • “Describe briefly Online IR systems and OPACs.” (Nov 2018)
  • “Write short notes on: Online IR system” (Dec 2020, Jun 2020)

The short answer

An online IR system lets users search a remote collection interactively over a network, such as bibliographic databases (DIALOG, MEDLINE), library catalogues and web search engines. An OPAC (online public access catalogue) is a library's searchable catalogue. Snippet generation builds the short text shown under each result so users can judge it without opening it.

Write these points

Features of online IR systems

  • Search by keywords, fields (title, author) and Boolean operators.
  • Ranked or sorted results with snippets.
  • Refinement: filters, facets, related searches.
  • Access from anywhere, many users at once.
  • Links to the full text or holdings.

OPAC

  • Search by title, author, subject, ISBN and keywords.
  • Shows location, call number and availability.
  • Lets users reserve or renew books.
  • Newer OPACs add relevance ranking, covers and reviews (discovery systems).

Snippet generation

TypeHowExample
StaticFixed: first lines or a stored summaryMeta description of the page
Query dependent (dynamic)Pick sentences that contain the query termsShows the line with "data mining" in bold
  • Score sentences by query term count, position and closeness of terms.
  • Highlight query terms; keep it about 2 lines.

Choosing a snippet for the query "inverted index".

Sentence 1: "This chapter covers search engines." contains 0 query terms.

Sentence 2: "An inverted index maps terms to documents." contains 2 query terms next to each other.

Sentence 3: "Each index is rebuilt nightly." contains 1 term.

Sentence 2 scores highest, so it becomes the snippet with inverted index in bold.

Real-life example

A railway enquiry website where you type a train number and get its live status is an online IR system. The few words shown under each Google result are snippets that help you choose which link to open.

Figure: query dependent snippet generation
Figure: query dependent snippet generation

Same or opposite: OPAC and a web search engine

PointOPACWeb search engineSame or opposite
CollectionOne library's booksThe whole webOpposite
Online and searchableYesYesSame
RecordsStructured catalogueUnstructured pagesOpposite
RankingSimple or noneComplexOpposite

Exam tip. Define online IR and OPAC. List features, then explain snippet types with a scored sentence example.

Back to the topic list

Q6. Digital libraries and digital library searches

Asked 4 times in 2018, 2019, 2020 · Unit 5

From the papers

  • “Discuss the relevance of Information Retrieval System in context of Digital libraries.” (Nov 2019)
  • “Differentiate between Digital Libraries and Data Warehouses.” (Nov 2018)
  • “How Digital Libraries can be used as Information base Systems?” (Nov 2018)
  • “Write short notes on: Digital Library searches” (Dec 2020, Jun 2020)

The short answer

A digital library (DL) is an organised collection of digital documents (books, journals, images, videos) with services to search, browse and access them over a network. Its search uses IR methods together with metadata, so it works as an information base system for its users.

Write these points

How digital libraries use IR

  • Full text indexing of documents plus metadata (Dublin Core: title, creator, subject).
  • Keyword, field and Boolean search; ranked results.
  • Browsing by subject, author or collection.
  • Federated search across several libraries at once.
  • Recommendations and citation links.

Digital library and data warehouse

PointDigital libraryData warehouse
ContentDocuments, mediaStructured business data
UsersStudents, researchers, publicManagers, analysts
AccessSearch and readOLAP queries, reports
Organised byMetadata, subjectsDimensions and facts

Issues in DL searches

  • Many formats and languages.
  • Scanned pages need OCR before text search.
  • Copyright and access rights.
  • Long term preservation.

Searching the National Digital Library of India.

A student searches "thermodynamics second law".

The DL matches the words in full text and in metadata fields such as subject.

Filters narrow results to Engineering, English, PDF.

The student opens a lecture note PDF and follows its citation to a textbook in the same library.

Real-life example

A digital library is like a college library open 24 hours on your phone. You search the shelves by typing, read books on screen and never wait for the issue counter.

Figure: services of a digital library
Figure: services of a digital library

Same or opposite: digital library and traditional library

PointDigitalTraditionalSame or opposite
AccessAnywhere, any timeIn the buildingOpposite
Organised with a catalogueYesYesSame
SearchFull textCatalogue onlyOpposite
CopiesMany users at onceOne per copyOpposite

Exam tip. Define a DL, list how it uses IR, then give the DL and data warehouse table if asked. One search example finishes the answer.

Back to the topic list

Q7. Vector space model, term weighting and similarity measures

Asked 3 times in 2018, 2019, 2020 · Unit 2

From the papers

  • “Write and explain following models of information retrieval: Vector model” (Jun 2020)
  • “What are the three classical models in information retrieval system? Explain vector space retrieval model with example.” (Nov 2019)
  • “Explain in detail about Vector Weighting. What are the general problems with the Vector Model?” (Nov 2018)
  • “Explain the similarity measures that can be used in User search techniques.” (Nov 2018)

The short answer

The vector space model represents every document and query as a vector of term weights, usually tf-idf. Documents are ranked by their similarity to the query, most often the cosine of the angle between the two vectors. It allows partial matching and ranked output.

Write these points

Term weighting

  • tf: how often the term appears in the document.
  • idf = log (N ÷ df): rare terms get more weight.
  • Weight w = tf × idf.

Similarity measures

MeasureFormulaNote
Cosine(q · d) ÷ (|q| |d|)Most used; ignores length
Inner productq · dFavours long documents
Dice2 |A ∩ B| ÷ (|A| + |B|)For sets of terms
Jaccard|A ∩ B| ÷ |A ∪ B|For sets of terms

Advantages and problems

  • Advantages: partial match, ranking, simple and fast.
  • Problems: assumes terms are independent; ignores word order.
  • Synonyms (car, automobile) are not matched; polysemy (bank) confuses.
  • Weights are heuristic.

Ranking three documents for the query "data mining" (N = 3).

idf: data = log(3 ÷ 2) = 0.176, mining = 0.176, other terms = log 3 = 0.477.

D1 (data mining finds data patterns): data = 0.352, mining = 0.176, finds = 0.477, patterns = 0.477.

Cosines: D1 = 0.478, D3 = 0.327, D2 = 0.105.

Ranking: D1, D3, D2. D1 has both query terms, so it is first.

Real-life example

Two friends' tastes in films can be pictured as arrows. If the arrows point the same way, their tastes match, however many films each has seen. Cosine similarity compares documents and queries in the same way.

Figure: the vector space model
Figure: the vector space model

Same or opposite: vector model and Boolean model

PointVectorBooleanSame or opposite
MatchPartial, gradedExact yes or noOpposite
Uses an inverted indexYesYesSame
RankingYesNoOpposite
Term weightstf-idfNoneOpposite

Exam tip. Give the tf-idf and cosine formulas, the similarity table and the problems. Rank a few documents with numbers.

Back to the topic list

Q8. Boolean model and Boolean queries

Asked 3 times in 2018, 2020 · Unit 2

From the papers

  • “Write and explain following models of information retrieval: Boolean model” (Jun 2020)
  • “Explain how coordination, Proximity, field level and stemming affect the broadness or narrowness of a query.” (Dec 2020)
  • “Explain the weighted searches of Boolean systems.” (Nov 2018)
  • “Write a short note on Standard Boolean approach with its key advantages and disadvantages.” (Dec 2020)

The short answer

The Boolean model treats a document as a set of terms and a query as a Boolean expression with AND, OR and NOT. A document is retrieved only if it satisfies the expression exactly, so there is no ranking. Weighted Boolean and extended Boolean systems add weights to allow partial matching and ranking.

Write these points

Advantages and disadvantages of the standard Boolean approach

AdvantagesDisadvantages
Simple and preciseNo ranking: all results are equal
Easy to implement with an inverted indexExact match: too many or too few results
Users control the query fullyHard for ordinary users to write
FastAll terms count the same

Query broadness and narrowness

  • Coordination (AND, OR): AND narrows, OR broadens.
  • Proximity (NEAR, within n words): narrows to terms close together.
  • Field level (title:, author:): narrows to a field.
  • Stemming (comput* matches compute, computer): broadens.

Weighted searches in Boolean systems

Terms carry weights in documents and queries. AND takes the minimum weight, OR takes the maximum (fuzzy), or the p-norm extended Boolean model is used. Results can then be ranked.

Boolean query on the three document index.

Postings: data → {D1, D3}, mining → {D1, D2}, web → {D2}.

data AND mining = {D1}. data OR web = {D1, D2, D3}.

mining AND NOT web = {D1, D2} − {D2} = {D1}.

(data OR web) AND mining = {D1, D2}. No ranking: D1 and D2 are shown as equally good.

Real-life example

Filtering a list of hostel rooms with "AC AND attached bathroom AND NOT top floor" is a Boolean query. You get exactly the rooms that fit, but the list does not tell you which is best.

Figure: making a Boolean query broader or narrower
Figure: making a Boolean query broader or narrower

Same or opposite: standard Boolean and extended Boolean

PointStandardExtendedSame or opposite
MatchExactPartialOpposite
Uses AND, OR, NOTYesYesSame
RankingNoYesOpposite
Term weightsNoYesOpposite

Exam tip. List advantages and disadvantages in a table. Explain how each query feature changes broadness. Show set operations on postings.

Back to the topic list

Q9. Web crawling: crawler-indexer architecture, focused crawling and uses of crawlers

Asked 3 times in 2019, 2020 · Unit 4

From the papers

  • “Explain the crawler indexer architecture.” (Nov 2019, Dec 2020)
  • “Explain how web crawlers can be used for general web search, vertical web search, web archival, web characterization, web mirroring and website analysis.” (Dec 2020)
  • “Discuss focused web crawling. Also list some important issues while crawling the web.” (Nov 2019)
  • “Define the following terms: Crawling” (Jun 2020)

The short answer

A web crawler (spider) downloads web pages automatically by following links, starting from seed URLs, so they can be indexed. The crawler-indexer architecture separates collecting pages (crawler) from building the index (indexer). Focused crawling fetches only pages on a chosen topic.

Write these points

Crawler-indexer architecture

  1. URL frontier holds URLs to visit, ordered by priority.
  2. Fetcher downloads pages, obeying robots.txt and a politeness delay per site.
  3. Parser extracts text and links.
  4. Duplicate checker drops URLs and content already seen.
  5. New links go back to the frontier; text goes to the indexer.
  6. Indexer updates the inverted index used by the query engine.

Uses of crawlers

UseWhat is crawled
General web searchAs much of the web as possible
Vertical searchOne domain, such as jobs or shopping
Web archivalSnapshots over time (Wayback Machine)
Web characterizationStatistics: size, links, languages
Web mirroringCopies of sites
Website analysisBroken links, SEO checks

Focused crawling and crawling issues

  • Focused crawler: a classifier scores each page for the topic; links from relevant pages get higher priority.
  • Issues: politeness, freshness (re-crawl changed pages), duplicates, spider traps, dynamic pages, the deep web, scale.

How long a crawl takes.

Target: 1 billion pages. Speed: 1,000 pages a second.

Time = 10⁹ ÷ 1,000 = 10⁶ seconds.

10⁶ ÷ 86,400 = 11.6 days.

Popular pages change daily, so a real crawler re-visits them far more often than the rest.

Real-life example

A newspaper's reporters (crawlers) visit places and collect stories; the editors (indexer) sort them into sections so readers can find them. New leads from each story send reporters to new places.

Figure: crawler-indexer architecture
Figure: crawler-indexer architecture

Same or opposite: general crawler and focused crawler

PointGeneralFocusedSame or opposite
Pages fetchedEverything reachableOnly on one topicOpposite
Follows linksYesYesSame
ResourcesVery largeSmallerOpposite
Used forWeb searchVertical searchOpposite

Exam tip. Draw the architecture with the frontier loop. List the uses table and the main crawling issues.

Back to the topic list

Q10. Performance evaluation of search engines: precision, recall and other measures

Asked 3 times in 2019, 2020 · Unit 4

From the papers

  • “What are the various measures to evaluate the performance of search engines? Explain them in brief.” (Dec 2020, Jun 2020)
  • “What are the performance measures of a search engine?” (Nov 2019)

The short answer

Search engines are evaluated by how many relevant documents they return and how high they rank them. The basic measures are precision (share of retrieved documents that are relevant) and recall (share of relevant documents that are retrieved). Ranked measures include precision at k, MAP and nDCG; user measures include response time and click-through.

Write these points

Measures

MeasureFormula or meaning
Precisionrelevant retrieved ÷ retrieved
Recallrelevant retrieved ÷ all relevant
F-measure2PR ÷ (P + R)
Precision at kprecision of the top k results
MAPmean of average precision over many queries
nDCGrewards relevant results ranked higher
Falloutnon-relevant retrieved ÷ all non-relevant

Other measures

  • Response time and throughput.
  • Coverage of the web and freshness of the index.
  • User satisfaction, click-through rate, time to first click.
  • Spam and duplicate rate in the top results.

Precision and recall trade off

Returning more results raises recall but usually lowers precision. A precision-recall curve shows this for one system.

A query with 15 relevant documents in the collection.

The engine returns 10 documents; 6 of them are relevant.

Precision = 6 ÷ 10 = 0.6. Recall = 6 ÷ 15 = 0.4.

F1 = 2 × 0.6 × 0.4 ÷ (0.6 + 0.4) = 0.48.

If the relevant ones were at ranks 1, 2, 4, 5, 7, 9: precision at 5 = 4 ÷ 5 = 0.8.

Real-life example

A fisherman's net catches 10 fish, 6 of them the kind he wanted, out of 15 such fish in the pond. Precision says how clean his catch is (6 of 10). Recall says how much of the wanted fish he got (6 of 15).

Figure: precision and recall
Figure: precision and recall

Same or opposite: precision and recall

PointPrecisionRecallSame or opposite
Divides byRetrievedAll relevantOpposite
Counts relevant retrieved documentsYesYesSame
Rises whenFewer, better resultsMore resultsOpposite
Matters most forWeb searchLegal, patent searchOpposite

Exam tip. Give the measure table with formulas. Draw the two set picture. Work precision, recall and F1 from numbers.

Back to the topic list

Q11. Web personalization

Asked 3 times in 2019, 2020 · Unit 5

From the papers

  • “Write short notes on: Web Personalization” (Nov 2019, Dec 2020, Jun 2020)

The short answer

Web personalization changes what a website or search engine shows to suit each user, using their profile, behaviour and context. It can personalise search results, recommendations, page layout and advertisements.

Write these points

Steps

  1. Collect data: clicks, searches, purchases, location, device, explicit ratings.
  2. Build a user profile of interests.
  3. Match the profile to content using rules, content based filtering or collaborative filtering.
  4. Present personalised results and learn from new actions.

Techniques

TechniqueIdeaExample
Rule basedIf a condition, then show contentShow Hindi pages to users in India
Content based filteringItems like those the user likedMore cricket news after cricket clicks
Collaborative filteringItems liked by similar users"Customers also bought"
Context awareTime, place, deviceNearby restaurants on mobile

Benefits and issues

  • Benefits: relevant results faster, higher engagement and sales.
  • Issues: privacy, filter bubbles, cold start for new users, wrong guesses.

Personalised search for "python".

User A often searches programming topics; User B watches wildlife videos.

Both type python.

User A's profile weights programming pages, so python.org ranks first.

User B sees pages on the snake first. The same query gives two different rankings.

Real-life example

A tea stall owner who knows you take less sugar starts making your tea that way as soon as you arrive. A personalised website remembers your preferences in the same way.

Figure: web personalization
Figure: web personalization

Same or opposite: content based and collaborative filtering

PointContent basedCollaborativeSame or opposite
UsesItem featuresOther users' choicesOpposite
Personalises resultsYesYesSame
New item problemNoYesOpposite
Finds surprisesRarelyOftenOpposite

Exam tip. Write the four steps and the technique table. Mention privacy as the main issue. One search example is enough.

Back to the topic list

Q12. Probabilistic model and comparison of the classical models

Asked 2 times in 2018, 2020 · Unit 2

From the papers

  • “Write and explain following models of information retrieval: Probabilistic model” (Jun 2020)
  • “Give a comparative study of various classical models of information retrieval methods.” (Jun 2020)
  • “Explain in brief about Probabilistic weighting approach. What are the different areas in which the probabilistic approach may be applied?” (Nov 2018)

The short answer

The probabilistic model ranks documents by the probability that they are relevant to the query. This is the probability ranking principle. The binary independence model (BIM) treats terms as present or absent and independent. It gives each query term a weight from how often it appears in relevant and non-relevant documents.

Write these points

Key ideas

  • Rank by P(relevant | document, query).
  • Each matching term adds a weight; the sum is the score (retrieval status value).
  • Without relevance information, the weight is like idf: log ((N − n + 0.5) ÷ (n + 0.5)), with n = documents containing the term.
  • With feedback, weights are re-estimated from the documents marked relevant.
  • BM25 extends it with term frequency and document length.

Areas where it is applied

  • Web and enterprise search (BM25).
  • Spam and email filtering.
  • Relevance feedback systems.
  • Question answering and recommender systems.

Comparison of the classical models

PointBooleanVectorProbabilistic
BasisSet theoryLinear algebraProbability
RankingNoYes, cosineYes, probability
Partial matchNoYesYes
Term weightsNonetf-idfLearned from relevance
WeaknessExact match onlyIndependence of termsNeeds initial guesses

Weight of a rare term.

Collection N = 1,000 documents. The term "lemmatizer" is in n = 10 of them.

Weight = log10 ((1000 − 10 + 0.5) ÷ (10 + 0.5)) = log10 (94.3) = 1.97.

A common term in 500 documents gets log10 (500.5 ÷ 500.5) = 0.

So a document matching "lemmatizer" scores far higher than one matching only the common term.

Real-life example

A doctor ranks possible illnesses by how likely each is, given the symptoms. A rare symptom points strongly to one illness; a cough points to many. The probabilistic model ranks documents with the same logic.

Figure: ranking in the probabilistic model
Figure: ranking in the probabilistic model

Same or opposite: vector and probabilistic models

PointVectorProbabilisticSame or opposite
ScoreCosine similarityProbability of relevanceOpposite
Ranks documentsYesYesSame
TheoryGeometryProbabilityOpposite
Assumes terms independentYesYesSame

Exam tip. State the probability ranking principle and the term weight formula. Then make the three model comparison table.

Back to the topic list

Q13. Latent semantic indexing

Asked 2 times in 2019, 2020 · Unit 2

From the papers

  • “Explain Latent semantic indexing model of information retrieval.” (Jun 2020)
  • “Discuss Latent Semantic Indexing in detail. Also list some of its advantages and disadvantages.” (Nov 2019)

The short answer

Latent semantic indexing (LSI) reduces the term-document matrix with singular value decomposition (SVD) to a small number of hidden concepts. Documents and queries are compared in this concept space, so a document can match a query even if they share no exact words, as long as they share meaning.

Write these points

Steps

  1. Build the term-document matrix A (terms × documents), with tf-idf weights.
  2. Compute SVD: A = U Σ Vᵀ.
  3. Keep only the k largest singular values (k about 100 to 300): A_k = U_k Σ_k V_kᵀ.
  4. Map the query into the k dimensional space.
  5. Rank documents by cosine similarity in that space.

Advantages

  • Handles synonyms: car and automobile end up close.
  • Reduces noise and storage.
  • Works for any language, no dictionary needed.

Disadvantages

  • SVD is costly for large collections.
  • Hard to update when new documents arrive.
  • Concepts are hard to interpret.
  • Choosing k is trial and error.

Why LSI matches a query with no shared words.

D1 has car, engine. D2 has automobile, engine. D3 has fruit, mango.

car and automobile both occur with engine, so SVD puts them on the same concept (vehicles).

The query automobile has no word in common with D1, so the vector model scores D1 as 0.

In the 2 concept space, D1 and D2 are near the query and D3 is far, so D1 is now retrieved.

Real-life example

If you tell a friend you want a "two wheeler", they suggest bikes and scooters even though you never said those words. They understand the idea behind your words. LSI tries to do this with documents.

Figure: latent semantic indexing
Figure: latent semantic indexing

Same or opposite: vector model and LSI

PointVector modelLSISame or opposite
SpaceTermsHidden conceptsOpposite
Uses cosine similarityYesYesSame
Handles synonymsNoYesOpposite
CostLowHigh (SVD)Opposite

Exam tip. Write the SVD steps with A = U Σ Vᵀ. List advantages and disadvantages. A synonym example shows why LSI helps.

Back to the topic list

Q14. Document preprocessing and clustering

Asked 2 times in 2018, 2020 · Unit 3

From the papers

  • “What are the five stages in document preprocessing?” (Dec 2020)
  • “Explain how clustering can be used for query expansion, document grouping, document indexing and visualization of search result.” (Dec 2020)
  • “What do you mean by cluster? Give the hierarchy of Clusters.” (Nov 2018)

The short answer

Document preprocessing turns raw text into index terms in five stages: lexical analysis, stop word removal, stemming, selection of index terms and thesaurus construction. Clustering groups similar documents together. In IR, clusters help query expansion, grouping, indexing and visualising results.

Write these points

Five stages of document preprocessing

  1. Lexical analysis: split text into words; handle digits, hyphens, punctuation, case.
  2. Stop word removal: drop very common words (the, is, of).
  3. Stemming: reduce words to a stem (connected, connection → connect), e.g. Porter stemmer.
  4. Index term selection: keep nouns or noun phrases that carry meaning.
  5. Thesaurus construction: relate synonyms and broader or narrower terms.

Hierarchy of clusters

  • Hierarchical: agglomerative (merge closest pairs bottom up) or divisive (split top down), giving a dendrogram.
  • Flat (partitional): k-means divides documents into k groups.
  • Links between clusters: single link, complete link, average link.

Uses of clustering in IR

UseHow
Query expansionAdd terms from the cluster of top results
Document groupingShow results in topic groups
IndexingSearch cluster centres first, then members
VisualisationMap of topics in the result set

Preprocessing one sentence.

Text: "The Students are connecting to the Online Libraries."

Lexical analysis and lowercase: the, students, are, connecting, to, the, online, libraries.

Stop words removed: students, connecting, online, libraries.

Stemmed: student, connect, onlin, librari. These four become index terms.

Real-life example

Before arranging a library, staff remove torn covers and blank pages (preprocessing), then put books on similar subjects on the same shelf (clustering). Finding a book is then quick.

Figure: document preprocessing
Figure: document preprocessing

Same or opposite: agglomerative and k-means clustering

PointAgglomerativek-meansSame or opposite
ResultTree of clustersk flat groupsOpposite
Groups similar documentsYesYesSame
Needs k in advanceNoYesOpposite
Speed on large dataSlowFastOpposite

Exam tip. Write the five stages in order with one example word each. Explain the cluster hierarchy and the four uses.

Back to the topic list

Q15. Web search: IR and web search, meta search, deep web and search engine optimization

Asked 2 times in 2019, 2020 · Unit 4

From the papers

  • “What do you mean by Meta Search?” (Dec 2020)
  • “Differentiate between Information Retrieval and Web Search.” (Nov 2019)
  • “Write short notes on: Deep web” (Nov 2019)
  • “Write short notes on: Search Engine Optimization” (Nov 2019)

The short answer

Web search is IR on the whole web: billions of linked, changing, unevenly good pages. It differs from classic IR in scale, links, spam and users. A meta search engine sends a query to several search engines and merges their results. The deep web is content not reachable by ordinary crawling. Search engine optimization (SEO) improves a site's ranking in organic results.

Write these points

IR and web search

PointClassic IRWeb search
CollectionFixed, curatedHuge, changing, uncontrolled
DocumentsPlain textLinked HTML, media
Ranking signalsText onlyText, links, clicks, freshness
SpamRareCommon
UsersExpertsEveryone, short queries

Meta search

  • Sends the query to several engines (dispatcher).
  • Collects their results and removes duplicates.
  • Merges and re-ranks them (rank fusion).
  • Wider coverage, but slower and limited by each engine.

Deep web

  • Pages behind forms, logins and search boxes; dynamic database pages.
  • Much larger than the surface web.
  • Reached by form filling crawlers, site maps and partner feeds.

Search engine optimization

  • On-page: useful content, title and headings with key terms, fast pages, mobile friendly.
  • Off-page: links from trusted sites.
  • Technical: sitemap, robots.txt, canonical URLs.
  • Avoid spam tricks such as keyword stuffing; engines penalise them.

Meta search merging two lists.

Engine 1 ranks pages A, B, C. Engine 2 ranks C, A, D.

Score by position: 3 points for 1st, 2 for 2nd, 1 for 3rd.

A = 3 + 2 = 5, C = 1 + 3 = 4, B = 2, D = 1.

Merged list: A, C, B, D. Duplicates were combined, not repeated.

Real-life example

A travel site that checks several airline sites and shows all fares together is a meta search. The flight details hidden behind each airline's booking form are like the deep web.

Figure: how a meta search engine works
Figure: how a meta search engine works

Same or opposite: search engine and meta search engine

PointSearch engineMeta search engineSame or opposite
Own indexYesNoOpposite
Answers keyword queriesYesYesSame
CoverageOne engine'sSeveral combinedOpposite
ExampleGoogleDogpileOpposite

Exam tip. Give the IR and web search table. Explain meta search with a merge example. Add short notes on the deep web and SEO.

Back to the topic list

Start with the latest papers

Web and Information Retrieval - Jun 2020 (old code CS-7004)

Web and Information Retrieval - Dec 2020 (old code CS-7004)

Web and Information Retrieval - Nov 2019 (old code CS-7004)

See all 4 papers →

Web and Information Retrieval (CI-802-C) FAQs

What are the most important topics in Web and Information Retrieval?

By how often they were asked in the papers on this site: Information retrieval: meaning, taxonomy, retrieval process, components and issues (4 times); Relevance feedback, query expansion and rewriting (4 times); Indexing: inverted index, cataloging, concept indexing, automatic indexing, indexing and searching (4 times); Link analysis and ranking algorithms: PageRank and HITS (4 times); Online IR systems, OPACs and snippet generation (4 times).

How were these Web and Information Retrieval important questions chosen?

Each topic was counted from the questions in the past papers listed on this site (2018-2020). Repeated is the number of times the topic came. The counts come from keyword matching and the answers are not teacher-reviewed, so use them together with your syllabus.

Is there a PDF of Web and Information Retrieval important questions with answers?

Yes. The Paperwala Imp Question & Answer PDF for Web and Information Retrieval is free to download from this page.

The 15 most repeated topics of Web and Information Retrieval (CI-802-C) for RGPV B.Tech CSIT semester 8, counted from the previous year papers on this site. Web and Information Retrieval is also searched for as CS-7004.

Also known as CS-7004