go

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.

Data Types

August 27, 2021
basics
go, data type

Go is a statically typed programming language. Once the variable is defined, its data type cannot change. There are Primitive and Complex data types. Each data type behaves differently, and understanding those differences is crucial for their efficient usage.

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.

Linear Search

August 27, 2021
algorithm
go, algorithm, search

Linear Search is an algorithm used to find an element position in the collection. It compares each element to the searched value consecutively and returns the position when it is found.

Max Value

August 27, 2021
algorithm
go, algorithm, max value

Max Value algorithm finds the biggest value in the list. There are various methods to do this, and a few ways of finding the biggest element in the array is described here.

Min Value

August 27, 2021
algorithm
go, algorithm, min value

Min Value algorithm finds the smallest value in the list. There are various methods to do this, and a few ways of finding the smallest element in the array is described here.

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