Skip to content
Snippets Groups Projects
Commit da5163c0 authored by Santos Garcia Carlos's avatar Santos Garcia Carlos
Browse files

Merge branch 'master' of...

parents 204f3fa3 2de42490
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,10 @@ class Population: ...@@ -15,7 +15,10 @@ class Population:
self.indiv = liste_individus self.indiv = liste_individus
return self return self
def selection_p_best(self,p=self.n//2): def selection_p_best(self,p=None):
if p==None:
p=(self.n)//2
def tri_rapide_aux(tableau,debut,fin): def tri_rapide_aux(tableau,debut,fin):
if debut < fin-1: if debut < fin-1:
positionPivot=partitionner(tableau,debut,fin) positionPivot=partitionner(tableau,debut,fin)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment