A data storage method and device based on the combination of radix tree and hash table

By combining the radix tree with the hash table, using the hash table for fast retrieval and the radix tree depth-first search, the problem of low efficiency in massive data storage and retrieval is solved, and efficient data storage and retrieval are achieved.

CN114090570BActive Publication Date: 2024-08-27BEIJING INFORMATION SCI & TECH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111150541.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-29
Publication Date
2024-08-27
Estimated Expiration
2041-09-29

AI Technical Summary

Technical Problem

Existing data structures suffer from inefficiencies in massive data storage and retrieval, making it difficult to meet the storage and processing needs of the big data era.

Method used

Using a data storage method based on a combination of radix trees and hash tables, by grouping and hashing string data, frequently retrieved data is moved from the radix tree to the hash table, taking advantage of the fast retrieval characteristics of the hash table. Improve retrieval efficiency and fall back to radix trees for depth-first search when necessary.

Benefits of technology

Effectively save storage space and improve data retrieval speed, which not only ensures efficient storage of massive data, but also improves retrieval efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114090570B
    Figure CN114090570B
Patent Text Reader

Abstract

The present invention provides a data storage method and device based on the combination of a radix tree and a hash table. The method comprises: storing all string data to be stored in a radix tree; recording the number of times each node is searched, storing the string data corresponding to the leaf node with high search frequency in a hash table independent of the radix tree and with a higher search priority than the radix tree, and deleting the leaf node. The present invention combines the radix tree with the hash table, and when performing data retrieval, first retrieves the data with high search frequency stored in the hash table, and if the data cannot be retrieved in the hash table, then retrieves the data with low search frequency stored in the radix tree, which can save storage space and effectively improve the data retrieval speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data structures, and in particular relates to a data storage method and device based on the combination of a radix tree and a hash table. Background Art

[0002] In today's big data era, the surge in massive data has brought difficulties in data storage and processing to research and system applications in various fields. Storing and retrieving massive data is the basis for data analysis and processing. The lack of a suitable data storage solution will lead to bottlenecks in the development of big data-based technologies. Therefore, solving the storage and data search efficiency problems of massive data is an important issue common to all fields, and the existing data structures still have shortcomings in these aspects.

[0003] Radix tree is a commonly used data structure for storing data. The present invention improves the radix tree data structure and proposes a composite radix tree based on the radix tree, which reduces the data storage space as much as possible and improves the efficiency of mass data retrieval. The composite radix tree data structure provides a new solution for mass data storage and data search. Summary of the invention

[0004] In order to solve the above problems existing in the prior art, the present invention provides a data storage method and device based on the combination of radix tree and hash table.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions.

[0006] In a first aspect, the present invention provides a data storage method based on a combination of a radix tree and a hash table, comprising the following steps:

[0007] The string data to be stored are grouped, and the strings with the same first character are grouped together; one or more consecutive characters starting from the first character contained in each group of strings are stored in one node;

[0008] For the character string consisting of the remaining characters after removing the stored characters in the group, continue to group them according to the above method, and store the common characters in each group into the child node of the previous node; for a group containing only one character string, store the character string in its corresponding leaf node;

[0009] Repeat the above process until all string data to be stored are stored in the radix tree;

[0010] The number of times each node is searched is recorded, the string data corresponding to the leaf node with high search frequency is stored in a hash table that is independent of the radix tree and has a higher search priority than the radix tree, and the leaf node is deleted.

[0011] Furthermore, if the number of times k that a leaf node is searched exceeds a set first threshold, and the ratio of k to the number of times the direct parent node of the leaf node is searched is greater than a set second threshold, then the leaf node is a leaf node with a high search frequency.

[0012] Furthermore, the method of storing the string data corresponding to the leaf node into the hash table includes:

[0013] Performing a hash operation on the data to obtain a hash value thereof;

[0014] storing the data in a hash table with the hash value as the storage location;

[0015] If a hash collision occurs, the data where the hash collision occurs is stored in the storage location in a linked list data structure.

[0016] Furthermore, when a leaf node is deleted, the number of times all direct and indirect parent nodes of the leaf node are searched minus k is used as the updated number of times searched.

