Method and structure for deleting leaves in tree table structures
First Claim
Patent Images
1. A method of deleting a leaf in a patricia tree leaf structure without interrupting the functioning of the patricia tree, comprising:
- providing a patricia tree leaf having a plurality of leaf keys, each of the keys having a pattern x bits in length wherein x is a positive integer;
the patricia tree further comprising a plurality of pattern search control blocks, each of the pattern search control blocks configured to decode m bits and store 2m possible combinations of bits, wherein m is a positive integer;
each of the pattern search control blocks containing a prefix and either an end-of-trail leaf or a pointer to another of the pattern search control blocks;
placing each of the prefixes in a tree prefix table;
searching for a key in the patricia tree;
if the patricia tree searching does not find the key in the patricia tree, searching for the key in the prefix table and if the key is not found in the prefix table confirming that the key is deleted; and
if the patricia tree searching finds the key, deleting the key from one of the pattern search control blocks and collapsing the patricia tree by eliminating the left most pattern search control block from the patricia tree.
0 Assignments
0 Petitions
Accused Products
Abstract
A technique is provided to delete a leaf from a Patricia tree having a direct table and a plurality of PSCB'"'"'s which decode portions of the pattern of a leaf in the tree without shutting down the functioning of the tree. A leaf having a pattern is identified as a leaf to be deleted. Using the pattern, the tree is walked to identify the location of the leaf to be deleted. The leaf to be deleted is identified and deleted, and any relevant PSCB modified, if necessary. The technique also is applicable to deleting a prefix of a prefix.
-
Citations
8 Claims
-
1. A method of deleting a leaf in a patricia tree leaf structure without interrupting the functioning of the patricia tree, comprising:
-
providing a patricia tree leaf having a plurality of leaf keys, each of the keys having a pattern x bits in length wherein x is a positive integer; the patricia tree further comprising a plurality of pattern search control blocks, each of the pattern search control blocks configured to decode m bits and store 2m possible combinations of bits, wherein m is a positive integer; each of the pattern search control blocks containing a prefix and either an end-of-trail leaf or a pointer to another of the pattern search control blocks; placing each of the prefixes in a tree prefix table; searching for a key in the patricia tree; if the patricia tree searching does not find the key in the patricia tree, searching for the key in the prefix table and if the key is not found in the prefix table confirming that the key is deleted; and if the patricia tree searching finds the key, deleting the key from one of the pattern search control blocks and collapsing the patricia tree by eliminating the left most pattern search control block from the patricia tree. - View Dependent Claims (2, 3, 4)
-
-
5. A method of deleting a leaf in a patricia tree leaf structure without interrupting the functioning of the patricia tree, comprising:
-
producing computer executable program code; storing the code on a computer readable storage medium; providing the program code to be deployed and executed on a computer system, the program code causing the computer system to; provide a patricia tree leaf having a plurality of leaf keys, each of the keys having a pattern x bits in length wherein x is a positive integer, the patricia tree further comprising a plurality of pattern search control blocks, each of the pattern search control blocks configured to decode m bits and store 2m possible combinations of bits, wherein m is a positive integer, each of the pattern search control blocks containing a prefix and either an end-of-trail leaf or a pointer to another of the pattern search control blocks; place each of the prefixes in a tree prefix table; search for a key in the patricia tree; if the patricia tree search does not find the key in the patricia tree, search for the key in the prefix table and if the key is not found in the prefix table, confirm that the key is deleted; and if the patricia tree search finds the key, delete the key from a one of the pattern search control blocks and collapse the patricia tree by eliminating the left most block pattern search control block from the patricia tree. - View Dependent Claims (6, 7, 8)
-
Specification