Re:Hoare’s Rebuttal and Bubble Sort’s Comeback
by Quekid5 on Sunday January 30, 2022 @06:07PM
(#30142207)
I don't understand what you mean by duplicate here. Apply a Schwartzian Transform and there you go -- no duplicates.
[ Parent
| on HN ]
Re:Hoare’s Rebuttal and Bubble Sort’s Comeback
by JohnHaugeland on Monday January 31, 2022 @10:18PM
(#30158218)
the decorate sort undecorate is more expensive than the thing you're trying to save
Re:Hoare’s Rebuttal and Bubble Sort’s Comeback
by Quekid5 on Wednesday February 02, 2022 @04:09PM
(#30184103)
That doesn't make sense. The Schwartzian Transform is linear time and cheap time-wise.
Btw, I'm surprised nobody has objections about constants. The constants for the type of stuff 'discrimination' does are (apparently) really bad. Like really bad.
^ The above was a bit sarcastic. I know you're talking about straight up performance, but the problem there wouldn't be the Schwartzian Transform.