emory-courses / dsa-java

Data Structures and Algorithms in Java
https://emory.gitbook.io/dsa-java/
42 stars 55 forks source link

[HW#1] #101

Closed liamsgordon closed 3 years ago

liamsgordon commented 3 years ago

I have created a recursive sorting merge method, and have a helper to check ascending, descending, and random, to reduce any other complexity by other sorting methods, but this still does not beat the introsort. The only method which does is shellsort but only when you add them into 1 array. I thought this was the only way it could be done, but does anyone have any other suggestions for merge sort, or to reduce complexity?