Tag Archives: bubble sort

Classification and Time Complexity of various Sorting Algorithm

Classification and Time Complexity of various Sorting Algorithm. Sorting means arranging something in a particular defined order. For instance Sorting, either increasing or decreasing order of integers. For example : Sort these number : 5, 84, 36, 6 , 21 will be written in sorted as 5, 6, 21, 36, 84, in increasing order.  C programs for … Continue reading Classification and Time Complexity of various Sorting Algorithm

c program for bubble sort

c program for bubble sort. Sorting refers to the operation of rearranging the element. Bubble sort algorithm requires n-1 passes, where n is the number of input items. Here is the c program for bubble sort. The bubble sort gets its name because elements tend to move up into the correct order like bubbles rising to the surface. c program for bubble sort #include<stdio.h> … Continue reading c program for bubble sort