I cleaned up and finished what we did in class : in_class_merge_FINAL.c
command line output:
>>> sorting-algorithms git:(master) > gcc -Wall sortTester.c selectionSort.c insertionSort.c bubbleSort.c -o sortTester
>>> sorting-algorithms git:(master) > ./sortTester
selection,10,0.000001
insertion,10,0.000000
bubble,10,0.000001
selection,30,0.000006
insertion,30,0.000002
bubble,30,0.000005
selection,90,0.000044
insertion,90,0.000009
bubble,90,0.000032
example output of merge.c:
>>> ./merge
array is:
1
4
2
6
9
8
5
sorted array is:
1
2
4
2
6
6
6
![[paper clip]](/cours/static/images/paper_clip_tilt.png) 
| last modified | size | ||
|  | bubbleSort.c | Fri Oct 31 2025 07:22 pm | 521B | 
|  | example-merge-sort.c | Fri Oct 31 2025 07:22 pm | 2.1K | 
|  | in_class_merge.c | Fri Oct 31 2025 07:22 pm | 2.5K | 
|  | in_class_merge_FINAL.c | Fri Oct 31 2025 07:22 pm | 5.0K | 
|  | insertionSort.c | Fri Oct 31 2025 07:22 pm | 501B | 
|  | merge.c | Fri Oct 31 2025 07:22 pm | 1.7K | 
|  | recursive-print-array.c | Fri Oct 31 2025 07:22 pm | 497B | 
|  | recursive-print-array.py | Fri Oct 31 2025 07:22 pm | 226B | 
|  | recursive_reverse_string.py | Fri Oct 31 2025 07:22 pm | 1.0K | 
|  | recursive_sum.py | Fri Oct 31 2025 07:22 pm | 145B | 
|  | selectionSort.c | Fri Oct 31 2025 07:22 pm | 740B | 
|  | sortTester | Fri Oct 31 2025 07:22 pm | 9.1K | 
|  | sortTester.c | Fri Oct 31 2025 07:22 pm | 2.9K | 
|  | sorting.h | Fri Oct 31 2025 07:22 pm | 209B |