C++ Module Projects. This collection of projects is designed to help to learn and practice Object-Oriented Programming concepts using C++. These projects are specifically configured to compile using the C++98 standard.
-
Make pairwise comparisons of ⌊n/2⌋ (if number of elements is odd, leave one element out)
-
Sort the ⌊n/2⌋ larger numbers, using merge-insert sort (recursively)
-
Create a sorted sequence of ⌊n/2⌋ in ascending order
-
Insert at the start of this sequence the element that was paired with first and the smallest element and put in second sequence unpair element from step 1, if it exists
-
Insert the remaining elements in special order, using binary search in sorted array in range from 1 to (2k)-1 elements
Use this for calculating this order: tk = (2k+1 + (-1)k) / 3,
where tk is index of element from which a new insertion group starts (if we consider that index starts from 1)
Insertion goes in this order: btk-1+1, btk-1+2 ...