Operation method and device for Hash table
An operation method and technology of an operation device, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve the problems of reducing data search efficiency and increasing storage space, and achieve high search efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0082] Although Embodiment 1 is described by taking the design of the core router of the IPv4 version as an example, those skilled in the art can clearly see that the present invention is not limited to the design of the core router in Embodiment 1, and can also be applied to other For application occasions, examples are not repeated here.
[0083] The invention also proposes another operation method of the HASH table. Below, in conjunction with embodiment 2 this method is described in detail, image 3 It is the flowchart of Embodiment 2.
[0084] In step 301, an entry space is allocated, and the number N of entries to be read each time is set.
[0085] In step 302, the HASH algorithm is used to convert the IP address into a HASH index value, and the IP address not converted by the HASH algorithm is stored in each entry.
[0086] Wherein, after the IP address is converted into a HASH index value, the corresponding data and the IP address are stored in the current entry corr...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 