Closed HowardYutingHou closed 4 years ago
Sorry, just noticed that the hw pages says the sizes can vary. How about LSDRadixSort?
Yes, you can use the code you wrote or code provided by the course as long as it is faster
I have a problem using LSDRadixSort, as it defines generic type to be Integer, while HybridSortHW takes T. So, I get an error when using LSDRadixSort in HybridSortHW. Could you give a hint how to deal with it?
I believe since HybridSortHW takes T, you cannot use LSDRadixSort since there is no way to define the bounds of the buckets.
I have a problem using LSDRadixSort, as it defines generic type to be Integer, while HybridSortHW takes T. So, I get an error when using LSDRadixSort in HybridSortHW. Could you give a hint how to deal with it?
Please notice that, if using LSDRadixSort, it might lead to failure when dealing with negative integers. Also, As @JonathanKimchi mentioned, it can not pass compile phase due to <T>
.
@HowardYutingHou currently, LDSRadixSoft assumes integer but the input can be any comparable keys in this homework so it may not always work.
I have two questions