- Various sorting algorithms are used in many programs built and analyzed by developers and data scientists to search through data sets and large databases to retrieve and sort items in different contexts.
- These sorting algorithms generally have varying speeds, performance, and retrieval times and have better and worse uses depending on what they are needed for.
What sorting algorithms work best for insertions, deletions, and ordering?
We can check correlation between speeds and times of different algorithms, averages of algorithm speeds, and make comparisons between algorithm testing data.
An example of this could be using R to check the difference in average speeds between two algorithms used to sort data. We could take the results of using Merge Sort and Selection Sort on the same data, find their average speeds, and compare them to find which might work better in the context of the current system.
For the following slides I will be using data from the Sorting_Algorithms.csv file found from the “Sorting Algorithms Performance Evaluation” post on kaggle.com uploaded by user Md. Ismiel Hossen Abir. This data includes test runs of different common sorting algorithms, their completion times during tests, and the memory usage by the system when running each algorithm.