-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLinearProbing.hpp
42 lines (34 loc) · 857 Bytes
/
LinearProbing.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
Lab 3 - Linear Probing, Quadratic Probing, and Double Hashing
CSC 255 Objects and Algorithms (Fall 2020)
Oakton Community College
Professor: Kamilla Murashkina
@file LinearProbing.hpp
@author Russell Taylor
@date 9/9/20
*/
#ifndef LinearProbing_hpp
#define LinearProbing_hpp
#include "Hash.hpp"
template <typename Key, typename Value>
class LinearProbing : public Hash<Key, Value> {
public:
/**
Constructor
@param initialSize the initial size of the hash table
*/
LinearProbing(int initialSize);
/**
Destructor
*/
virtual ~LinearProbing();
protected:
/**
Looks up a key in the hash table
@param key the key
@return the index of the key in the hash table
*/
virtual int lookUp(const Key& key);
};
#include "LinearProbing-impl.hpp"
#endif /* LinearProbing_hpp */