Skip to content

Hash table implementation in C++, previously stored on BitBucket. Works on a simple library system.

License

Notifications You must be signed in to change notification settings

samcdonovan/CPP-HashTable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

C++ Hash Table Implementation

License


📝 Table of Contents

ℹ️ About

Hash table implementation in C++. Works on a simple "library system", where it can store, retrieve and delete books from the system with good time complexity and good space complexity if the number of books is of a reasonable size.

This hash table uses linear probing as its collision resolution, and in the best case, provides O(1) get and put functions. With Book objects, the hash function provides fairly unique hash codes, so O(1) is realistic. It could be easily changed to accomodate for primitives though, and generic types too but would lose certainty in the hash values' uniqueness, making O(1) less likely.

💻 Libraries

  • Catch2: Unit testing library, tests ensured that the hash table functioned as intended, and could handle edge cases, as well as user input validation.

✍️ Authors

About

Hash table implementation in C++, previously stored on BitBucket. Works on a simple library system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published