awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
jamesroutley avatar

jamesroutley/write-a-hash-table

0
View on GitHub↗

Write A Hash Table

This project is a pedagogical implementation of a hash table in C, built from scratch using open addressing and linear probing for collision resolution. It serves as a computer science algorithm demo, demonstrating how to construct a fundamental key-value store at a low level.

The implementation covers the core operations of an associative array: inserting a key-value pair, looking up a value by its key, and deleting a pair. It uses a hash function to compute storage locations, maps hash values to array indices with the modulo operator, and resolves collisions by scanning sequentially through a contiguous memory block for the next available slot.

The project walks through building an open-addressed hash map that stores all key-value pairs directly in a single, pre-allocated array, rejecting duplicate keys on insert and doing nothing when attempting to delete a non-existent key.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Features

  • Computer Science Fundamentals - A pedagogical implementation of a fundamental hash table algorithm for educational purposes.
  • Open Addressing Implementations - Stores all key-value pairs directly in a contiguous array, using probing to resolve collisions.
  • Hash Tables - Walks through building an open-addressed, double-hashed hash table from scratch in C.
  • Hash Table Operations - Implements insert, search, and delete operations for associative pairs in a hash table.
  • Key-Value Stores - A low-level implementation of key-value pair storage, retrieval, and deletion using hash functions.
  • Linear Probing Sequences - Resolves hash collisions by scanning sequentially through the array for the next available slot.
  • Index Mapping Functions - Maps hash values to array indices using the modulo operator for in-bounds storage.
  • Key Deletion Operations - Removes a key-value pair from an associative array by its key, doing nothing if the key does not exist.
  • Key Insertion Operations - Inserts a key-value pair into an associative array, rejecting duplicate keys.
  • Key Lookup Operations - Retrieves the value associated with a given key from an associative array, returning null if the key is absent.
  • Core Systems and Utilities - Building a fundamental data structure to understand memory and collision handling.
  • System Programming - Implementation guide for fundamental data structures.
  • System Utilities - Implementation guide for fundamental data structures.
  • Systems Programming - Learn to implement a hash table data structure.
  • Systems Programming Projects - A tutorial on implementing a hash table from scratch.
4,345 stars·328 forks·mit·11 views

Star history

Star history chart for jamesroutley/write-a-hash-tableStar history chart for jamesroutley/write-a-hash-table

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Frequently asked questions

What does jamesroutley/write-a-hash-table do?

This project is a pedagogical implementation of a hash table in C, built from scratch using open addressing and linear probing for collision resolution. It serves as a computer science algorithm demo, demonstrating how to construct a fundamental key-value store at a low level.

What are the main features of jamesroutley/write-a-hash-table?

The main features of jamesroutley/write-a-hash-table are: Computer Science Fundamentals, Open Addressing Implementations, Hash Tables, Hash Table Operations, Key-Value Stores, Linear Probing Sequences, Index Mapping Functions, Key Deletion Operations.

Which projects share features with jamesroutley/write-a-hash-table?

Projects with overlapping indexed features include: trekhleb/javascript-algorithms — This repository is a comprehensive collection of data structures and algorithms implemented in JavaScript, designed… kezhenxu94/cache-lite — An extremely lite-weight cache framework in Kotlin, demonstrating how cache works. ronami/minipack — 📦 A simplified example of a modern module bundler written in JavaScript. leandromoreira/cdn-up-and-running — This project is a content delivery network implementation that uses a web server and scripting language to cache… g-plane/tiny-package-manager — Learn how npm or Yarn v1 works. gyoogle/tech-interview-for-developer — This project is a comprehensive technical interview preparation resource and computer science interview guide. It…

Projects sharing features with Write A Hash Table

These projects share indexed features with Write A Hash Table. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • trekhleb/javascript-algorithmstrekhleb avatar

    trekhleb/javascript-algorithms

    196,717View on GitHub↗

    This repository is a comprehensive collection of data structures and algorithms implemented in JavaScript, designed primarily as an educational resource for computer science study and technical interview preparation. It provides modular implementations of fundamental programming concepts, allowing developers to explore algorithmic logic and data organization through self-contained, verifiable code examples. The library distinguishes itself by pairing every implementation with formal Big O notation, providing predictable insights into time and space scaling requirements. Each algorithm is stru

    JavaScriptalgorithmalgorithmscomputer-science
    View on GitHub↗196,717
  • kezhenxu94/cache-litekezhenxu94 avatar

    kezhenxu94/cache-lite

    166View on GitHub↗

    An extremely lite-weight cache framework in Kotlin, demonstrating how cache works.

    View on GitHub↗166
  • g-plane/tiny-package-managerg-plane avatar

    g-plane/tiny-package-manager

    462View on GitHub↗

    Learn how npm or Yarn v1 works.

    TypeScript
    View on GitHub↗462
  • leandromoreira/cdn-up-and-runningleandromoreira avatar

    leandromoreira/cdn-up-and-running

    3,677View on GitHub↗

    This project is a content delivery network implementation that uses a web server and scripting language to cache content at the edge and reduce latency for end users. It functions as a distributed system designed to store backend responses on edge nodes and route incoming client requests through a proxy. The system utilizes custom request logic to handle edge caching strategies, including the delivery of stale content during origin failures. It implements request coalescing to merge simultaneous requests for the same resource into a single upstream call to prevent backend overload. The proje

    Lua
    View on GitHub↗3,677
Compare all 30 related projects→