|
|
|
@ -257,17 +257,17 @@ int* fusion(tabG,tailleG,tabNoteG,tabD,tailleD,tabNoteD,retNote){
|
|
|
|
|
int* tri_fusion_rec(int tabIDCandidatAttente[], int tabNote[], int taille){
|
|
|
|
|
if(taille==1) return tabIDCandidatAttente;
|
|
|
|
|
int tabNoteG[taille/2], tabNoteD[taille-taille/2], retNote[taille];
|
|
|
|
|
tabNoteG=tabcpy(tabNote,taille/2);
|
|
|
|
|
tabNoteD=tabcpy(tabNote+taille/2,taille);
|
|
|
|
|
tabcpy(tabNote,tabNoteG,taille/2);
|
|
|
|
|
tabcpy(tabNote+taille/2,tabNoteD,taille);
|
|
|
|
|
int ret[taille];
|
|
|
|
|
ret=fusion(tri_fusion_rec(tabIDCandidatAttente,tabNoteG,taille/2),taille/2,tabNoteG,\
|
|
|
|
|
tri_fusion_rec(tabIDCandidatAttente+taille/2,tabNoteD,taille-taille/2),taille-taille/2,tabNoteD,retNote);
|
|
|
|
|
tabNote=tabcpy(retNote,taille);
|
|
|
|
|
tabcpy(retNote,tabNote,taille);
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int* tri_fusion(int tabIDCandidatAttente[], int tabNote[], int taille){
|
|
|
|
|
int notes[taille];
|
|
|
|
|
notes=tabcpy(tabNote,taille);
|
|
|
|
|
tabcpy(tabNote,notes,taille);
|
|
|
|
|
return tri_fusion_rec(tabIDCandidatAttente,notes,taille);
|
|
|
|
|
}*/
|