Nested sorting class of array sorting algorithms
|
02-16-2020, 07:20 AM
Post: #3
|
|||
|
|||
RE: Nested sorting class of array sorting algorithms
I think this will fall out as O(n log n) time and O(n) storage. However, the constant terms will be large. The temporary buffers in the merge phase guarantee two copies for every item for every merge. For the final merge of two half lists, it requires O(n) storage. On the other hand, quicksort requires O(log n) additional storage and takes O(n log n) time on average. It also doesn't double copy.
The sorting wars were essentially resolved in the 1970s. There are some interesting parallel sorts but my favourite is this one. If you've not watched these before, have fun. Pauli |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Nested sorting class of array sorting algorithms - Namir - 02-16-2020, 04:27 AM
RE: Nested sorting class of array sorting algorithms - ttw - 02-16-2020, 05:50 AM
RE: Nested sorting class of array sorting algorithms - Paul Dale - 02-16-2020 07:20 AM
RE: Nested sorting class of array sorting algorithms - Albert Chan - 02-16-2020, 12:42 PM
RE: Nested sorting class of array sorting algorithms - Namir - 02-16-2020, 05:08 PM
|
User(s) browsing this thread: 1 Guest(s)