[0017] Furthermore, the method further comprises a data query step:

[0018] Traversing the hash table, if the data to be queried is retrieved in a certain position or in the linked list of the position, returning the query result;

[0019] If the data to be queried is not found in the hash table, a depth-first search algorithm is used in the radix tree to retrieve the data; if the data to be queried is found, the query result is returned.

[0020] Furthermore, the method further comprises the step of deleting data:

[0021] Traversing the hash table, if the data to be deleted is retrieved in a certain position or in a linked list of the position, deleting the data;

[0022] If the data to be deleted is not retrieved in the hash table, the radix tree is traversed, and if the data to be deleted is retrieved, the data is deleted.

[0023] Furthermore, the method further comprises the step of modifying data:

[0024] Traversing the hash table, if the data to be modified is retrieved in a certain position or in the linked list of the position, deleting the data, then inserting the data to be modified into the radix tree, and setting the number of times the new node is retrieved to 0;

[0025] If the data to be modified is not retrieved in the hash table, the radix tree is traversed. If the data to be modified is retrieved, the data is deleted, and then the data to be modified is inserted, and the number of times the new node is retrieved is set to 0.

[0026] In a second aspect, the present invention provides a data storage device based on a combination of a radix tree and a hash table, comprising:

[0027] A data grouping module is used to group the string data to be stored, and group the strings with the same first character into one group;

[0028] A first storage module, used for storing one or more consecutive characters starting from the first character contained in each group of character strings in a node;

[0029] The second storage module is used to continue grouping the character string consisting of the remaining characters after removing the stored characters in the group according to the above method, and store the common characters in each group into the child node of the previous node; for a group containing only one character string, store the character string in its corresponding leaf node;

[0030] A radix tree building module is used to repeat the above process until all string data to be stored are stored in the radix tree;

[0031] The hash table establishment module is used to record the number of times each node is searched, store the string data corresponding to the leaf node with high search frequency into a hash table independent of the radix tree and with a higher search priority than the radix tree, and delete the leaf node.

[0032] Furthermore, if the number of times k that a leaf node is searched exceeds a set first threshold, and the ratio of k to the number of times the direct parent node of the leaf node is searched is greater than a set second threshold, then the leaf node is a leaf node with a high search frequency.

[0033] Furthermore, the method of storing the string data corresponding to the leaf node into the hash table includes:

[0034] Performing a hash operation on the data to obtain a hash value thereof;

[0035] storing the data in a hash table with the hash value as the storage location;

[0036] If a hash collision occurs, the data where the hash collision occurs is stored in the storage location in a linked list data structure.

[0037] Furthermore, when a leaf node is deleted, the number of times all direct and indirect parent nodes of the leaf node are searched minus k is used as the updated number of times searched.

[0038] Furthermore, the device also includes a data query module, which is used to:

[0039] Traversing the hash table, if the data to be queried is retrieved in a certain position or in the linked list of the position, returning the query result;

[0040] If the data to be queried is not found in the hash table, a depth-first search algorithm is used in the radix tree to retrieve the data; if the data to be queried is found, the query result is returned.

[0041] Furthermore, the device also includes a data deletion module, which is used to:

[0042] Traversing the hash table, if the data to be deleted is retrieved in a certain position or in a linked list of the position, deleting the data;

[0043] If the data to be deleted is not retrieved in the hash table, the radix tree is traversed, and if the data to be deleted is retrieved, the data is deleted.

[0044] Furthermore, the device also includes a data modification module, which is used to:

[0045] Traversing the hash table, if the data to be modified is retrieved in a certain position or in the linked list of the position, deleting the data, then inserting the data to be modified into the radix tree, and setting the number of times the new node is retrieved to 0;

[0046] If the data to be modified is not retrieved in the hash table, the radix tree is traversed. If the data to be modified is retrieved, the data is deleted, and then the data to be modified is inserted, and the number of times the new node is retrieved is set to 0.

[0047] Compared with the prior art, the present invention has the following beneficial effects.

[0048] The present invention stores the data to be stored in a radix tree, records the number of times each node of the radix tree is searched, and moves the data corresponding to the leaf nodes with high search frequency to a hash table that is independent of the radix tree and has a higher search priority than the radix tree, thereby realizing data storage based on the combination of the radix tree and the hash table. Since the hash table has a fast data search speed but occupies a large storage space, the present invention combines the radix tree with the hash table, and first searches for data with high search frequency in the hash table when performing data search. If the data cannot be found in the hash table, the data with low search frequency in the radix tree is searched, which can save storage space (relative to using only the hash table) and effectively improve the data search speed (relative to using only the radix tree). BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1The present invention is a flowchart of a data storage method based on the combination of a radix tree and a hash table.

[0050] Figure 2 This is a schematic diagram of the radix tree structure.

[0051] Figure 3 The present invention is a block diagram of a data storage device based on a radix tree combined with a hash table according to an embodiment of the present invention. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present invention clearer and more understandable, the present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0053] Figure 1 This is a flow chart of a data storage method based on a combination of a radix tree and a hash table according to an embodiment of the present invention, comprising the following steps:

[0054] Step 101, grouping the string data to be stored, and grouping the strings with the same first character into one group;

[0055] Step 102, storing one or more consecutive characters starting from the first character contained in each group of character strings in a node;

[0056] Step 103, for the character string consisting of the remaining characters after removing the stored characters in the group, continue to group them according to the above method, and store the common characters in each group into the child node of the previous node; for a group containing only one character string, store the character string in its corresponding leaf node;

[0057] Step 104, repeat the above process until all string data to be stored are stored in the radix tree;

[0058] Step 105, record the number of times each node is searched, store the string data corresponding to the leaf node with high search frequency into a hash table independent of the radix tree and with a higher search priority than the radix tree, and delete the leaf node.

[0059] In this embodiment, step 101 is mainly used to group the string data to be stored. In this embodiment, the strings are grouped according to whether the first characters are the same, and the strings with the same first character are grouped into one group. Such grouping can ensure that the strings in each group have a common string with the first character as the first character. It is worth noting that the minimum value of the number of characters contained in the string involved in this embodiment is 1, that is, a single character can also be regarded as a string.

[0060] In this embodiment, step 102 is mainly used to store the first node of each group. The storage method is: find the string with the first character of each group as the first character, that is, one or more consecutive characters starting from the first character; then store this string in a node, which is also the first node of the group.

[0061] In this embodiment, step 103 is mainly used to store the child nodes and leaf nodes of each group. After storing the first node, the character strings composed of the remaining characters of each character string in the group are further grouped according to the above method (character strings with the same first character are grouped into one group), and the characters contained in each group after regrouping are stored in the child nodes of the previous node. If some groups in the grouping result contain only one character string, the character string is stored in its corresponding leaf node.

[0062] In this embodiment, step 104 is mainly used to store all the data to be stored in the radix tree structure by repeatedly executing the above steps. Figure 2 As shown, Figure 2 An example of storing seven words starting with the letter "c" is given in .

[0063] In this embodiment, step 105 is mainly used to improve the search speed. The principle of improving the search speed in this embodiment is: the data with high search frequency is moved from the radix tree to the hash table, and the search priority of the hash table is defined to be higher than the radix tree, that is, when performing data search, the hash table is searched first, and if the data to be searched is not found in the hash table, the radix tree is searched again. Since the hash table has a fast search speed (the hash table is a data structure that is directly accessed according to the key code value, and the record is accessed by mapping the key code value to a position in the table, so the search speed is fast), and what is stored in the hash table is the data with high search frequency, and the data with high search frequency is the possibility of being searched data, so the search speed can be greatly improved. This embodiment records and updates the number of times each node is searched in real time, that is, each time the node is searched, the number of times the node is searched is increased by 1. Since one leaf node corresponds to one data in general, the frequency of data search can be judged according to the number of times each leaf node is searched, thereby determining the data with high search frequency.

[0064] As an optional embodiment, if the number of times k that a leaf node is retrieved exceeds a set first threshold, and the ratio of k to the number of times the direct parent node of the leaf node is retrieved is greater than a set second threshold, then the leaf node is a leaf node with a high retrieval frequency.

[0065] This embodiment provides a technical solution for determining leaf nodes with high search frequencies. This embodiment makes judgments based on two parameters: one is the number of times k that a leaf node is searched, and the other is the ratio of the number of times k that the leaf node is searched to the number of times its direct parent node is searched. A threshold is set for each of these two parameters. When both parameters exceed the set threshold, the leaf node is considered to be a leaf node with high search frequencies.

[0066] As an optional embodiment, the method of storing the string data corresponding to the leaf node in a hash table includes:

[0067] Performing a hash operation on the data to obtain a hash value thereof;

[0068] storing the data in a hash table with the hash value as the storage location;

[0069] If a hash collision occurs, the data where the hash collision occurs is stored in the storage location in a linked list data structure.

[0070] This embodiment provides a technical solution for storing data in a hash table. First, the hash value of the data to be stored is calculated, and the hash value is the position of the data to be stored in the hash table. There are many hash algorithms, such as Adler32 algorithm, CRC32 algorithm, FNV algorithm, etc. This embodiment does not limit the specific hash algorithm. Due to the huge amount of data to be stored, the position distribution in the hash table will be uneven, and two or more data will be mapped to one position for storage at the same time through the hash algorithm. This situation is called a hash collision. When a hash collision occurs, this embodiment solves the hash collision by combining a linked list and an array, that is, creating a linked list array at the storage location, each grid in the array is a list, and the conflicting data is added to the linked list.

[0071] As an optional embodiment, when a leaf node is deleted, the number of times all direct and indirect parent nodes of the leaf node are searched minus k is used as the updated number of times searched.

[0072] This embodiment provides a technical solution for updating the number of times related nodes are searched when data is deleted. Deleting a data in a radix tree is achieved by deleting the leaf node corresponding to the data. Since the number of times the deleted leaf node is searched is included in the number of times all its direct and indirect parent nodes are searched, after deleting the leaf node, it is necessary to subtract the number of times the leaf node is searched from the number of times these parent nodes are searched as the updated number of times searched.

[0073] As an optional embodiment, the method further includes a data query step:

[0074] Traversing the hash table, if the data to be queried is retrieved in a certain position or in the linked list of the position, returning the query result;

[0075] If the data to be queried is not found in the hash table, a depth-first search algorithm is used in the radix tree to retrieve the data; if the data to be queried is found, the query result is returned.

[0076] This embodiment provides a technical solution for querying data. As mentioned above, in order to improve the retrieval speed, this embodiment performs data retrieval in the order of first the hash table and then the radix tree. Therefore, this embodiment first traverses the hash table, and if the data to be queried is retrieved in a certain position or a linked list of the position, the query result is returned and the query is completed. If the data to be queried cannot be retrieved in the hash table, the radix tree is searched, and in order to further improve the retrieval speed, a depth-first search algorithm is used in the radix tree to perform data retrieval. If the data to be queried is found, the query result is returned and the query is completed. If the data to be queried cannot be retrieved in the radix tree, it means that the data to be queried is not stored.

[0077] As an optional embodiment, the method further includes a step of deleting data:

[0078] Traversing the hash table, if the data to be deleted is retrieved in a certain position or in a linked list of the position, deleting the data;

[0079] If the data to be deleted is not retrieved in the hash table, the radix tree is traversed, and if the data to be deleted is retrieved, the data is deleted.

[0080] This embodiment provides a technical solution for deleting data. To delete a piece of data, the location of the data must first be retrieved. Data retrieval still follows the principle of first using the hash table and then the radix tree. Therefore, the hash table is traversed first. If the data to be deleted is retrieved in a certain position or in a linked list of the position, the data is directly deleted. If the data to be deleted is not retrieved in the hash table, the radix tree is searched. If the data to be deleted is retrieved, the data is deleted. If the data to be deleted is not retrieved in the radix tree, it means that the data to be deleted is not stored.

[0081] Furthermore, the method further comprises the step of modifying data:

[0082] Traversing the hash table, if the data to be modified is retrieved in a certain position or in the linked list of the position, deleting the data, then inserting the data to be modified into the radix tree, and setting the number of times the new node is retrieved to 0;

[0083] If the data to be modified is not retrieved in the hash table, the radix tree is traversed. If the data to be modified is retrieved, the data is deleted, and then the data to be modified is inserted, and the number of times the new node is retrieved is set to 0.

[0084] This embodiment provides a technical solution for modifying data. The difference between modifying data and deleting data is that in addition to deleting the data to be modified, new data must be inserted or stored. Since the number of times the newly inserted data has been searched is 0, it must be inserted into the radix tree. After inserting new data into the radix tree, the number of times the newly added nodes have been searched must be set to 0.

[0085] Figure 3 This is a schematic diagram of the composition of a data storage device based on a radix tree combined with a hash table according to an embodiment of the present invention, the device comprising:

[0086] The data grouping module 11 is used to group the string data to be stored, and group the strings with the same first character into one group;

[0087] A first storage module 12, used for storing one or more consecutive characters starting from the first character contained in each group of character strings in a node;

[0088] The second storage module 13 is used to continue grouping the character string consisting of the remaining characters after removing the stored characters in the group according to the above method, and store the common characters in each group into the child node of the previous node; for a group containing only one character string, store the character string in its corresponding leaf node;

[0089] A radix tree building module 14 is used to repeat the above process until all string data to be stored are stored in the radix tree;

[0090] The hash table establishment module 15 is used to record the number of times each node is searched, store the string data corresponding to the leaf node with high search frequency into a hash table independent of the radix tree and with a higher search priority than the radix tree, and delete the leaf node.

[0091] The device of this embodiment can be used to perform Figure 1The technical solution of the method embodiment shown has similar implementation principles and technical effects, which will not be described in detail here. The same is true for the following embodiments, which will not be described in detail.

[0092] As an optional embodiment, if the number of times k that a leaf node is retrieved exceeds a set first threshold, and the ratio of k to the number of times the direct parent node of the leaf node is retrieved is greater than a set second threshold, then the leaf node is a leaf node with a high retrieval frequency.

[0093] As an optional embodiment, the method of storing the string data corresponding to the leaf node in a hash table includes:

[0094] Performing a hash operation on the data to obtain a hash value thereof;

[0095] storing the data in a hash table with the hash value as the storage location;

[0096] If a hash collision occurs, the data where the hash collision occurs is stored in the storage location in a linked list data structure.

[0097] As an optional embodiment, when a leaf node is deleted, the number of times all direct and indirect parent nodes of the leaf node are searched minus k is used as the updated number of times searched.

[0098] As an optional embodiment, the device further includes a data query module, which is used to:

[0099] Traversing the hash table, if the data to be queried is retrieved in a certain position or in the linked list of the position, returning the query result;

[0100] If the data to be queried is not found in the hash table, a depth-first search algorithm is used in the radix tree to retrieve the data; if the data to be queried is found, the query result is returned.

[0101] As an optional embodiment, the device further includes a data deletion module, which is used to:

[0102] Traversing the hash table, if the data to be deleted is retrieved in a certain position or in a linked list of the position, deleting the data;

[0103] If the data to be deleted is not retrieved in the hash table, the radix tree is traversed, and if the data to be deleted is retrieved, the data is deleted.

[0104] As an optional embodiment, the device further includes a data modification module, which is used to:

[0105] Traversing the hash table, if the data to be modified is retrieved in a certain position or in the linked list of the position, deleting the data, then inserting the data to be modified into the radix tree, and setting the number of times the new node is retrieved to 0;

[0106] If the data to be modified is not retrieved in the hash table, the radix tree is traversed. If the data to be modified is retrieved, the data is deleted, and then the data to be modified is inserted, and the number of times the new node is retrieved is set to 0.

[0107] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A data storage method based on the combination of radix tree and hash table, characterized in that: The following steps are involved: Group the string data to be stored, and group the strings with the same first character into one group; Store one or more consecutive characters starting from the first character that are contained in each group of strings in a node; For the character string consisting of the remaining characters after removing the stored characters in the group, continue to group them according to the above method, and store the common characters in each group into the child node of the previous node; For a group containing only one string, the string is stored in its corresponding leaf node; Repeat the above process until all string data to be stored are stored in the radix tree; The number of times each node is searched is recorded, the string data corresponding to the leaf node with high search frequency is stored in a hash table that is independent of the radix tree and has a higher search priority than the radix tree, and the leaf node is deleted.

