Tensorum
Glossary

The vocabulary of senior engineers.

59 terms across algorithms, system design, distributed systems and AI — each linked to the course that teaches it.

Back-of-the-envelope EstimationSystem Design

Quick order-of-magnitude maths for QPS, storage and bandwidth that rules designs in or out before you draw boxes.

System Design Foundations →

BacktrackingDSA

Depth-first search over choices that builds a candidate step by step and undoes each step after exploring it.

Recursion & Backtracking →

Binary Search on AnswerDSA

Binary searching over possible answers (capacity, speed, days) using a monotone feasibility check instead of searching an array.

Binary Search →

Cache StampedeSystem Design

Many requests miss the cache at once (often after expiry) and overload the backing store; mitigated by locking, request coalescing or early refresh.

Real-time & Streaming →

Cache-asideSystem Design

The application reads from cache first, loads from the database on a miss and populates the cache itself.

System Design Foundations →

CDNSystem Design

Content Delivery Network: geographically distributed caches that serve static and cacheable content close to users.

System Design Foundations →

Consistent HashingDistributed Systems

Mapping keys and nodes onto a ring so adding or removing a node only moves the keys adjacent to it.

Partitioning & Sharding →

Context WindowAI Engineering

The maximum number of tokens a model can attend to in one request, including the prompt and its own output.

LLM Foundations →

CRDTDistributed Systems

Conflict-free Replicated Data Type: a structure whose concurrent updates always merge deterministically without coordination.

Replication & Consistency Models →

Dead Letter QueueSystem Design

A queue that collects messages that repeatedly fail processing, so they can be inspected without blocking the main flow.

System Design Foundations →

Dijkstra's AlgorithmDSA

Single-source shortest paths on graphs with non-negative weights, expanding the closest unvisited node with a priority queue.

Graph →

Double-entry LedgerSystem Design

Every transaction records equal debits and credits across accounts, so balances always reconcile — the basis of payment systems.

Money & Ledgers →

Exchange ArgumentDSA

A proof technique for greedy algorithms: show that swapping any optimal solution's choice for the greedy one never makes it worse.

Greedy →

Fan-out on WriteSystem Design

Pushing each new post into every follower's precomputed feed at write time; fast reads, expensive for accounts with huge followings.

Real-time Fan-out & Push →

Fast & Slow PointersDSA

Two pointers moving at different speeds — used to detect cycles (Floyd's algorithm) and find the middle of a linked list.

Linked List →

Fencing TokenDistributed Systems

A monotonically increasing number issued with a lock or lease so storage can reject writes from a holder whose lease expired.

Locks & Coordination →

GeohashSystem Design

Encoding latitude/longitude into a string where shared prefixes mean nearby cells — a simple way to index and query locations.

Location & Mobility →

HNSWAI Engineering

Hierarchical Navigable Small World graph: the most common index for fast approximate nearest-neighbour vector search.

Storage Engines & Indexing →

Idempotency KeyDistributed Systems

A client-generated unique key stored with the result of a request, so retries return the original result instead of repeating side effects.

Idempotency & Exactly-once →

Kadane's AlgorithmDSA

Linear-time maximum subarray sum: at each index either extend the previous subarray or start fresh.

Dynamic Programming →

KV CacheAI Engineering

Stored attention keys and values for already-processed tokens, so generation doesn't recompute the whole prefix each step.

LLM Serving, Cost & Performance →

Lamport ClockDistributed Systems

A logical counter incremented on each event and merged on message receipt, giving an ordering consistent with causality.

Time, Clocks & Ordering →

LinearizabilityDistributed Systems

The strongest single-object consistency: every operation appears to take effect atomically at one point between its start and end.

Replication & Consistency Models →

LLM-as-JudgeAI Engineering

Using a model with a rubric to grade another model's outputs at scale; calibrated against human labels.

Evaluation & Guardrails →

LSM TreeDistributed Systems

Log-Structured Merge tree: buffers writes in memory, flushes sorted files and compacts them — optimised for heavy write loads.

Storage Engines & Indexing →

MCPAI Engineering

Model Context Protocol: an open standard for exposing tools, resources and prompts to AI applications through a common interface.

Agents & Tool Use →

MemoizationDSA

Caching the result of a recursive call by its arguments so overlapping subproblems are computed once — top-down dynamic programming.

Dynamic Programming →

Monotonic StackDSA

A stack kept in increasing or decreasing order; each pop resolves a 'next greater / smaller element' query in amortised O(1).

Stack & Queue →

Orchestrator–WorkerAI Engineering

A multi-agent pattern where a lead agent decomposes a task, delegates sub-tasks to workers and synthesises their results.

Agentic AI Systems & Orchestration →

Prefix SumDSA

A running total where prefix[i] holds the sum of the first i elements, so any range sum is prefix[r] − prefix[l] in O(1).

Array →

Prompt InjectionAI Engineering

Untrusted input that tries to override an AI system's instructions — a core security concern for agents with tools.

AI System Design →

QuadtreeSystem Design

A tree that recursively splits 2D space into four quadrants, adapting cell size to point density for proximity search.

Location & Mobility →

RaftDistributed Systems

An understandable consensus algorithm built from leader election, log replication and safety rules; used by etcd and Consul.

Consensus & Leader Election →

RAGAI Engineering

Retrieval-Augmented Generation: retrieve relevant documents at query time and give them to the model so answers are grounded and citable.

Retrieval-Augmented Generation →

Re-rankingAI Engineering

A second, more accurate model (often a cross-encoder) that reorders the top retrieved passages before generation.

Retrieval-Augmented Generation →

ReActAI Engineering

An agent pattern that interleaves reasoning steps with actions (tool calls) and observations until the task is done.

Agents & Tool Use →

SagaDistributed Systems

A long-running transaction split into local steps, each with a compensating action to undo it if a later step fails.

Distributed Transactions →

Sliding WindowDSA

A contiguous range that grows on the right and shrinks on the left while maintaining an invariant, giving linear-time subarray answers.

Sliding Window →

TemperatureAI Engineering

A sampling parameter that sharpens (low) or flattens (high) the next-token distribution, trading determinism for diversity.

LLM Foundations →

TokenAI Engineering

The unit a language model reads and writes — a word piece produced by the tokenizer. Cost, latency and context limits are counted in tokens.

LLM Foundations →

Token BucketDistributed Systems

A rate limiter where tokens refill at a fixed rate and each request spends one, allowing short bursts up to the bucket size.

Rate Limiting & Admission Control →

Topological SortDSA

A linear ordering of a directed acyclic graph's nodes where every edge points forward; found with Kahn's BFS or DFS post-order.

Graph →

Transactional OutboxDistributed Systems

Writing an outgoing event to an outbox table in the same transaction as the state change, then relaying it reliably to a broker.

Distributed Transactions →

Two HeapsDSA

A max-heap for the lower half and a min-heap for the upper half of a stream, giving the running median in O(log n) per insert.

Heap →

Two PointersDSA

Two indices that move through a sequence — towards each other or in the same direction — to replace a nested loop with a single pass.

Array →

Two-phase Commit (2PC)Distributed Systems

A coordinator asks all participants to prepare, then to commit; atomic across nodes but blocking if the coordinator fails.

Distributed Transactions →

Union-Find (DSU)DSA

A disjoint-set structure with near-constant find and union operations, using path compression and union by rank.

Graph →

Vector ClockDistributed Systems

A per-node vector of counters that can tell whether two events are causally ordered or concurrent.

Time, Clocks & Ordering →

WatermarkDistributed Systems

In stream processing, a marker asserting that no events older than time T are expected, letting windows close and emit results.

Stream Processing & Aggregation →

Write-ahead Log (WAL)System Design

An append-only log written before data pages change, so the database can recover committed changes after a crash.

Storage Engines & Indexing →