What is a In-place algorithm? It means that the algorithm does not require any extra space. For example Quick Sort is in-place as it shuffles elements in the given array itself. But Merge Sort is out of place algorithm as…

# Category: algorithm

## Merge Sort Program in Python

We will look at the Merge Sort Algorithm which is used to sort an unsorted list. The input list is divided into two parts and they are solved recursively and then they are merged. Worst Case Time Complexity: O(n log…

## Python Program for Linear Search using For loop

In linear search algorithm we match the element to be searched with the entire list of elements. Therefore its a brute force approach. time complexity: O(n) Linear Search implementation in Python: list_of_elements = [4, 2, 8, 9, 3, 7]x =…

## Insertion Sort algorithm explained in python with example

Insertion sort is an algorithm for sorting a list of numbers. The key idea of this algorithm is to divide the list into two portions: a sorted portion and an unsorted portion. At each step of the algorithm a number…