Index¶
Core Idea¶
An index is an auxiliary structure kept alongside a primary collection that maps selected keys to locations (pointers, not copies), so lookup by key is far faster than scanning — bought with a maintenance burden on every update.
How would you explain it like I'm…
Back-Of-Book Finder
The Pointer List
Key, Pointer, Maintenance
Tensions in Practice¶
Broad Use¶
- Books: back-of-book subject index and table of contents mapping terms to page numbers.
- Libraries: card catalogs, classification schemes, and controlled-vocabulary thesauri.
- Databases: B-tree, hash, bitmap, and inverted indexes over chosen columns.
- Search engines: inverted indexes mapping each term to the documents containing it.
- Neuroscience: hippocampal indexing — the hippocampus holds pointers to neocortical patterns, not the patterns.
- Genetics: chromosomal maps as positional indexes of genes.
- Geography: gazetteers mapping place names to coordinates.
- Law: statute indexes, case-citation systems, and land registries keyed parcel-to-owner.
Clarity¶
Makes visible that fast retrieval is not free: it is paid for by a side-structure that is itself maintained at cost, so "make this lookup fast" becomes "which keys, what maintenance, which queries am I not speeding up?"
Manages Complexity¶
It redistributes cost — turning an O(n) scan into an O(log n) or O(1) lookup by moving the price off the repeated read path onto the write path and a side storage budget, paid once per change.
Abstract Reasoning¶
It poses substrate-independent design questions — which key, which structure (ordered for ranges vs hashed for equality), what selectivity, what maintenance timing, and what staleness a given retrieval problem can tolerate.
Knowledge Transfer¶
- Databases ↔ libraries: controlled-vocabulary selectivity is the same trade-off as choosing which columns to index.
- Search engines: the inverted move ("for each term, which rows?") that made full-text search tractable reappears in citation indexes and reverse lookups.
- Cognition: hippocampal pointer-sets make tip-of-the-tongue legible as an index hit but content-fetch miss, not a content loss.
Example¶
A database B-tree index on last_name drops a query from an O(n) scan of a
million rows to an O(log n) descent — each leaf holding a Pointer to the row,
while every insert pays O(log n) to rebalance the tree.
Relationships to Other Abstractions¶
Current abstraction Index Prime
Parents (1) — outgoing typed relations
-
Index presupposes Search and Retrieval Prime
'Not search_and_retrieval — search is the ACT; an index is a pre-built side structure that makes certain searches fast.' An index presupposes a retrieval setting it accelerates; it is the apparatus-for-retrieval, not the retrieval activity.
Children (10) — abstractions linked here by typed relations
-
Charlson Comorbidity Index Domain-specific is a kind of Index
Charlson Comorbidity Index is a domain-specific kind of Index: The Charlson Comorbidity Index assigns weighted points to specified coexisting conditions and combines them into a prognostic score associated with mortality or survival risk over a declared time horizon.
-
Combinatorial number system Domain-specific is a kind of Index
The candidate literally instantiates prime:index; What makes it its own entry: A bijective representation of nonnegative integers as fixed-size combinations through sums of binomial coefficients, enabling direct ranking and unranking without listing earlier combinations.
-
Consumer price index Domain-specific is a kind of Index
It remains its own entry because its identity is fixed by the statistical authority and CPI series, target households and geography, consumption scope, reference period and index base, classification and weights, price concept and sampling, outlet and item replacement, quality adjustment, missing-price imputation, aggregation formula, chain linking, seasonal treatment, revisions and uncertainty.
-
Index set (computability) Domain-specific is a kind of Index
What makes it its own entry: the domain-specific identity determined by the acceptable numbering and machine model, partial computable functions or c.e.
-
Inverted index Domain-specific is a kind of Index
It remains its own entry because its identity is fixed by the document collection and identifiers, parsing and token-normalization pipeline, term dictionary, postings-list ordering, document frequency and term frequency, positional and field payloads, compression, construction and incremental-update policy and query and ranking operations.
- Postings List Domain-specific is a kind of Index
**Index** is the broader abstraction this entry instantiates.
- Randić index Domain-specific is a kind of Index
It remains its own entry because its identity is fixed by the graph class and treatment of hydrogens or bond multiplicity, vertex degrees, edge set, exponent convention, summation and claimed chemical or graph-theoretic interpretation.
- Sequential access Domain-specific is a kind of Index
It remains its own entry because its identity is fixed by the ordered collection or storage medium, current position and traversal direction, next-operation semantics, rewind seek or skip capabilities, access-time cost model, record boundaries, read and write constraints, buffering and streaming, locality effects and contrast with random or direct access.
- Indexed family Prime is a kind of Index
The accepted reference-grade review places Indexed family under Index because the child instantiates or depends on the parent's broader structure while retaining its own constitutive identity.
- Housing Affordability Index Domain-specific includes Index
medians and regional summaries compress distributions.
Hierarchy paths (4) — routes to 3 parentless roots
- Index → presupposes Search and Retrieval → presupposes Problem Space → is a kind of Representation → presupposes Abstraction
- Index → presupposes Search and Retrieval → presupposes Trade-offs → presupposes Constraint
- Index → presupposes Search and Retrieval → presupposes Problem Space → is a decomposition of State and State Transition → includes Phase Space
- Index → presupposes Search and Retrieval → presupposes Problem Space → presupposes Problem Representation → is a kind of Representation → presupposes Abstraction
Not to Be Confused With¶
- Index is not Caching because an index stores pointers to where values live (an index hit returns a location to follow), whereas a cache stores copies of values (a cache hit returns the data, with staleness as its risk).
- Index is not Associative Memory because an index is key-addressable — exact lookups on the chosen keys it was built over — whereas associative memory is content-addressable, recalling from partial or similar cues.
- Index is not Search and Retrieval because search is the act of locating items matching a query, whereas an index is a pre-built side structure that makes some of those searches cheap.