TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
|
Storage mechanism using linear probing hash keys. More...
#include <iostream>
#include <vector>
Go to the source code of this file.
Classes | |
struct | linear_probing::Entry |
Namespaces | |
namespace | linear_probing |
An implementation of hash table using linear probing algorithm. | |
Functions | |
bool | linear_probing::putProber (const Entry &entry, int key) |
bool | linear_probing::searchingProber (const Entry &entry, int key) |
void | linear_probing::add (int key) |
size_t | linear_probing::hashFxn (int key) |
Hash a key. Uses the STL library's std::hash() function. | |
int | linear_probing::linearProbe (int key, bool searching) |
void | linear_probing::display () |
void | linear_probing::rehash () |
void | linear_probing::remove (int key) |
void | linear_probing::addInfo (int key) |
void | linear_probing::removalInfo (int key) |
int | main () |
Variables | |
int | linear_probing::notPresent |
std::vector< Entry > | linear_probing::table |
int | linear_probing::totalSize |
int | linear_probing::tomb = -1 |
int | linear_probing::size |
bool | linear_probing::rehashing |
Storage mechanism using linear probing hash keys.
Definition in file linear_probing_hash_table.cpp.
int main | ( | void | ) |
Main function
Definition at line 224 of file linear_probing_hash_table.cpp.