A hamming cliff occurs when a small chromosome change causes a large decoded-value or fitness change. In binary genetic algorithms, flipping a single most-significant bit can abruptly disrupt the search space and encourage premature convergence. section 8.1
A boundary between adjacent values
Binary representations of decimal 7 and 8 are 0111 and 1000, so moving between adjacent values changes several bits. Their Gray-code representations, 0100 and 1100, differ by only one bit, creating a smoother genotype-to-phenotype transition. section 8.1
Gray coding mitigates the problem because successive values differ by one bit. Real-valued encoding provides another alternative, especially for continuous variables, by avoiding disruptive binary decoding changes. section 8.1 section 8.9
