December 15, 2012Data Structures using C Language, Search Search – Indexed Sequential Search Indexed Sequential Search: In this searching technique, first of all an index file is created that contains references to a group of […]
December 15, 2012Data Structures using C Language, Sorting Sorting on multiple keys Sorting on multiple keys The sorting algorithm may be applied on multiple keys such that if first field contains duplicate values, then […]
December 15, 2012Data Structures using C Language, Sorting Sorting – Address Calculation Sort (Hashing) Sorting – Address Calculation Sort (Hashing) In this method a function f is applied to each key. The result of this function […]
December 15, 2012Data Structures using C Language, Sorting Sorting – Quick Sort (Partition Exchange Sort) Sorting – Quick Sort (Partition Exchange Sort) Suppose x be an array, n is the number of elements. Choose an element from […]
December 9, 2012Data Structures using C Language, Sorting Sorting – Merge Sort Sorting – Merge Sort Merging:- Merging is the process of combining two or more sorted files into a third sorted file. An […]
December 9, 2012Data Structures using C Language, Sorting Sorting – Radix Sort Sorting – Radix Sort Radix Sort sorts the number in scans equal to the number of digits of maximum number. eg. 45, […]
December 8, 2012Data Structures using C Language, Sorting Sorting – Straight Selection Sort Sorting – Straight Selection Sort Begin from the first element, taking i=0 to n-1. Find the minimum number in the first scan. […]
December 8, 2012Data Structures using C Language, Sorting Sorting – General Selection Sort Sorting – General Selection Sort Steps: Fetch the numbers to be sorted in an array. Push these numbers one by one to […]
November 28, 2012Data Structures using C Language, Sorting Sorting – Insertion sort Insertion Sort Sorts a set of records by comparing the next record with all the previous elements. Compare next element with previous. […]
November 27, 2012Data Structures using C Language, Sorting Sorting – Bubble sort Bubble sort: Two consecutive elements are compared. It sorts the elements in right to left fashion. Thus, (n-i) comparisons are made. Example: […]