title: how to provide a suitable fitness function - Genetic Algorithms
body: <p>i am struggling to understand how to calculate fitness function 
  for example i need to know what is the suitable fitness function for the binary sequence in present case and in the general case using mathematical notation (summation notation) and please with to do the calculations     </p>
  
  <p>P = (1,0,1,0,1,0,1,0,1,0)</p>
  
  <p>Thanks</p>