What is binary encoding in Genetic Algorithms?

Updated May 16, 2026

Short answer

Binary encoding represents solutions as bit strings (0s and 1s).

Deep explanation

Binary encoding is one of the earliest GA representations where each gene is a bit. It is simple but may require decoding for real-world problems.

Real-world example

Feature selection in machine learning models.

Common mistakes

  • Using binary encoding for inherently continuous problems.

Follow-up questions

  • When is binary encoding preferred?
  • What are its limitations?

More Genetic Algorithms interview questions

View all →