A non-volatile memory writing reduction method based on state encoding limiting maximum Hamming distance