Method for generating nodes in multiway search tree and search method using the same
First Claim
1. A method for generating nodes of a multiway search tree, comprising the steps of:
- a) assigning at least one key to each of the nodes; and
b) assigning pointer information so that related information written on the node is accommodated in a cache line regardless a number of keys.
1 Assignment
0 Petitions
Accused Products
Abstract
A node structure of a multiway search tree can accelerates a search speed by making a key, a key pointer and a node pointer coincident with the size of a cache line through the use of only one pointer written on a node regardless of the number of keys used in the node and, thereafter, reduce the main memory capacity, a search method using the node structure and a computer readable recording medium in which a program implementing the search method is recorded. The method for generating nodes of a multiway search tree includes the steps of: a) assigning at least one key to each of the nodes; and b) assigning pointer information so that related information written on the node is accommodated in a cache line regardless a number of keys.
-
Citations
14 Claims
-
1. A method for generating nodes of a multiway search tree, comprising the steps of:
-
a) assigning at least one key to each of the nodes; and
b) assigning pointer information so that related information written on the node is accommodated in a cache line regardless a number of keys. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method for searching a multiway search tree in which pointer information is assigned to so as to accommodate related information in a cache line regardless of a number of keys used in each node, the method comprising the steps of:
-
a) comparing an inputted IP address with a key value;
b) if the inputted IP address is consistent with the key value, searching an outgoing interface by using a key pointer included in the node;
c) if the inputted IP address is not consistent with the key value, determining a type of the node by searching a node pointer;
d) if the node is a leaf node, searching the outgoing interface by acquiring the key pointer after monitoring where the consistency occurs; and
e) if the node is not the leaf node, moving to a next node with reference to the node pointer, and then repeating the steps of a) to c). - View Dependent Claims (9, 10)
-
-
11. A computer readable recording medium storing instructions for executing a method for generating nodes of a multiway search tree, the method comprising the steps of:
-
a) assigning at least one key to each of the nodes; and
b) assigning pointer information so that related information written on the node is accommodated in a cache line regardless a number of keys. - View Dependent Claims (12)
-
-
13. A computer readable recording medium storing instructions for executing a method for searching a multiway search tree in which pointer information is assigned to so as to accommodate related information in a cache line regardless of a number of keys used in each node, the method comprising the steps of:
-
a) comparing an inputted IP address with a key value;
b) if the inputted IP address is consistent with the key value, searching an outgoing interface by using a key pointer included in the node;
c) if the inputted IP address is not consistent with the key value, determining a type of the node by searching a node pointer;
d) if the node is a leaf node, searching the outgoing interface by acquiring the key pointer after noticing where the consistency occurs; and
e) if the node is not the leaf node, moving to a next node with reference to the node pointer, and then repeating the steps of a) to c). - View Dependent Claims (14)
-
Specification