Skip to content

Algorithm

Linear Search Algorithm C++

Linear Search Algorithm

Linear Search, the most basic and easiest searching algorithm that we even use in our daily life. Yes, linear search is nothing but searching one after the other till we find what we want in a sequence one by one. Definition Linear Search is also known as Sequential Search, is… Read More »Linear Search Algorithm

Bubble Sort Algorithm C++

Bubble Sort Algorithm

Bubble sort is one of the simple sorting techniques and it is also easier to code and understand. Bubble sort follows the simple principle of comparing two adjacent elements and swapping them according to our desired order. How Bubble Sort works? Consider the below example where we try to sort… Read More »Bubble Sort Algorithm