4 ms·
You don't happen to be running `srand(time(0))`? > I'm not saying that optimization isn't valid, what I'm saying is that Quicksort shouldn't be optimized over
by marginalia_nu 3mo ago
You don't happen to be running `srand(time(0))`?
> I'm not saying that optimization isn't valid, what I'm saying is that Quicksort shouldn't be optimized over randomized per run data set.
But yeah, this is correct. When optimizing, we want to pin every variable other than the change, as much as possible.
- atn34 3mo agoThen you run the risk of overfitting to whatever seed you picked. I think fixing a seed is probably a good idea most of the time but it’s worth considering