Skip to content

This project implements a hash table in C, providing a data structure for efficient key-value pair storage and retrieval.

Notifications You must be signed in to change notification settings

Stefano-Mazziotta/hashtable-in-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hash Table Implementation in C

This is a basic implementation of a hash table in C programming language. The code provides functionalities to insert, lookup, and delete elements from the hash table.

Features

  • Hash Function: Uses a simple hash function to determine the index for storing elements in the hash table.
  • Collision Handling: Resolves collisions using separate chaining by maintaining a linked list at each index.
  • Initialization: Initializes the hash table with a specified size.

Usage

  1. Clone the repository:

    git clone https://github.com/stefano-mazziotta/hash-table-c.git
  2. Compile the code using the provided makefile::

    make main
  3. Run the executable:

    ./_output/hash_table

Contributing

Feel free to contribute to this project by opening issues or submitting pull requests. Your feedback and contributions are highly appreciated.

About

This project implements a hash table in C, providing a data structure for efficient key-value pair storage and retrieval.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors