How this calculation works
Reed–Solomon evaluation codes protect a polynomial message by sampling it at distinct field points. This calculator encodes directly or performs a bounded exact message search for a codeword within the unique-decoding radius. A returned decode is certified by re-evaluation and Hamming distance, not by merely choosing the nearest sampled polynomial.
c_i=m(a_i), deg m<k; d_min=n−k+1; unique radius=floor((n−k)/2).A worked example
Over GF(7), message 1+2x evaluated at 0,1,2,3,4 gives 1,3,5,0,2. If the third symbol changes to six, the received word is one symbol from the valid codeword. With n=5,k=2, distance is four and the unique-error radius is one, so the original message is recovered.
Good to know
Prime fields, two to 16 distinct evaluation points and message dimension at most five below n. Exact decoding enumerates at most 100,000 messages. Beyond the unique radius no original-message recovery is claimed. This is not an unlimited production decoder.
Evaluation points determine the code convention
A message is a polynomial of degree below k, with coefficients listed from constant term upward. Encoding evaluates that polynomial at distinct field elements in the supplied order. These choices define an evaluation-form Reed–Solomon code and may differ from systematic or cyclic conventions used by storage and communication systems.
Every evaluation point must lie in the selected prime field and must occur only once. Repeating a point would reduce the independent evaluation information and invalidate the printed minimum-distance formula. The field size, code length and message dimension are therefore checked together before either encoding or decoding is attempted.
The Polynomial roots over finite fields calculator covers the nearby task. Polynomial factoring does not construct an evaluation code or recover a message from corrupted symbols.
Unique decoding needs a distance certificate
A nonzero polynomial difference of degree below k has at most k minus one roots, giving minimum code distance n minus k plus one. Balls up to the floor of half of distance minus one cannot overlap. The supported decoder uses that unique radius, not an arbitrary requested error count beyond the code’s guarantee.
After selecting a candidate message, the calculator re-encodes it and compares every received symbol with the valid codeword. The listed error positions are those mismatches. A candidate outside the unique radius is rejected; merely being the nearest among some tried candidates would not establish recovery of the transmitted message.
A bounded decoder is not a claim of industrial scale
For small supported parameters, decoding enumerates every possible message, giving a complete bounded search. The cap prevents excessive field-size and dimension combinations. This method is intentionally different from a scalable algebraic decoder, and the page does not imply that its exhaustive implementation is suitable for large files or production error-correction workloads.
The default corrupts one symbol of a known GF(7) evaluation word and verifies message recovery within the permitted radius. Additional tests include multiple received words and cases outside every admissible ball. A failed decode means the supported unique-recovery certificate is unavailable, not that the original message has been discovered by some unstated heuristic.
Translate a message into evaluation symbols
The message contains k ascending coefficients of a polynomial m(x) of degree below k. Encoding evaluates m at n distinct field points. Because a nonzero polynomial of degree at most k−1 has at most k−1 roots, two different messages can agree in at most k−1 positions. Their codewords differ in at least n−k+1 positions.
This gives minimum distance d=n−k+1 and unique-decoding radius floor((d−1)/2)=floor((n−k)/2). The argument assumes distinct evaluation points in a field. Repeating a point or using arithmetic modulo a composite number would break the stated construction and is rejected by the supported prime-field form.
Correct the default corrupted symbol
Over GF(7), message 1,2 means m(x)=1+2x. Evaluating at 0,1,2,3,4 gives 1,3,5,0,2 after reduction modulo seven. The received word 1,3,6,0,2 differs only at zero-based position two. For n=5 and k=2, d=4 and the unique radius is one, so this corruption is inside the guarantee.
The decoded message is 1,2 and the corrected evaluation word is 1,3,5,0,2. A symbol change from 5 to 6 counts as one error, just as a change from 5 to 0 would. Hamming distance counts differing positions, not the size of a numerical subtraction or the number of changed binary bits.
Keep exhaustive decoding distinct from production algorithms
The encoder evaluates directly. The decoder here enumerates every supported message, finds a nearest codeword and certifies recovery only inside the unique radius. The 100,000-message cap makes that exact search practical for small examples; it does not describe the complexity of efficient Reed–Solomon algorithms used in communication systems.
The linked coding reference discusses richer decoding methods, but this page does not claim to implement Berlekamp–Welch, Gao, list decoding or error-and-erasure decoding. An input limit is therefore an implementation bound, not a limitation of Reed–Solomon theory. Use a suitable library when encoding or decoding real files, packets or large field extensions.
Interpret failure and successful decoding conditionally
Beyond the radius, this decoder declines a recovery claim even if one nearest codeword happens to exist. More subtly, a received word can lie within the radius of a different codeword if the original transmission suffered too many errors. A mathematically valid nearest-codeword result cannot reveal the unknown original message without the stated error-bound assumption.
Keep evaluation-point order identical between encoding and decoding. Reordering received coordinates alone introduces apparent errors. The page has no erasure marker, checksum or authentication layer; those are separate mechanisms. A corrected codeword shows consistency with a bounded-error model, not proof against deliberate tampering or a guarantee that an arbitrary corrupted file has been restored.
A few questions, answered
Is this a systematic encoding convention?
No. It uses direct polynomial evaluation at the supplied field points.
Can it recover beyond the unique radius?
No recovery guarantee is claimed there; the bounded decoder requires a valid radius certificate.
Does one symbol error mean one changed bit?
No. A symbol is one field element. Changing any number of its representation bits still counts as one symbol position in this Hamming model.
Does successful decoding always prove the original message?
Only under the stated error-bound assumption. Excessive corruption can place a received word near another codeword; error correction is not authentication.