4 void AfficheTab(int T
[], int n
) {
5 for (int i
= 0; i
< n
; i
++) {
6 printf("T[%d]=%d\n", i
, T
[i
]);
10 /** This quick sort implementation only work with 2^n array size */
11 void TriFusion(int T
[], int n
) {
12 int i
= 0, j
= 0, k
= 0;
16 T1
= malloc(n
/2*sizeof(int));
17 T2
= malloc(n
/2*sizeof(int));
20 for (int i
= 0; i
< n
/2; i
++) {
26 while (k
< n
/2 && j
< n
/2) {
53 int T
[] = {2, 7, 2, 3, 4, 1, 5, 5};
54 int tabSize
= sizeof(T
)/sizeof(T
[0]);
56 AfficheTab(T
, tabSize
);
60 AfficheTab(T
, tabSize
);