- Gap Encoding
Particularly effective for the sorted inverted lists (List Intersection needs them sorted): the more frequent a word, the denser its list and the smaller the gaps, so few bits per posting. §
- Join $T_1 \bowtie T_2$
This is the same algorithm as the intersection of sorted lists used for inverted index queries in Lecture 1 (Slides 05, p. 13). The one difference: whenever a value of X matches a value of Y, output the pairs with all rows of Y that… §
- List Intersection
Given two sorted lists L1,L2 (e.g. the inverted lists of two query words in an Inverted Index), list intersection computes the sorted list L1∩L2 of the elements contained in both. For keyword search it implements AND-semantic… §
- Q-Gram Index
A q-gram index is an Inverted Index with different objects: a document index maps each word to document ids, a q-gram index maps each q-gram to word ids. The construction code from Lecture 1 carries over almost unchanged. §
- Sparse Matrix
In row-major order, the entries of row i (term i) are consecutive and their column indices are the ids of the documents that contain term i, with the score as payload. This is exactly an Inverted Index with scores (row i = the post… §
- TF-IDF
dfw: number of documents containing w. In an Inverted Index this is simply the length of the inverted list of w. §
- Term Frequency
For a word (term) w and a document D, the term frequency tf(w,D) (short tf) is the number of times w occurs in D. In an Inverted Index with tf scores, the inverted list of w holds the pairs… §
- Zipf's Law
Consequences for the Inverted Index: a few words (the, of) have very long inverted lists, most words very short ones. Hence ordering the lists by length before intersecting pays off, and frequent words need a low weight in ranking, which t… §
- VL01 – Introduction, Inverted Index, Zipf's Law
The lecture outlines the course (indexing, ranking, databases, knowledge graphs, error-tolerant search, web apps, embeddings, vector databases and RAG) and its organisation. Its technical part solves keyword search: instead of scanning all… §
Inverted Index — central data structure: word → sorted list of record IDs, built in one linear pass §
- VL02 – Ranking and Evaluation
In the inverted lists, store with each doc ID a score that captures how much the document is “about” that word. §
Inverted Index — extended with scored postings; merging aggregates scores §
- VL08 – Fuzzy Search, Prefix Edit Distance, Q-Gram Index
A q-gram index is an Inverted Index with different objects than a document index: §
Inverted Index — the q-gram index is an inverted index over q-grams instead of words §
- VL11 – Vector Space Model, Word Embeddings
This is exactly an Inverted Index with scores. Column-major order gives, per document, its term vector. §
Inverted Index — equivalent to the sparse row-major term-document matrix §
- Encodings and Compression
Where the numbers come from. The sorted document IDs of an inverted list are large, but their differences are small, especially in the long lists of frequent words (Zipf’s law: a few words account for most occurrences). Gap Encoding turns… §
- Inverted Index and Ranking
Keyword search is answered by an Inverted Index: each word maps to the sorted list of documents containing it, and multi-keyword queries intersect (AND) or merge (OR) these lists. To rank the hits, each posting carries a score for how much… §
Inverted Index — word → sorted list of postings (doc ID, score); the data structure §
- List Intersection and Search
Keyword queries on an Inverted Index reduce to operations on sorted lists of IDs: AND-queries intersect them, OR-queries merge them. The central question is how to do this as fast as possible. The zipper algorithm needs linear time… §
- Word Embeddings and Language Models
| dot product | BM25 | handled by BM25’s length normalization | exactly the BM25 ranking of the Inverted Index (Lecture 2) | ES11, Ex. 1 | §
A is mostly zeros, so it is kept as a sparse matrix of (value, row, column) triples. Row-major order groups the entries per term, which is literally an Inverted Index with scores; column-major order groups them per document. So “VSM with… §