Enhanced Gap Sequencing Shell Sort
Main Article Content
Abstract
Sorting algorithms are used for arranging alist of numbers or characters in an ascendingor descending order.Many sorting algorithmshave been proposed for sorting a given sequence,some important algorithms of themare Bubble Sort, Insertion Sort,SelectionSort,Shell sort and many more. Sorting algorithms puts elements in a certain order suchas numerical or lexicographical order.Shellsort is the fastest algorithm in comparison tobubble,insertion and selection.Shell sort is anenhanced version of insertion sort. It reducesthe number of swaps of the elements beingsorted to minimize the complexity and timeas compared to insertion sort.Shell sorting algorithm sorts the elements according thegap sequences.The operations depends on theused gap sequences(many gap sequences havebeen proposed).In this paper we analyze thealgorithm by using the following gap sequence:N1;N2;N3;…; 1,where N1 = floor (3n/4); N2 = floor (3N1/4); N3 = floor (3N2/4); ………………….; ………………….;
Nk = floor (3Nk-1/4) and so on until the value of Nk becomesone. Here ‘n’ is the number of elements to besorted.
Keywords:Algorithm,Shell,Sorting,Comparison.
Downloads
Article Details
COPYRIGHT
Submission of a manuscript implies: that the work described has not been published before, that it is not under consideration for publication elsewhere; that if and when the manuscript is accepted for publication, the authors agree to automatic transfer of the copyright to the publisher.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work
- The journal allows the author(s) to retain publishing rights without restrictions.
- The journal allows the author(s) to hold the copyright without restrictions.