re-add other test cases - now fails constant because infinite recursion to be fixed for spsort

This commit is contained in:
Richard Thier 2022-08-16 12:41:19 +02:00
parent d0fa5c5b48
commit 6a0a2540bb
2 changed files with 5 additions and 2 deletions

View File

@ -157,7 +157,10 @@ inline void internal_spsort(uint32_t *t, int n, int m, uint32_t low, uint32_t mi
// Re-pivot the mid if needed
if(lefts < m) {
// Left can be simple-sorted
binsertion_sort(t, left);
// Check the right now
if(rights < m) {
// Balance in both small-extremal
// means we can small-sort both.

View File

@ -32,8 +32,8 @@
worst[name] = std::max(worst[name], seconds);
}
std::vector<std::string> inputtypes = {
/*"constant", "asc", "desc", "ascasc", "ascdesc",
"descasc", "descdesc", "smallrange",*/ "rand",
"constant", "asc", "desc", "ascasc", "ascdesc",
"descasc", "descdesc", "smallrange", "rand",
};
std::vector<uint32_t> geninput(const std::string &type, int n) {
std::vector<uint32_t> v(n);