# topic/cs

17 notes · all tags

Approximate Nearest Neighbor Search

Exact nearest neighbor search in high dimensions is per query (brute-force scan). For millions of vectors, this is too slow. Approximate methods trade a small accuracy loss for…

5 links · 2 backlinks
# topic/cs/algo

Big-O and Complexity Analysis

Big-O notation describes how an algorithm's time or space scales with input size , ignoring constants and lower-order terms.

3 links · 7 backlinks
# topic/cs/theory

Computation Graphs

A computation graph is a directed acyclic graph (DAG) where nodes are operations and edges carry values. It makes the Chain Rule (Multivariable) systematic.

3 links · 4 backlinks
# topic/math/optimization# topic/cs

Computational Complexity of Attention

Standard Self-Attention has time and memory in sequence length . This is the fundamental bottleneck of transformers.

4 links · 5 backlinks
# topic/cs/theory# topic/ai-ml/deep

Computer Science Foundations

Computer science foundations study the cost and structure of computation. The useful mental model is: algorithms transform inputs into outputs, data structures control access…

10 links · 1 backlinks
# topic/cs/theory# topic/cs/algo

Distributed Training Strategies

When a model or dataset is too large for a single GPU, training must be distributed across multiple devices.

3 links · 2 backlinks
# topic/cs/system

Dynamic Programming

Dynamic programming (DP) solves problems with optimal substructure (optimal solution built from optimal sub-solutions) and overlapping subproblems (same subproblems recur) by…

4 links · 2 backlinks
# topic/cs/algo

Floating Point and Quantization

Numbers in hardware have finite precision. Choosing the right format trades off range, precision, memory, and speed.

3 links · 3 backlinks
# topic/cs/system

GPU Architecture and CUDA

GPUs achieve massive parallelism through thousands of simple cores executing the same instruction on different data (SIMT — Single Instruction, Multiple Threads).

3 links · 4 backlinks
# topic/cs/system

Graphs and Traversals

A graph consists of vertices and edges. Directed graphs (digraphs) have ordered edges. A DAG (directed acyclic graph) has no cycles.

4 links · 3 backlinks
# topic/cs/algo

Hash Tables

A hash table maps keys to values via a hash function , giving average-case lookup, insert, and delete.

2 links · 3 backlinks
# topic/cs/algo

Memory Hierarchy and IO-Awareness

Modern hardware is memory-bound, not compute-bound for most ML operations. Understanding the memory hierarchy is the key to writing fast code.

3 links · 6 backlinks
# topic/cs/system

P vs NP and Intractability

P = problems solvable in polynomial time. NP = problems whose solutions are verifiable in polynomial time. The question is open, but widely believed to be .

2 links · 2 backlinks
# topic/cs/theory

Randomized Algorithms

Randomized algorithms use random choices to achieve better average-case performance, simpler implementations, or solutions to problems where deterministic approaches are…

4 links · 1 backlinks
# topic/cs/algo

Sorting and Selection

Sorting arranges elements in order. Selection finds the -th smallest (or largest) element without fully sorting.

2 links · 1 backlinks
# topic/cs/algo

Systems and Scaling

Systems and scaling study how model training and inference behave on real hardware. The useful mental model is: performance is limited by compute, memory, communication, and…

7 links · 1 backlinks
# topic/cs/system

Tokenization

Tokenization converts raw text into the integer sequences that transformers process.

2 links · 4 backlinks
# topic/ai-ml/deep# topic/cs