In this assignment, you're to sort a given multi-column unsorted integer file http://siber.cankaya.edu.tr/OperatingSystems/cfiles/unsorted.txtunsorted.txt.
The first line of the file contains number of integers and number of columns.
According to that information, write a complete C program to sort all the integers in a single-column format to standard output or directly to a file.
Which sorting algorithm?
Table 1:
You should use the following sorting algorithms depending on the last digit of your Student ID.
Last digit
Algorithms
Complexity
0-1
Bubble sort
2-3
Heap sort
4-5
Insertion sort
6-7
Merge sort
8-9
Quick sort
The last column is just given for information, not relevant for your assignment.
You will be asked about your code during lab hour for grading.