Claims
- 1. A method of deleting a leaf having a pattern of x bits in length from a Patricia tree structure without interrupting the functioning of the Patricia tree, and wherein said Patricia tree includes a direct table to decode y bits of the pattern, and a series of Pattern Search Control Blocks (PSCB's), each configured to decode “m” bits and store 2m possible combinations of bits, and wherein said search of the leaf to be deleted is comprised of the steps of:
initially decoding the y bits and then decoding any relevant subsequent bits until the search pattern for the leaf to be deleted is identified, and then deleting the leaf to be deleted.
- 2. A method of inserting a leaf having a pattern of x bits in length to a Patricia tree structure without interrupting the functioning of the Patricia tree, and wherein said Patricia tree includes a direct table to decode y bits of the pattern, and a series of Pattern Search Control Blocks (PSCB's), each configured to decode “m” bits, and wherein said search of the leaf to be inserted is comprised of the steps of:
first walking the Patricia tree a first time by decoding the y bits and then decoding any subsequent relevant bits in successive PSCB's to determine the place of insertion of the leaf to be inserted, and if that said leaf already exists in the tree; if the leaf to be inserted already exists in the table, then updating any information in the existing leaf from the leaf being inserted; if the leaf being inserted does not already exist in the tree, then determining what modification, if any, is needed of any PSCB, and walking the tree a second time and inserting the leaf to be inserted at the determined place of insertion, and making any modifications to any relevant PSCB that has been determined is required.
- 3. The invention as defined in claim 1 wherein the decision where to delete a leaf is made in the direct table.
- 4. The invention as defined in claim 1 wherein the decision where to delete a leaf is made in a PSCB.
- 5. The invention as defined in claim 4 wherein an operational prefix of a prefix table and/or a history prefix of a prefix table are provided, and
wherein the decision where to delete leaf is made in the operational prefix of prefix table and/or history prefix of prefix table.
- 6. The invention as defined in claim 2 wherein the leaf is inserted following the direct table.
- 7. The invention as defined in claim 2 wherein the leaf is inserted following a PSCB.
- 8. The invention as defined in claim 7 wherein an operational prefix of a prefix table and/or a history prefix of a prefix table are provided, and
wherein the leaf is inserted in the operational prefix of prefix table and/or the history prefix of prefix table.
- 9. An article of manufacture comprising a computer usable medium having a computer readable program embedded in said medium, wherein said computer readable program, when executed on a computer, causes the computer to:
insert a leaf having a pattern of x bits in length to a Patricia tree structure without interrupting the functioning of the Patricia tree, and wherein said Patricia tree includes a direct table to decode y bits of the search code, and a series of Pattern Search Control Blocks (PSCB's), each configured to decode “m” bits, and wherein said search of the leaf to be inserted is comprised of the steps of:
first walking the Patricia tree a first time by decoding the y bits and then decoding any subsequent relevant bits in successive PSCB's to determine the place of insertion of the leaf to be inserted, and if that said leaf already exists in the tree; if the leaf to be inserted already exists in the table, then updating any information in the existing leaf from the leaf being inserted; if the leaf being inserted does not already exist in the tree, then determining what modification, if any, is needed of any PSCB, and walking the tree a second time and inserting the leaf to be inserted at the determined place of insertion and making any modifications to any relevant PSCB that has been determined is required.
- 10. An article of manufacture comprising a computer usable medium having a computer readable program embedded in said medium, wherein said computer readable program, when executed on a computer, causes the computer to:
insert a leaf having a pattern of x bits in length to a Patricia tree structure without interrupting the functioning of the Patricia tree, and wherein said Patricia tree includes a direct table to decode y bits of the search code, and a series of Pattern Search Control Blocks (PSCB's), each configured to decode “m” bits, and wherein said search of the leaf to be inserted is comprised of the steps of:
first walking the Patricia tree a first time by decoding the y bits and then decoding any subsequent relevant bits in successive PSCB's to determine the place of insertion of the leaf to be inserted, and if that said leaf already exists in the tree; if the leaf to be inserted already exists in the table, then updating any information in the existing leaf from the leaf being inserted; if the leaf being inserted does not already exist in the tree, then determining what modification, if any, is needed of any PSCB, and walking the tree a second time and inserting the leaf to be inserted at the determined place of insertion, and making any modifications to any relevant PSCB that has been determined is required.
CROSS REFERENCE TO RELATED APPLICATION
[0001] Provisional Patent Application Serial No. 60/384,978, filed Jun. 3, 2002, for “Multi-Bit Patricia Trees” (Docket No. RPS920020098US1) and Utility Patent Application based thereon, Ser. No. ______, filed May 30, 2003, entitled “Multi-Bit Patricia Trees” (Docket No. RPS920020098US2), which are incorporated herein by reference, describe the operational parts and operation of a Patricia tree. This invention describes an algorithm required to maintain information and tree state to support continuous tree searches, leaf inserts, leaf updates, leaf reads, and leaf deletes.
Provisional Applications (1)
|
Number |
Date |
Country |
|
60384978 |
Jun 2002 |
US |