|
|
|
|
|
by function_seven
3979 days ago
|
|
What if the parity bytes exceed 255? I'm assuming this is done with modular arithmetic, but does mod math work to recover missing data from the parity bits without trial and error? (i.e. is the recovery function a one-to-one mapping in reverse?) I'm not well-versed in modular arithmetic, so excuse me if the answer is obvious to those that are. |
|
This erasure code is not at all optimal; it only serves to teach the basics of how one could work. In practice you'll definitely want a Galois Field or something.