sorting

Bubble Sorting

August 27, 2021
algorithm
go, algorithm, sorting

Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order. Algorithm pushes (bubble) smallest or largest element to the end of the list and the pass through the list is repeated until the list is sorted.

Insert Sorting

August 27, 2021
algorithm
go, algorithm, sorting

Insert sorting is a simple sorting algorithm that sorts the list one item at a time. The algorithm takes the element and compares the already sorted set. It inserts the element in its appropriate place within sorted elements.

Shell Sorting

August 27, 2021
algorithm
go, algorithm, sorting

Shell sort, also known as Shellsort, is a simple and effective sorting algorithm that repeatedly steps through the list and sort pair of items far apart from each other, then progressively reducing the gap between elements to be compared. By starting with far apart element, in general, it doesn’t shift a vast amount of elements as in Bubble Sorting, which makes it more efficient