Home Knowledge Base Parallel Prefix Sum (Scan)

Parallel Prefix Sum (Scan) is a fundamental parallel primitive that computes all prefix sums (running totals) of an array in O(n/P + log n) parallel time, transforming an apparently sequential computation into a highly parallel one — scan is arguably the most important building block in parallel algorithms, appearing in sorting, stream compaction, histogram computation, and memory allocation.

Scan Definitions:

Hillis-Steele Algorithm (Inclusive Scan):

Blelloch Algorithm (Work-Efficient Scan):

GPU Implementation (CUDA):

Scan Applications:

Multi-GPU and Distributed Scan:

Parallel prefix sum demonstrates a profound principle in parallel algorithm design — transforming sequential dependencies into tree-structured computations that expose logarithmic parallelism, enabling what appears to be an inherently sequential operation to execute with near-linear speedup across thousands of processors.

parallel prefix sum scaninclusive exclusive scanwork efficient scan blellochgpu prefix sum parallelscan applications parallel

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.