09-3sat_project/src/algorithms.py
def pick_parents(self, population, fitnesses):
        """ randomly picks parents A and B from given population """
        parent_a = population[self.selection(fitnesses)]
        parent_b = population[self.selection(fitnesses)]

        return parent_a, parent_b
 randomly picks parents A and B from given population 
randomly picks parents A and B from given population
randomly picks parents A and B from given population
def pick_parents(self, population, fitnesses):
        parent_a = population[self.selection(fitnesses)]
        parent_b = population[self.selection(fitnesses)]
        return parent_a, parent_b
def pick_parents ( self , population , fitnesses ) : parent_a = population [ self . selection ( fitnesses ) ] parent_b = population [ self . selection ( fitnesses ) ] return parent_a , parent_b
randomly picks parents A and B from given population
randomly picks parents A and B from given population
""" randomly picks parents A and B from given population """
self
population
fitnesses