4 ms·
How does it scale?
by amelius 11y ago
How does it scale?
- ploxiln 11y agoThese solutions do not scale at all. Even with tweaks, they could not sort 18 nibbles (or 32 nibbles). But they are very interesting, and these kinds of tricks do find some practical use in things like video codecs.
- dragontamer 11y agoBut they can sort 16 nibbles twice, and then you can use merge-sort between the two sets of nibbles. Which would scale at O(n*log(n)). Which is asymptotically optimal IIRC.
- signa11 11y ago> How does it scale? what do you mean ? the task asks to sort 4bit nibbles in 64bit words, so you optimize for that problem space...