All Questions
Database Indexing medium

A standard B-Tree fails for Full Text Search (finding a word in a sentence). What structure does an Inverted Index use?

  1. A A Term Dictionary that maps individual words (tokens) to a 'Postings List' which contains the IDs of every document where that word appears.
  2. B A specialized multi-level Hash Map that utilizes every possible substring and character combination as a unique key for the entire dataset.
  3. C A QuadTree-based geometric index that treats every word as a set of spatial coordinates within a multi-dimensional linguistic vector space.
  4. D A linear Linked List structure that is optimized for sequential traversal and is natively integrated with the database's internal transaction logs.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions