so I don't think that you are going to approach O(N log U). Much less O(D Log U).
N==D (the number of records not excluding duplicates) so your "Much less" makes no sense.
Your computations involving N and S seem to be wandering around thinking that merge sort is something other than O(N*log(N)) (and ignoring duplicates altogether). So, no insights to be gained from those.
- tye
In reply to Re^9: In-place sort with order assignment (calculations)
by tye
in thread In-place sort with order assignment
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |