Patent ID: 8578248

Claim:
A method of operating a memory device, wherein the memory device comprises a plurality of memory cells, and wherein the method comprises: determining a quality value of a group of memory cells of the plurality of memory cells, wherein the quality value is indicative of a quality of the group of memory cells of the plurality of memory cells; based at least in part on the quality value, selecting a coding scheme from a plurality of coding schemes for encoding data to be written to the group of memory cells of the plurality of memory cells; based at least in part on the coding scheme that is selected, encoding the data to be written to the group of memory cells of the plurality of memory cells; writing the data that is encoded to the group of memory cells of the plurality of memory cells; and saving the quality value in a map, wherein the quality value saved in the map facilitates future decoding of the data written to the group of memory cells of the plurality of memory cells.