The invention belongs to the field of computer hash data structures, in particular to a
data structure for hash operation and a
hash table storage and query method based on the structure. In order toensure the query efficiency, a dual-port
memory bank is adopted for hardware implementation, the content of two addresses of the
memory bank can be read at the same time, key value comparison can be completed within the determined time, and the method is suitable for achieving efficient query in an
assembly line mode. More candidate positions are provided through more hash operations, the probability of hash conflicts is reduced, the
insertion, storage and updating efficiency of
hash table entries is improved, dynamic change of
hash table entry capacity is supported, space waste or performancereduction caused by table entry
insertion operation is avoided, and the method is suitable for applications with unknown and constantly changing hash table entries. A CRC
algorithm is adopted as a
hash function, a hash calculation result has good uniqueness, the hash calculation result can be obtained on the basis of XOR exclusive-OR operation and a
parallel pipeline implementation structure during specific implementation, and hardware design implementation is facilitated.