Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Hashed searched base algorithm #170

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

akash110
Copy link

i have added below code on Hashing

Hashing is a process of mapping data of arbitrary size to fixed-size values, often for efficient data retrieval. A hash function takes input and produces a "hash," a seemingly random string of characters, with the key properties of being deterministic and fast.

Code Explanation:
The HashList class uses a simple hash function to map integers to indices in a list, providing a basic implementation of a hash table. The insert method adds integers to the hash table, handling collisions with chaining, and the search method checks if a given integer is present in the hash table. The example usage demonstrates the search functionality for specific integers.

@akash110 akash110 closed this Oct 14, 2023
@akash110 akash110 reopened this Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant