반응형
알고리즘 자료구조
-
자료구조: Array Hash Table 구현하기 (feat. c++)알고리즘/자료구조 2021. 5. 8. 21:01
Characteristic: - HashTable class is a array table class with hash function Operations: - insert - lookup - deletKey - dump #include #include using namespace std; const int MAX_TABLE = 11; template class HashTable { public: HashTable(); void insert(const tableKeyType& key, const tableDataType& data); bool lookup(const tableKeyType& key, tableDataType& data); void deleteKey(const tableKeyType& ke..