Key 0 | Key 1 | Key 2 | Key 3 | |
---|---|---|---|---|
h0 | 0 | 2 | 3 | 1 |
h1 | 1 | 3 | 4 | 4 |
=> | => |
Key 0 | Key 1 | Key 2 | Key 3 | |
---|---|---|---|---|
h0 | 0 | 2 | 3 | 1 |
h1 | 1 | 3 | 4 | 4 |
=> | => |
Input | Algorithm | Tries | Run time in s |
---|---|---|---|
web2 | CHM | 1 | 0.58 |
CHM3 | 39 | 0.58 | |
BPZ | 11 | 0.51 | |
web2a | CHM | 12 | 0.35 |
CHM3 | 7 | 0.17 | |
BPZ | 18 | 0.16 |
#include <stdlib.h>
uint32_t
hash(const void * __restrict key, size_t keylen)
{
static const uint32_t g[469955] = {
/* ... */
};
uint32_t h[3];
mi_vector_hash(key, keylen, 0x00000000U, h);
return (g[h[0] % 469955] + g[h[1] % 469955]) % 234977;
}
Destination network | Gateway |
---|---|
0/0 | 192.168.0.10 |
127/8 | 127.0.0.1 |
192.168/16 | R: 0/0 |
192.168.0/24 | 192.168.0.2 |
192.168.1/24 | 192.168.0.1 |
10/8 | 192.168.0.1 |
10.0/16 | R: 10/8 |
10.0.10/24 | 192.168.0.5 |
10.192/12 | 192.168.0.6 |
11/8 | R: 10/8 |
11.192/12 | 192.168.0.7 |
Questions?