Claims
- 1. A method of rearranging data within a computer to perform certain query operations, comprising the steps of:
- loading the computer with data having two fields corresponding to a left leaf node a having left leaf node tokens relating to left node data values and a right leaf node b having right leaf node tokens relating to right node data values of a tree structure, and wherein the left leaf node has a first immediate ancestor node n.sub.1, wherein n.sub.1 is an ancestor node of leaf node a, but not of leaf node b, and the right leaf node has a second immediate ancestor node n.sub.r, wherein n.sub.r is an ancestor node of leaf node b, but not of leaf node a,
- locating the immediate ancestor node the left leaf node n.sub.1 of n.sub.a of n.sub.1, wherein n.sub.1 has left ancestor tokens associated therewith;
- locating the immediate ancestor node n.sub.r of the right leaf node wherein n.sub.r has right ancestor tokens associated therewith;
- recalling the left leaf node tokens to node n.sub.1 and recalling the right leaf node tokens to node n.sub.r, thereby propagating the left leaf node tokens to node n.sub.1 and the right leaf node tokens to node n.sub.r ;
- replacing the left ancestor tokens of node n.sub.1 with the recalled left leaf node tokens and replacing the right ancestor tokens of node n.sub.r with the right leaf node tokens to form a plurality of lists;
- combining right leaf node tokens that pair with the same left node tokens;
- eliminating those of the plurality of lists which store the same right leaf node tokens;
- accounting for those of the plurality of the lists which are eliminated; and
- sorting the remaining elements.
- 2. A method for identifying unique data values in a computer loaded structured information system having a condition field and an associated pattern field, comprising the steps of:
- relating the condition field to a first unique value leaf node having first leaf node tokens relating to first data values, and the pattern field to a second unique value leaf node having second leaf node tokens relating to second data values;
- determining a first immediate ancestor of the first unique value leaf node, the first ancestor not also being an immediate ancestor to the second unique value leaf node, wherein the first ancestor has first ancestor tokens;
- determining a second immediate ancestor of the second unique value leaf node, such that the second ancestor is not also an immediate ancestor to the first unique value leaf node, wherein the second ancestor has second ancestor tokens;
- pairing the first and second ancestor tokens to form a list;
- replacing the first ancestor tokens with the first leaf node tokens and the second ancestor tokens with the second leaf node tokens;
- replacing the first leaf node tokens in the list with the first data values and the second leaf node tokens with the second data values.
- 3. The method of claim 2 further comprising the steps of:
- eliminating redundant first and second leaf node tokens from the list prior to replacing the first and second leaf node tokens with the first and second data values respectively.
- 4. The method of claim 3 further comprising the steps of:
- eliminating redundant second leaf node tokens and the corresponding first leaf node tokens from the list; and
- accounting for eliminated token redundancies prior to replacing the first and second leaf node tokens in the list with the first and second data values, respectively.
- 5. The method of claim 2 wherein the first and second immediate ancestors have a common ancestor node therebetween.
- 6. The method of claim 2 wherein the step of pairing the first and second ancestor tokens to form a list utilizes a hashing list to store a plurality of the second ancestor tokens with one of the first common ancestor tokens.
REFERENCE TO RELATED APPLICATION
This application claims priority of U.S. provisional application Ser. No. 60/060,376, filed Sep. 29, 1997, the entire contents of which are incorporated herein by reference.
US Referenced Citations (8)