• Tutorials
  • DSA
  • Data Science
  • Web Tech
  • Courses
July 18, 2024 |9.6K Views

Insertion Sort

  Share  1 Like
Description
Discussion

Insertion sort is a simple sorting algorithm that works similar to the way you sort playing cards in your hands. The array is virtually split into a sorted and an unsorted part. Values from the unsorted part are picked and placed at the correct position in the sorted part.

Characteristics of Insertion Sort:


This algorithm is one of the simplest algorithm with simple implementation
Basically, Insertion sort is efficient for small data values
Insertion sort is adaptive in nature, i.e. it is appropriate for data sets which are already partially sorted.

Insertion Sort : https://www.geeksforgeeks.org/insertion-sort/