Jump to content

Sorting algorithms/Tree sort on a linked list: Difference between revisions

m
fix gramma
m ({{draft task|Sorting Algorithms}})
m (fix gramma)
Line 8:
[[Sorting_algorithms#Sediment sort|Sediment sort]], [[Sorting_algorithms#bubble sort|bubble sort]], [[Sorting_algorithms#selection sort|selection sort]] perform very badly.
 
'''Test case:''' Create a linked list of all the sentences of all the episodes of [http://www.telelib.com/authors/J/JoyceJames/prose/finneganswake Finnegans Wake by James Joyce]. Load them into a local memory based linked list, then tree sort them inplace and print the number of node swaps and Bogomipsseconds requiredof [[wp:BogoMips|BogoMips]] are necessary to perform the sort. (The book is to be stored locally (whole ''or'' in individual episodes) in a test text file on disk forbefore useloading by the specimin code into a linked list for sorting.)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.