Radix sorting method and means for minimizing movement of elements having common prefixes
AssigneeInternational Business Machines Corporation
InventorsOded Cohn, Shmuel Gal, Yona Hollander, Dafna Sheinwald
Life of this patent
Estimating the term…
Abstract
A computer implemented method for speeding up the recursive most significant digit radix sorting of a set of record keys in which the keys are scanned for a shared or common prefix, coded according to the point in the key where they differ and the value of the differing digit, and processed such that during each dispersion phase the code words are used to speed processing by avoiding comparison matching of the prefixes, the recursive dispersion and collection phases continuing until singletons are reached. In the absence of shared prefixes the keys are normally recursively radix sorted.
Claims3
A computer implemented method for the most significant digit (MSB) radix sorting of a set of keys, each key being associated with a corresponding record, each sort recursion including a distribution phase and a collection phase, comprising the steps of:
- (a) ascertaining, prior to the distribution phase, whether a typical key can be found which shares a prefix with at least a predetermined number of other keys;
- (b) in the absence of ascertaining a typical key per step (a), executing a recursire MSB radix sort over the set of keys until singletons are reached;
- (c) responsive to the detection of a typical key, forming a code word for each key sharing the same prefix as the typical key, said code word comprising an index of the MSB at which the key differs from the typical key and the value of that digit in the key;
- and
- (d) responsive to step (c), executing a recursive MSB sort over the set of keys until singletons are reached including forming partitions of predefined sequences of keys wherein each partition contains one or more keys having a distinct code word relative to a selected one of the set of keys, and during each distribution phase, utilizing the code words to avoid the comparison match processing otherwise associated with the shared prefix, thereby speeding up the recursive MSB sort.
Dependencies are inferred from the claim text.