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
last modified | size | ||
bubbleSort.c | Sun Dec 22 2024 05:05 am | 521B | |
example-merge-sort.c | Sun Dec 22 2024 05:05 am | 2.1K | |
in_class_merge.c | Sun Dec 22 2024 05:05 am | 2.5K | |
in_class_merge_FINAL.c | Sun Dec 22 2024 05:05 am | 5.0K | |
insertionSort.c | Sun Dec 22 2024 05:05 am | 501B | |
merge.c | Sun Dec 22 2024 05:05 am | 1.7K | |
recursive-print-array.c | Sun Dec 22 2024 05:05 am | 497B | |
recursive-print-array.py | Sun Dec 22 2024 05:05 am | 226B | |
recursive_reverse_string.py | Sun Dec 22 2024 05:05 am | 1.0K | |
recursive_sum.py | Sun Dec 22 2024 05:05 am | 145B | |
selectionSort.c | Sun Dec 22 2024 05:05 am | 740B | |
sortTester | Sun Dec 22 2024 05:05 am | 9.1K | |
sortTester.c | Sun Dec 22 2024 05:05 am | 2.9K | |
sorting.h | Sun Dec 22 2024 05:05 am | 209B |