×

Method and apparatus for deleting nodes in Patricia trees

  • US 6,012,061 A
  • Filed: 11/25/1997
  • Issued: 01/04/2000
  • Est. Priority Date: 11/25/1997
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method of deleting a node C in a tree having the properties that there is a unique path to every tree node, each node has a left child node and a right child node and corresponding left and right child pointers, each node is associated with a bit index identifying the bit position in a search key to be examined to determine whether to advance to the left child node or to the right child node as the tree is traversed, the bit indices of successive nodes monotonically decrease for trees of a first type and monotonically increase for trees of a second type as the tree is traversed, except for the last node in any path in which the bit index increases for trees of the first type and decreases for trees of the second type with respect to the bit index of the immediately preceeding node,for trees of the first type, each bit in positions M-1 through i+1 of the search key leading to a node N is equal to the corresponding bit in the search keys that lead to any of its child nodes, where i is a bit index of node N and M is the number of bits in a search key used to traverse the tree,and for trees of the second type, each bit in positions 0 through i-1 of the search key leading to a node is equal to the corresponding bit in the search keys that lead to any of its child nodes, the method comprising the steps oflocating the deletion node C by traversing the tree according to a search key corresponding to the deletion node,identifying a node B immediately preceding node C in the path to node C, andreplacing the node C in the tree with node B.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×