VB.NET常用的哈希算法集.其中包括了著名的暴雪的哈希,T33哈希....... 不同的哈希算法在分布式,布降过滤器,位图MAP等等应用得比较多...
HashMap
00 Remarks
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| HashDJB | 2 | 和 HashCMyMap 基本一样. |
| HashBKDR | 2 | BKDR 哈希 |
| HashCMyMap | 2 | 经典times33算法。简单高效。[这个使用移位代替*33] 测试一千万。没有重复哈希值。 |
| HashTimeMap | 2 | 经典的Time算法。简单,高效。 Ngix使用的是 time31,Tokyo Cabinet使用的是 time37 小写英文词汇适合33, 大小写混合使用65。time33比较适合的是英文词汇的hash. |
| HashTimeMapCheckSum | 1 | 经典的Time算法。简单,高效。 Ngix使用的是 time31,Tokyo Cabinet使用的是 time37 小写英文词汇适合33, 大小写混合使用65。time33比较适合的是英文词汇的hash. |
| HashCodePair | 2 | generate unique hashcode for a tuple object |
| HashRS | 1 | |
| HashSDBM | 1 | |
| HashJS | 1 | |
| HashPJW | 1 | |
| HashAP | 1 | |
| HashDEK | 1 | |
| HashELF | 1 | |
| CalcHashCode | 1 |
03 Members
String)和 HashCMyMap 基本一样.
| Name | Type | Description |
|---|---|---|
Key | String | - |
Byte())和 HashCMyMap 基本一样.
| Name | Type | Description |
|---|---|---|
KeyByte | Byte() | - |
String, Int64)BKDR 哈希
| Name | Type | Description |
|---|---|---|
Key | String | - |
seed | Int64 | 种子.最好是使用质数. |
Byte(), Int64)BKDR 哈希
| Name | Type | Description |
|---|---|---|
KeyByte | Byte() | - |
seed | Int64 | 种子数 |
String)经典times33算法。简单高效。[这个使用移位代替*33] 测试一千万。没有重复哈希值。
| Name | Type | Description |
|---|---|---|
Key | String | - |
Byte())经典times33算法。简单高效。[这个使用移位代替*33] 测试一千万。没有重复哈希值。
| Name | Type | Description |
|---|---|---|
KeyByte | Byte() | - |
String, Int16)经典的Time算法。简单,高效。 Ngix使用的是 time31,Tokyo Cabinet使用的是 time37 小写英文词汇适合33, 大小写混合使用65。time33比较适合的是英文词汇的hash.
| Name | Type | Description |
|---|---|---|
Key | String | - |
seed | Int16 | 种子数。 31,33,37 。。。 |
Byte(), UInt32)经典的Time算法。简单,高效。 Ngix使用的是 time31,Tokyo Cabinet使用的是 time37 小写英文词汇适合33, 大小写混合使用65。time33比较适合的是英文词汇的hash.
| Name | Type | Description |
|---|---|---|
KeyByte | Byte() | - |
seed | UInt32 | 种子质数。 31,33,37 。。。 |
Byte(), UInt32)经典的Time算法。简单,高效。 Ngix使用的是 time31,Tokyo Cabinet使用的是 time37 小写英文词汇适合33, 大小写混合使用65。time33比较适合的是英文词汇的hash.
| Name | Type | Description |
|---|---|---|
KeyByte | Byte() | - |
seed | UInt32 | 种子质数。 31,33,37 。。。 |
Int32, Int32)generate unique hashcode for a tuple object
| Name | Type | Description |
|---|---|---|
a | Int32 | hashcode of one clr object. |
b | Int32 | hashcode of another clr object. |
UInt64, UInt64)generate unique hashcode for a tuple object
| Name | Type | Description |
|---|---|---|
a | UInt64 | hashcode of one clr object. |
b | UInt64 | hashcode of another clr object. |
String, Int64)String)String)String)String)String)String)IEnumerable(Of UInt64))