GithubHelp home page GithubHelp logo

danieldotwav / hashing Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 64 KB

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).

C++ 97.18% C 2.82%
hash-tables hashing boundary-folding mid-square

hashing's Introduction

Overview

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).

Features

  • 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.

Getting Started

Prerequisites

  • C++ Compiler (GCC, Clang, MSVC, etc.)
  • Basic knowledge of C++ and data structures

Installation

  1. Clone the repository to your local machine:
    git clone [github.com/danieldotwav/Hashing]
    
  2. Compile the source files. For example, using GCC:
    g++ -o hash_table source.cpp HashTable.cpp
    
  3. Run the compiled program:
    ./hash_table
    

Usage

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.

How It Works

Data Structure

  • Hash Table: A primary table for storing records.
  • Overflow Table: An auxiliary table used when the hash table is full.

Operations

  • 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.

Contributing

Contributions to the project are welcome. Please ensure to follow the project's coding standards and submit a pull request for review.

hashing's People

Contributors

danieldotwav avatar dhpixel avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.