well, The origin of C is closely tied to the development of the Unix operating system, originally implemented in assembly language on a PDP-7 by Ritchie and Thompson, incorporating several ideas from colleagues. Eventually they decided to port the operating system to a PDP-11. B's lack of functionality to take advantage of some of the PDP-11's features, notably byte addressability, led to the development of an early version of the C programming language.
Selection sort is the most conceptually simple of all the sorting algorithms you mentioned. Because a selection sort looks at progressively smaller parts of the array each time (as it knows to ignore the front of the array because it is already in order), a selection sort is slightly faster than bubble sort, and can be better than a modified bubble sort. In general, any of these sorting algorithms are good enough for most small tasks, though if you were going to process a large amount of data, you would want to choose Heap Sort/Merge Sort or Quick Sort.
Answered by
Romi
, an ibibo Master,
at
11:50 AM on July 17, 2008