Skip to content

eugene4545/Sort-and-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Sort-and-search

Insertion sort is a sorting algorithm that builds the sorted array one element at a time. It divides the array into a sorted portion and an unsorted portion. It iterates through the unsorted portion and compares each element with the elements in the sorted portion, shifting larger elements to the right. This process continues until the current element finds its correct position in the sorted portion. The algorithm repeats this for all elements, gradually building the sorted array. While insertion sort is simple and effective for small datasets or partially sorted data, it becomes less efficient for larger datasets due to its quadratic time complexity O(n^2).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published