Skip to content

A hybrid sorting algorithm combining merge sort and insertion sort for improved performance on small and partially sorted arrays. Implemented in C++.

License

Notifications You must be signed in to change notification settings

lahbibsemlali/merge_insertion_sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

merge_insertion_sort

This repository contains the implementation of the Ford-Johnson algorithm, also known as Merge Insertion Sort. This algorithm is a comparison sort that aims to minimize the worst-case number of comparisons for small datasets. Although it might not be the fastest or the most memory efficient, it is particularly useful in scenarios where the cost of comparison significantly outweighs the overhead of the algorithm, such as when each comparison is extremely expensive, for example, making a network request, querying a database, or asking for human input

instalation & usage

$ git clone https://github.com/lsemlali-13/merge_insertion_sort

add the function to your main.

References

https://warwick.ac.uk/fac/sci/dcs/teaching/material-archive/cs341/fj.pdf

this pdf have all you need to implement this algorithm.

https://arxiv.org/pdf/1905.09656.pdf

About

A hybrid sorting algorithm combining merge sort and insertion sort for improved performance on small and partially sorted arrays. Implemented in C++.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages