As to the complexity, (to me) it looks very much like O(n^2) in time. Although each sub-partition is sorted, the worst case would seem to be the case of sets where the largest values appear in the initial set, the second largest values in the second set, and so forth, until the smallest values appear in the last set. (Is it a radix or bucket sort?)
Hope that helps.
In reply to Re: Can you improve upon my algorithm.
by atcroft
in thread Can you improve upon my algorithm.
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |