Method for generating nodes in multiway search tree and search method using the same
First Claim
1. A method for searching a multiway search tree in which pointer information is assigned so as to accommodate related information in a cache line independent of a number of keys used in each node, the method comprising the steps of:
- a) comparing an inputted Internet Protocol (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 if the inputted IP address is consistent with the key value; 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).
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.
18 Citations
5 Claims
-
1. A method for searching a multiway search tree in which pointer information is assigned so as to accommodate related information in a cache line independent of a number of keys used in each node, the method comprising the steps of:
-
a) comparing an inputted Internet Protocol (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 if the inputted IP address is consistent with the key value; 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 (2, 3)
-
-
4. A computer readable recording medium storing instructions for executing a method for searching a multiway search tree in which pointer information is assigned so as to accommodate related information in a cache line independent 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 if the inputted IP address is consistent with the key value; 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 (5)
-
Specification