Skip to content

A sorting algorithm, that takes in an array of items with a definite value, and is able to sort them with best case O(n) time complexity.

Notifications You must be signed in to change notification settings

peter-monahan/My-Sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

A sorting algorithm, that takes in an array of numbers, and is able to sort them with best case O(n) time complexity.

More Info

When I first began learning about sorting algorithms, I was fascinated by the concept and decided to write my own. At that time, I believed that quicksort was the fastest algorithm overall. However, to my surprise, my sorting algorithm had a better average time complexity and was faster than quicksort for larger arrays.

Upon further research, I discovered that I had unintentionally developed an integer sort, which can outperform general-purpose sorts like quicksort. This experience taught me a great deal and inspired me to continue refining my algorithm in the future.

About

A sorting algorithm, that takes in an array of items with a definite value, and is able to sort them with best case O(n) time complexity.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published