How this calculation works
Analyze a supplied parity-check representation through stopping sets and iterative erasure peeling. This is representation dependent and differs from maximum-likelihood nearest-codeword decoding.
S is stopping iff every check has |N(check)∩S|≠1; peeling removes a variable incident to a degree-one residual check.A worked example
For the single check H=[1,1,1], each two-variable subset is a stopping set. The stopping distribution is [0,0,3,1], and erasures {0,1} remain unresolved by peeling.
Good to know
Binary parity-check matrix ≤16 checks by ≤16 variable nodes. Enumerate ≤65,536 erasure subsets; supplied erasure mask; exact stopping-size distribution. No noisy-channel BER claim.
Reference: Wang, Kulkarni and Poor: Finite LDPC codes on binary erasure channels (opens in a new tab) ↗
Parity-check graph and erased variables
A Tanner graph places variables on one side and parity checks on the other. A one in the supplied binary matrix draws an edge between its row check and column variable.
The graph belongs to that exact parity-check representation. Adding a redundant check can preserve the underlying code while changing which erasure patterns the iterative decoder resolves.
Compare this with the Linear code syndrome decoding calculator with all nearest codewords. Analyze a supplied parity-check representation through stopping sets and iterative erasure peeling. This is representation dependent and differs from maximum-likelihood nearest-codeword decoding.
Stopping-set definition
A stopping set is a nonempty variable subset for which every adjacent check meets the subset at least twice. Checks meeting it zero times are allowed and do not create an obstruction.
The forbidden count is exactly one. A check with one erased neighbor could solve that variable, so a residual erased set with no such check cannot make another peeling step. With one parity check [1,1,1], any erased pair is a stopping set: that check sees two unknowns and cannot solve either from a single equation. A single erased variable is recoverable because the check has exactly one unknown. The distribution includes the empty set at size zero, although the smallest nonempty stopping size excludes it. Keeping that convention visible prevents an apparently correct minimum of zero from obscuring the actual obstruction to erasure peeling.
Enumerating the size distribution
Enumerate variable subsets and count stopping sets by their sizes. The smallest nonempty size is the stopping distance; an explicit subset of that size demonstrates the reported minimum.
Some matrices have no nonempty stopping set, such as an identity parity check. In that case the result should state that none exists within the finite variable set rather than report zero as a stopping distance.
Degree-one peeling decoder
For a supplied erasure set, repeatedly select a check with one still-erased variable and remove that variable from the residual set. Record the check and variable at each step.
The terminal set is empty when peeling succeeds. A nonempty terminal set must itself satisfy the stopping-set condition, providing a structural explanation for why the iterative process stalled. The peeling trace identifies the check and variable used at each step. Recovery removes that variable from the erased set and then recalculates check degrees; it is not enough to inspect degrees only in the original erasure mask. The residual mask at termination is itself a stopping set. On the same code, adding a redundant parity-check row may change the stopping structure and allow further iterative recovery even though maximum-likelihood code membership has not changed.
Terminal stopping-core certificate
With H=[1,1,1], a single erasure is solved immediately. Any pair of erased variables leaves the only check with residual degree two, so all three pairs are stopping sets.
The three-variable set is also stopping, giving size coefficients [0,0,3,1]. Starting from {0,1} produces no peeling step and leaves precisely that pair as the residual core.
Representation dependence under redundant checks
The illustration marks erased variables and the changing degree of each adjacent check. It explains the local recovery rule, while the returned trace supplies the actual sequence for the entered erasures.
For tiny matrices, exhaustive checks can confirm the stronger statement: peeling succeeds exactly when the erased set contains no nonempty stopping subset. This gives an independent consistency test between enumeration and tracing. This representation dependence distinguishes stopping distance from ordinary minimum code distance. The page counts every erased subset within sixteen variables, then displays a bounded sample of nonempty stopping sets. Display truncation does not truncate the count. There is no random-channel simulation or bit-error-rate estimate here: the calculation analyzes a chosen matrix and a chosen erasure pattern exactly, assuming all unerased bits are known without noise.
Exact finite outputs and channel-model limits
This calculation describes binary-erasure iterative decoding. It does not replace nearest-codeword decoding for arbitrary symbol errors and does not estimate a channel bit-error curve from one matrix alone.
The distinction matters when two parity-check matrices span the same row space. Their codes agree, but their stopping distributions can differ because iterative recovery uses the particular checks available at each step.
A few questions, answered
Is a stopping set a codeword support?
A nonzero codeword support is stopping, but a stopping set need not itself be a codeword support.
Why can redundant checks change the result?
New checks can create degree-one opportunities during peeling even when they do not change the code.
Does peeling equal nearest-codeword decoding?
No. It uses local parity-check recovery on erasures, while nearest decoding solves a different optimization.
Does this estimate an LDPC bit-error curve?
No. It gives exact finite combinatorial quantities and a supplied erasure trace.