Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Need Block-Oriented Error Correcting Scheme

I'm storing many files of various lengths into a block-oriented medium (fixed-size e.g. 1024 bytes). When reading back the file, each block will either be missing or correct (no bit errors or the like). The missing blocks are random, and there's not necessarily any sequence to the missing blocks. I'd like to be able to reassemble the entire file, as long as the number of missing blocks is below some threshold, which probably varies with the encoding scheme.

Most of the literature I've seen deals with sequences of bit errors in a stream of data, so that wouldn't seem to apply.

A simple approach is to take N blocks at a time, then store a block containing the XOR of the N blocks. If one of the N blocks is missing but the check block is not, then the missing block can be reconstructed.

Are there error-correcting schemes which are well suited to this problem? Links to literature or code are appreciated.

like image 815
Frank Ames Avatar asked Jul 28 '26 01:07

Frank Ames


1 Answers

Look into Reed-Solomon codes:

http://en.wikipedia.org/wiki/Reed%E2%80%93Solomon_error_correction

like image 153
David Stafford Avatar answered Aug 01 '26 02:08

David Stafford



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!