Introduction In this article, I am going to discuss two of the most commonly-used searching algorithms in the programming world Linear Search Binary Search I will be explaining the algorithms with the help of an example and will provide a C# code to execute that. Linear Search This algorithm will perform a sequential search of […]
Category: Algorithm
Quick Sort Algorithm In C#
Introduction In this article, I am going to explain about the Quicksort algorithm.This is a Divide and Conquer algorithm. It picks an element as pivot and partitions the given array around the picked pivot. This algorithm is very common in job interviews.So first, I am going to explain Quick Sort algorithm; then, I will be […]
Merge Sort Algorithm In C#
Introduction In this article, I will be discussing Merge sort algorithm. Merge sort is a comparison based sorting algorithm based on the divide and conquer approach. The input array will be divided into subarrays and those subarrays will be further divided until each subarray contains a single element. Then, these subarrays will be merged together […]
Insertion Sort Algorithm In C#
Introduction In this article i am going to explain about the Insertion sort algorithm.Insertion Sort is based on the idea of consuming one element from input array in each iteration to find its correct position in sorted array.This algorithm is efficient for smaller datasets. So first I am going to explain insertion sort algorithm then […]
Selection Sort Algorithm In C#
Introduction In this article, I am going to explain about the Selection sort algorithm. It is an in-place comparison sorting algorithm. It is also a major question in job interviews. So first, I am going to explain Selection Sort algorithm. Then, I will be providing a C# code to execute it. The Selection sort Algorithm This […]
Bubble Sort Algorithm In C#
Introduction In this article, I am going to explain the Bubble sort algorithm. Bubble sort is one of the most widely used sorting algorithms by the programmers worldwide. It can be applied to any collection including array, string, numbers, or characters. Bubble sort is very frequently asked about in job interviews. So first I am going […]