Storing Hierarchical Data to Enable Paging
First Claim
1. A machine-implemented method for performing a paging operation on a tree having a plurality of nodes, comprising:
- maintaining, in a machine-readable medium, for each node of said plurality of nodes of said tree, a preorder number and a subtree size, wherein the preorder number associated with a particular node of said tree identifies a position for said particular node in a depth-first search ordering of said plurality of nodes of said tree, and wherein the subtree size associated with said particular node identifies a count of all the nodes of a subtree rooted at said particular node; and
in response to receiving a request to perform said paging operation on said plurality of nodes of said tree, determining a set of nodes that satisfy said paging operation using the preorder number and the subtree size of at least one node of said plurality of nodes of said tree.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and apparatus for performing a paging operation on a tree having a plurality of nodes is provided. A preorder number and a subtree size are maintained in a machine-readable medium for each of the plurality of nodes of the tree. The preorder number associated with a particular node of the tree identifies a position for the particular node in a depth-first search ordering of the plurality of nodes of the tree. The subtree size associated with a particular node of the tree identifies a count of all the nodes in a subtree rooted at the particular node. In response to receiving a request to perform a paging operation on the plurality of nodes of the tree, a set of nodes that satisfy the paging operation may be determined using the preorder number and the subtree size associated with each node of the tree.
26 Citations
20 Claims
-
1. A machine-implemented method for performing a paging operation on a tree having a plurality of nodes, comprising:
-
maintaining, in a machine-readable medium, for each node of said plurality of nodes of said tree, a preorder number and a subtree size, wherein the preorder number associated with a particular node of said tree identifies a position for said particular node in a depth-first search ordering of said plurality of nodes of said tree, and wherein the subtree size associated with said particular node identifies a count of all the nodes of a subtree rooted at said particular node; and in response to receiving a request to perform said paging operation on said plurality of nodes of said tree, determining a set of nodes that satisfy said paging operation using the preorder number and the subtree size of at least one node of said plurality of nodes of said tree. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A machine-readable medium storing one or more sequences of instructions for performing a paging operation on a tree having a plurality of nodes, which when executed, perform:
-
maintaining, in a machine-readable medium, for each node of said plurality of nodes, a preorder number and a subtree size, wherein said preorder number identifies, for a particular node of said tree, a position for said particular node in a depth-first search ordering of said plurality of nodes of said tree, and wherein said subtree size identifies, for said particular node of said tree, a count of all the nodes of a subtree rooted at said particular node; and in response to receiving a request to perform said paging operation on said plurality of nodes of said tree, determining a set of nodes that satisfy said paging operation using the preorder number and the subtree size of at least one node of said plurality of nodes of said tree. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
-
Specification