Historique des commits

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