3 ms·
I think this isolation is done to critique the algorithm in question in isolation of any underlying structure. What's cool about Discrimination sort is that it
by KirinDave 8y ago
I think this isolation is done to critique the algorithm in question in isolation of any underlying structure.
What's cool about Discrimination sort is that it does, in fact, can give these linearity guarantees for most kinds of data a computer can represent, including things like strings which have variable length or structs. There are some caveats there, but they're easy enough to work with that nearly every default structure in haskell as seen here: http://hackage.haskell.org/package/discrimination-0.3/docs/Data-Discrimination-Sorting.html#g:1 http://hackage.haskell.org/package/discrimination-0.3/docs/D...
Note particularly the instance for [a], and that you can extend it to something like Data.Text's codepoints (and this would work out of the box with something like ByteString's chunked form).