Electrofriends

Insertion sort in C program

by Ranjith | December 4th, 2008.
Insertion sort in C program

Here is the program to sort the given integer in ascending order using insertion sort method. Please find the link to the pictorial tutor of the sorting. This program needs to enter the length of the entering array, followed by the array to be sorted. The entered integers are stored in the array A.
Logic : [...]

Read More..

Sorting of numbers

by Ranjith | November 4th, 2008.

Sorting means arranging a set of data in some order. There are different methods that are used to sort the data in ascending order. Some of the  methods are

Selection sort
Bubble sort
Insertion sort

1. Selection sort
Here, to sort the data in ascending order, the 0th element is compared with all other elements. If it [...]

Read More..
Copyright©2009 www.electrofriends.com All Rights Reserved. Powered by Dhyeya