16 Commits

Author SHA1 Message Date
b48675a931 Merge branch 'main' of https://github.com/kb173/median-comparison into main 2020-10-18 11:25:59 +02:00
4894d8c1ed Reimplement median of medians 2020-10-18 11:23:47 +02:00
5ac57571eb beautify output 2020-10-17 23:22:17 +02:00
08ce65c0c9 Fix array quicksort median
Wrong datatype!
2020-10-17 00:48:01 +02:00
90347e06a3 Adapt Wirth to data type change 2020-10-17 00:45:08 +02:00
be69fb41be Merge branch 'main' of https://github.com/kb173/median-comparison into main 2020-10-17 00:43:38 +02:00
1f685a95f2 Implement Wirth algorithm
It's fast!
2020-10-17 00:43:28 +02:00
60b0bd4f02 moved compare to common; changed size_t to uint32 2020-10-17 00:27:51 +02:00
fec5e8a6e7 added TODO and common header for unification 2020-10-14 00:25:03 +02:00
c29c08cea7 added variant of median of medians for arrays 2020-10-06 18:34:26 +02:00
9ea381fdba moved comparator before main in function; adding std::sort (introsort) 2020-10-06 18:11:19 +02:00
68ce4f7887 handling only for odd datasets; added quicksort for array 2020-10-06 17:43:20 +02:00
f3688bbc7f using size_t (uint32) instead of int because only use positive values 2020-10-06 16:28:39 +02:00
f072f162b2 added implementation for median after quicksort and std nth element 2020-10-06 15:01:50 +02:00
6b60d6e44b just return a copy of the input array (TODO: use pointer as param) 2020-10-06 14:45:30 +02:00
43ca1db1bb basic project setup 2020-10-06 14:34:16 +02:00