Skip to content

Low-Density Parity-Check Code

A linear error-correcting block code specified by sparse parity-check constraints on its valid codewords.

Version
v1 · 2026-10-03 · History
Domain-specific #
13405
Aliases
Ldpc Code

Core Idea

A low-density parity-check (LDPC) code is a linear error-correcting block code defined through sparse parity constraints. For a binary code, a matrix \(H\) selects valid codewords \(c\) by \(Hc^\mathsf{T}=0\) over \(\mathrm{GF}(2)\). Rows are checks, columns are codeword positions, and nonzero entries describe their local variable–check graph. The sparse representation distinguishes this code family; belief-propagation decoding is a possible use, not part of the code's definition.[1][2]

How would you explain it like I'm…

Lots of Little Check Rules

When you send a message made of 0s and 1s, some bits can get messed up on the way. A low-density parity-check code adds lots of little checking rules, and each rule only looks at a few bits and says, 'These must add up to an even number.' If a rule breaks, you know something nearby went wrong and can try to fix it.

Sparse Even-Number Checks

When a message is sent as 0s and 1s, noise can flip some of them. A low-density parity-check code adds extra bits so that the message must obey many 'parity checks': rules saying that a certain small group of bits must have an even number of 1s. 'Low-density' means each rule only involves a few bits. A message counts as valid only if every rule is satisfied, so broken rules help find and fix the flipped bits. You can draw the rules as a picture linking each bit to the checks it belongs to.

Sparse Parity-Check Code

A low-density parity-check (LDPC) code is a type of linear error-correcting block code. It's defined by a parity-check matrix H: a word c of n bits is a valid codeword exactly when Hc = 0, working modulo 2, so each row of H is a parity equation that a set of bits must satisfy. 'Low-density' means H is sparse: most entries are zero, so each check involves only a few bit positions. The same matrix can be drawn as a bipartite 'Tanner graph', with one node per bit, one per check, and an edge for each 1 in H, which makes the local structure easy to see. The code itself is different from the method used to decode it; a graph or decoder alone isn't an LDPC code. Both regular and irregular, random and structured matrices count.

 

A low-density parity-check (LDPC) code is a linear block code specified by a sparse parity-check representation. In the binary case, a matrix H defines the code C = {c ∈ GF(2)ⁿ : Hcᵀ = 0}; each row is a parity equation over a small subset of codeword positions, and sparsity means relatively few nonzero entries in the chosen representation. The nonzero pattern of H equivalently defines a bipartite Tanner graph with variable nodes (columns, codeword positions), check nodes (rows, parity equations) and an edge per nonzero entry, exposing local constraint neighborhoods. This graph is a view of H, not an additional required object. MacKay's analysis separates the code construction from the optimal decoding problem and from any particular practical decoder, so neither a graph lacking parity equations nor a decoder lacking a specified sparse code is itself an LDPC code. Regular and irregular degree profiles, and random and structured constructions, all instantiate the family.

Scope of Application

Gallager's random regular construction fixes low row and column weights when dimensions permit. Other LDPC matrices have irregular degrees or deliberately structured base graphs. 3GPP New Radio specifies a lifted base-graph LDPC construction for wireless channel coding, while flash-memory research studies LDPC-protected blocks with soft information from multiple cell reads. Those settings share sparse parity-check codewords but not one physical channel, decoder, or error rate.[1][2][3][4]

Clarity

The valid-word set and a sparse parity-check representation must both be identified. An unrelated sparse matrix, a graph without parity equations, a decoder alone, or a generic dense linear code is insufficient. A dense matrix formed by row operations on a known sparse \(H\) may still describe the same LDPC code; not every equivalent representation must look sparse. The code dimension is \(n-\operatorname{rank}(H)\), so dependent check rows do not each reduce the rate.[1]

Manages Complexity

Sparse checks describe a large valid-word set through local equations rather than enumerating every codeword. The same incidence relation lets implementations organize inference around variable–check neighborhoods. But low graph density alone does not ensure easy decoding or near-capacity behavior: matrix design, channel, decoder, blocklength, and observation quality all matter.[1][2]

Abstract Reasoning

Each binary row of \(H\) requires an even sum of its participating codeword bits. The intersection of those row constraints is the linear code. Holding \(H\) fixed while changing the decoder or replacing a wireless receiver with a storage-read model preserves code identity; removing evidence of a sparse parity-check representation removes the LDPC classification. Regular and irregular degree patterns are variants, not competing definitions.[1][2]

Knowledge Transfer

The transferable abstraction is a codeword set governed by local sparse parity checks. Wireless standards transfer it through specified base graphs and lifting; flash systems transfer it to stored blocks whose read errors require correction. Receiver likelihoods, cell-voltage quantization, and iteration budgets do not transfer with the code. Nor does success in one channel prove a universal performance guarantee.[3][4][1]

Neighborhood in Abstraction Space

Low-Density Parity-Check Code sits in a moderately populated region (44th percentile for distinctiveness): it has near-neighbors but no dense thicket of look-alikes.

Family — Storage & Lookup Data Structures (22 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

References

[1] David J. C. MacKay, “Good Error-Correcting Codes Based on Very Sparse Matrices”, IEEE Transactions on Information Theory 45(2) (1999), pp. 399–431, especially §§I.B–I.C and II–III, directly inspected. registry ↩a ↩b ↩c ↩d ↩e ↩f

[2] GUAVA project, reference manual §5.8, “Low-Density Parity-Check Codes”, directly inspected for regular/irregular variants. registry ↩a ↩b ↩c ↩d

[3] 3GPP, TS 38.212 V16.11.0, NR; Multiplexing and channel coding (ETSI, April 2023), §5.3.2 and tables 5.3.2-1–2, directly inspected. registry ↩a ↩b

[4] Jiadong Wang, Thomas Courtade, Hari Shankar and Richard D. Wesel, “Soft Information for LDPC Decoding in Flash: Mutual-Information Optimized Quantization”, IEEE GLOBECOM (2011), abstract and §§I–II, directly inspected. registry ↩a ↩b