nickysn
|
1c64f4c751
* some formatting changes to avoid very large lines in the source code
|
6 lat temu |
nickysn
|
00a67caa40
* select the middle element in the default quicksort implementation in a way
|
6 lat temu |
nickysn
|
f4718831ca
* fixed quicksort comment about memory use - our implementation uses O(log n) stack, not O(n log n)
|
6 lat temu |
nickysn
|
f32748a8e7
+ added comment with information about QuickSort and its specific implementation in unit SortBase
|
6 lat temu |
nickysn
|
eca60a0a89
* partition elements equal to the pivot on both sides of the pivot, since that
|
6 lat temu |
nickysn
|
bea9961d2d
* use SizeUInt instead of longint for the array indices in the quicksort
|
6 lat temu |
nickysn
|
f5f25f7ae6
* use a more robust QuickSort implementation, that is guaranteed to never loop
|
6 lat temu |
nickysn
|
de80621e1e
* use a try..finally block to protect against memory leaks if the comparison
|
6 lat temu |
nickysn
|
26486bbaea
+ keep track of the pivot index in all quicksort implementations. No functional changes,
|
6 lat temu |
nickysn
|
ea340b9481
* fixed bug in QuickSort_ItemList_CustomItemExchanger_Context and
|
6 lat temu |
nickysn
|
c7d8bd9666
+ added a sort algorithm interface that accepts a custom callback function for
|
6 lat temu |
nickysn
|
59a75ea429
* use Inc() and Dec() instead of v:=v+1
|
6 lat temu |
nickysn
|
4082b8c7fc
+ added and implemented QuickSort_ItemList_Context
|
6 lat temu |
nickysn
|
7f44f2535e
* the Compare parameter renamed Comparer for consistency
|
6 lat temu |
nickysn
|
8cf5779297
* the first parameter of QuickSort_PtrList_NoContext renamed ItemPtrs for
|
6 lat temu |
nickysn
|
a2a0ed53b2
* the type of the ItemCount parameter changed from PtrUInt to SizeUInt
|
6 lat temu |
nickysn
|
848890e54b
+ added the TItemListSorter_NoContext and TItemListSorter_Context procedure
|
6 lat temu |
nickysn
|
25f6da7066
* added PtrList to the names of the current sort algorithm callback functions and
|
6 lat temu |
nickysn
|
248fd313f8
+ introduced unit SortBase, which implements the foundation for pluggable
|
6 lat temu |