| CPC G06F 16/2246 (2019.01) [G06F 16/2272 (2019.01); G06F 16/245 (2019.01)] | 20 Claims |

|
1. A method for performing an operation on a data structure, wherein nodes in the data structure include a set of keys, the method comprising:
analyzing, for each pair of adjacent keys in the set of keys, two keys in the pair of adjacent keys to determine a most significant bit position that changes value in the two keys, wherein the most significant bit position that changes value in the two keys is a distinction bit (D-bit) position;
generating a D-bit positions set based on the D-bit position determined for each pair of adjacent keys in the set of keys, wherein each D-bit position in the D-bit positions set is unique;
selecting, for each key in the set of keys, values of the key at each D-bit position included in the D-bit positions set;
forming a plurality of D-bit slices based on the selected values of the key, wherein each key in the set of keys corresponds to a different D-bit slice in the plurality of D-bit slices;
receiving a query comprising a query key;
for one or more nodes of the data structure:
determining, by a computing device, a query D-bit slice for the query key using values at D-bit positions that are associated with a node in the data structure;
selecting, by the computing device, a D-bit slice corresponding to a key in the set of keys for the node based on the D-bit slice of the query key;
comparing, by the computing device, a key value for the key to a query key value for the query key to determine a first D-bit position value; and
selecting, by the computing device, a D-bit position corresponding to a second D-bit position value that is smaller in value than the first D-bit position value; and
branching to a next node based on the selected D-bit position; and
when the next node is a leaf node, comparing one or more keys of the next node to the query key and returning data associated with the query key in response to the query.
|