![]() |
TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
|
Storage mechanism using double-hashed keys. More...
#include <iostream>#include <memory>#include <vector>Go to the source code of this file.
Classes | |
| struct | double_hashing::Entry |
| struct | Entry |
Namespaces | |
| namespace | double_hashing |
| An implementation of hash table using double hashing algorithm. | |
Typedefs | |
| using | double_hashing::Entry = struct Entry |
Functions | |
| bool | double_hashing::putProber (const Entry &entry, int key) |
| bool | double_hashing::searchingProber (const Entry &entry, int key) |
| void | double_hashing::add (int key) |
| size_t | double_hashing::hashFxn (int key) |
| Hash a key. Uses the STL library's std::hash() function. | |
| size_t | double_hashing::otherHashFxn (int key) |
| Used for second hash function. | |
| int | double_hashing::doubleHash (int key, bool searching) |
| Performs double hashing to resolve collisions. | |
| void | double_hashing::display () |
| void | double_hashing::rehash () |
| void | double_hashing::remove (int key) |
| void | double_hashing::addInfo (int key) |
| void | double_hashing::removalInfo (int key) |
| int | main () |
Variables | |
| int | double_hashing::notPresent |
| std::vector< Entry > | double_hashing::table |
| int | double_hashing::totalSize |
| int | double_hashing::tomb = -1 |
| int | double_hashing::size |
| bool | double_hashing::rehashing |
| std::vector< Entry > | table |
| int | totalSize |
Storage mechanism using double-hashed keys.
Definition in file double_hash_hash_table.cpp.
| int main | ( | void | ) |
Main program
Definition at line 250 of file double_hash_hash_table.cpp.
| std::vector<Entry> double_hashing::table |
Definition at line 29 of file double_hash_hash_table.cpp.
| int double_hashing::totalSize |
Definition at line 30 of file double_hash_hash_table.cpp.