2. The data storage method based on the combination of radix tree and hash table according to claim 1 is characterized in that: If the number of times k that a leaf node is searched exceeds a set first threshold, and the ratio of k to the number of times the direct parent node of the leaf node is searched is greater than a set second threshold, then the leaf node is a leaf node with a high search frequency.

3. The data storage method based on the combination of radix tree and hash table according to claim 1 is characterized in that: The method for storing the string data corresponding to the leaf node in the hash table includes: Performing a hash operation on the data to obtain a hash value thereof; storing the data in a hash table with the hash value as the storage location; If a hash collision occurs, the data where the hash collision occurs is stored in the storage location in a linked list data structure.

4. The data storage method based on the combination of radix tree and hash table according to claim 3 is characterized in that: When a leaf node is deleted, the number of times all direct and indirect parent nodes of the leaf node are searched minus k is used as the updated number of times searched.

5. The data storage method based on the combination of radix tree and hash table according to claim 4 is characterized in that: The method also includes the step of querying data: Traversing the hash table, if the data to be queried is retrieved in a certain position or in the linked list of the position, returning the query result; If the queried data is not found in the hash table, a depth-first search algorithm is used in the radix tree to retrieve the data; If the queried data is found, the query result is returned.

6. The data storage method based on the combination of radix tree and hash table according to claim 5 is characterized in that: The method further comprises the step of deleting data: Traversing the hash table, if the data to be deleted is retrieved in a certain position or in a linked list of the position, deleting the data; If the data to be deleted is not retrieved in the hash table, the radix tree is traversed, and if the data to be deleted is retrieved, the data is deleted.

7. The data storage method based on the combination of radix tree and hash table according to claim 6 is characterized in that: The method further comprises the step of modifying the data: Traversing the hash table, if the data to be modified is retrieved in a certain position or in the linked list of the position, deleting the data, then inserting the data to be modified into the radix tree, and setting the number of times the new node is retrieved to 0; If the data to be modified is not retrieved in the hash table, the radix tree is traversed. If the data to be modified is retrieved, the data is deleted, and then the data to be modified is inserted, and the number of times the new node is retrieved is set to 0.

8. A data storage device based on a combination of a radix tree and a hash table, characterized in that: include: A data grouping module is used to group the string data to be stored, and group the strings with the same first character into one group; A first storage module, used for storing one or more consecutive characters starting from the first character contained in each group of character strings in a node; A second storage module is used to continue grouping the character string consisting of the remaining characters after removing the stored characters from the group according to the above method, and store the commonly included characters in each group into the child node of the previous node; For a group containing only one string, the string is stored in its corresponding leaf node; A radix tree building module is used to repeat the above process until all string data to be stored are stored in the radix tree; The hash table establishment module is used to record the number of times each node is searched, store the string data corresponding to the leaf node with high search frequency into a hash table independent of the radix tree and with a higher search priority than the radix tree, and delete the leaf node.

9. The data storage device based on the combination of radix tree and hash table according to claim 8, characterized in that: The method for storing the string data corresponding to the leaf node in the hash table includes: Performing a hash operation on the data to obtain a hash value thereof; storing the data in a hash table with the hash value as the storage location; If a hash collision occurs, the data where the hash collision occurs is stored in the storage location in a linked list data structure.

10. The data storage device based on the combination of radix tree and hash table according to claim 9, characterized in that: The device also includes a data modification module, which is used to: Traversing the hash table, if the data to be modified is retrieved in a certain position or in the linked list of the position, deleting the data, then inserting the data to be modified into the radix tree, and setting the number of times the new node is retrieved to 0; If the data to be modified is not retrieved in the hash table, the radix tree is traversed. If the data to be modified is retrieved, the data is deleted, and then the data to be modified is inserted, and the number of times the new node is retrieved is set to 0.