justEhmadSaeed / Algorithm-Analysis

Algorithm Analysis of Insertion sort, Merge sort and Hybrid sort

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Algorithm Analysis

Insertion Sort

  • Takes n^2 time complexity to sort the Array
  • Better for small sized arrays

Merge Sort

  • Takes n(ln(n)) time complexity to sort the Array
  • Better for large sized arrays

Hybrid Merge Sort

  • Hybrid version of Merge and Insertion sort algorithm to provide better results and time complexity
  • Sorts large sized arrays by Merge Sort until Insertion Sort Algorithm becomes more efficient and sorts the remaining small sized arrays by insertion sort algorithm

About

Algorithm Analysis of Insertion sort, Merge sort and Hybrid sort


Languages

Language:C++ 100.0%