Historie revizí

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