Interactive Hash Table
This project implements an interactive hash table data structure in Python. The hash table allows users to insert key-value pairs, search for a specific key, and delete a key from the table. The program provides a user-friendly command-line interface for interacting with the hash table.
Features
Hash table implementation with adjustable size. Support for inserting key-value pairs into the hash table. Searching for a specific key and retrieving its associated value. Deleting a key and its associated value from the hash table. Graceful handling of invalid user inputs.
Usage
Install Python if not already installed. Clone or download the project files. Open a terminal or command prompt and navigate to the project directory. Run the script by executing the following command: python interactive_hash_table.py Enter the size of the hash table as prompted.
Choose from the available options:
--------------------------------------------------------| Option 1: Insert a key-value pair. | Option 2: Search for a key and display its value. | Option 3: Delete a key and its associated value. |
Option 4: Exit the program. |
---|
Follow the on-screen instructions to perform the desired operations. |
Repeat steps 6-7 as needed. |
When finished, select the "Exit" option to exit the program. |
Feel free to modify the code and adapt it to your specific requirements. |
License
You can check the license on the front of repo.