This project implements a menu-driven console program for managing hash and overflow tables. It provides functionality for creating tables, searching for records by ID, deleting records, and printing records based on their status (active, deleted, unprocessed).
- Create Hash and Overflow Tables: Initialize tables with specified capacities.
- Search for Records: Locate a record using its unique ID.
- Delete Records: Remove records from the tables.
- Print Records: Display active, deleted, or unprocessed records.
- C++ Compiler (GCC, Clang, MSVC, etc.)
- Basic knowledge of C++ and data structures
- Clone the repository to your local machine:
git clone [github.com/danieldotwav/Hashing]
- Compile the source files. For example, using GCC:
g++ -o hash_table source.cpp HashTable.cpp
- Run the compiled program:
./hash_table
After running the program, follow the on-screen menu to interact with the hash table system. The menu includes options for creating tables, searching, deleting, and printing records.
- Hash Table: A primary table for storing records.
- Overflow Table: An auxiliary table used when the hash table is full.
- Insertion: Records are added to the hash table or overflow table based on availability.
- Search: The program searches the hash table first, then the overflow table if necessary.
- Deletion: Marks a record as deleted without physically removing it from the table.
- Printing: Displays records based on their status.
Contributions to the project are welcome. Please ensure to follow the project's coding standards and submit a pull request for review.