Arrange the following encoding strategies used in Genetic Algorithms(GAs) in…
2023
Arrange the following encoding strategies used in Genetic Algorithms(GAs) in the correct sequence starting from the initial step and ending with the final representation of solutions :
(A) Binary Encoding
(B) Real valued Encoding
(C) Permutation Encoding
(D) Gray coding
Choose the correct answer from the options given below :
- A.
(D), (B), (A), (C)
- B.
(B), (D), (A), (C)
- C.
(C), (D), (A), (B)
- D.
(B), (C), (A), (D)
Attempted by 68 students.
Show answer & explanation
Correct answer: C
Correct sequence: Permutation Encoding → Gray coding → Binary Encoding → Real-valued Encoding
Permutation Encoding: Start with the problem-specific discrete representation (for example, an ordering for routing or sequencing problems). This captures the combinatorial structure of candidate solutions.
Gray coding: Convert integer indices to Gray code when mapping integers to bit patterns. Gray coding reduces Hamming-distance changes between consecutive integer values, smoothing search behavior when using bitwise operators.
Binary Encoding: Organize the Gray-coded values into binary strings to form the genotype used by genetic operators (crossover, mutation). This is the encoded representation on which genetic operators operate.
Real-valued Encoding (decoding): Finally, decode the binary genotype into real-valued phenotype variables for evaluation in the objective function when the problem domain requires continuous values.
Rationale: Begin with the representation that matches the problem (permutation for ordering tasks), use Gray coding to improve locality when mapping integers to bits, represent the genotype as binary strings for genetic operations, and decode to real values only at the end if the phenotype requires continuous variables.
A video solution is available for this question — log in and enroll to watch it.