procedure MUTATION           Mutation in chromosome R
   Input:            Chromosomes before mutation
  Output:            Chromosomes after mutation
        select the mutation bit position
          generate random number such that
  if   then   greater than or equal to specified value
   if   then     less than specified value
    if   then    not equal to the same value
          Replace the value of the bit by X
    end if
   end if
  end if
  return            Chromosome after mutation
 end procedure
Algorithm 3: Modified mutation.