Articles for author: Rahul Yadav

Counting Sort Algorithm

Counting Sort Algorithm is a sorting algorithm that works best when you have a small range of numbers to sort. Instead of comparing elements like in other sorting methods, it counts how many times each number appears and then puts them in order based on that count. This makes it really fast when the range ...

Binary Search Tree (BST)

A binary search tree (BST) is a sorted binary tree, where we can easily search for any key using the binary search algorithm. To sort the BST, it has to have the following properties: The node’s left subtree contains only a key that’s smaller than the node’s key. Takeaways Searching is a trivial part of everyday life. It’s ...

Linear Search Algorithm

Searching is a method to find some relevant information in a data set. In computer programming, searching is usually referred to as finding a particular element in a data structure. Linear search algorithm is a straightforward search algorithm. This type of search performs a sequential search on all items individually. In this article, we will ...

Binary Search Algorithm

Binary search is an efficient algorithm for finding an item from a sorted list of items. It works by repeatedly dividing in half the portion of the list that could contain the item, until you’ve narrowed down the possible locations to just one. Takeaways This is the second part of a three-part series on Searching Algorithms. ...

Interpolation Search Algorithm

Interpolation search is an algorithm similar to binary search for searching for a given target value in a sorted array. Takeaways This is the third part of a three-part series on Searching Algorithms. In the previous article about binary Search, we discussed one of the best searching algorithms out there. If you didn’t get a chance to read ...