H-Shen / Collection_of_my_coding_practice

A collection of my coding practice
1 stars 1 forks source link

Serious problem occurred in mergeSort.cpp #10

Closed H-Shen closed 4 years ago

H-Shen commented 4 years ago

Line57 should be

std::uniform_int_distribution<int> dist(std::numeric_limits<int>::min(), std::numeric_limits<int>::max());

But it turns out the result is incorrect after sorting. Will fix it after final exam.

H-Shen commented 4 years ago

Fixed. Also:

  1. The test-wrapper is re-wrote.
  2. I combined the tester and the implementations of merge_sort, heap_sort, insertion_sort, selection_sort into one file here since it is firstly covered in cpsc331.