Skip to content
Snippets Groups Projects
Commit fa4bb081 authored by chafiol's avatar chafiol
Browse files

WIP:triRapideInsertion

parent fcd69401
No related merge requests found
......@@ -74,11 +74,11 @@ int main(int argc, char **argv){
// }
// printf("\n");
triRapideInsertion(tab, n);
// printf("Rapide : ");
// for(int i = 0; i<n; i++){
// printf("%ld,", tab[i]);
// }
// printf("\n");
printf("Rapide : ");
for(int i = 0; i<n; i++){
printf("%ld,", tab[i]);
}
printf("\n");
free(tab);
}
else if((strcmp(argv[1], "--bulle")== 0) || strcmp(argv[1], "-b")== 0){
......
......@@ -7,8 +7,8 @@ void sousTriRapideInsertion(long* A, size_t p, size_t r) {
if (p<(r-1)) {
size_t q = triInsertion(A, r-q);
sousTriRapide(A, p, q);
sousTriRapide(A, q+1, r);
sousTriRapideInsertion(A, p, q);
sousTriRapideInsertion(A, q+1, r);
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment