Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5953577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:50:46+00:00 2026-05-22T17:50:46+00:00

Is there a hash implementation around that doens’t remember key values? I have to

  • 0

Is there a hash implementation around that doens’t remember key values? I have to make a giant hash but I don’t care what the keys are.

Edit:

Ruby’s hash implementation stores the key’s value. I would like hash that doesn’t remember the key’s value. It just uses the hash function to store your value and forgets the key. The reason for this is that I need to make a hash for about 5 gb of data and I don’t care what the key values are after creating it. I only want to be able to look up the values based on other keys.

Edit Edit:

The language is kind of confusing. By key’s value I mean this:

hsh[‘value’] = data

I don’t care what ‘value’ is after the hash function stores data in the hash.

Edit^3:

Okay so here’s what I am doing: I am generating every 35-letter (nucleotide) kmer for a set of multiple genes. Each gene has an ID. The hash looks like this:

kmers = { 'A...G' => [1, 5, 3], 'G...T' => [4, 9, 9, 3]  }

So the hash key is the kmer, and the value is an array containing IDs for the gene(s)/string(s) that have that kmer.

I am querying the hash for kmers in another dataset to quickly find matching genes. I don’t care what the hash keys are, I just need to get the array of numbers from a kmer.

>> kmers['A...G']
=> [1, 5, 3]

>> kmers.keys.first
=> "Sorry Dave, I can't do that"
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:50:46+00:00Added an answer on May 22, 2026 at 5:50 pm

    Even if there was an oddball hash that just recorded existence (which is how I understand the question) you probably wouldn’t want to use it, as the built-in Hash would be simpler, faster, not require a gem, etc. So just set…

     h[k] = k
    

    …and call it a day…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there any built-in C# data structures that are like a hash table but
I'm wondering if there is an IList<T> implementation that's backed by a hash like
Is there a hash function that returns a 16-digit hex value (as MD5 returns
Is there a way to generate a hash of a string so that the
Is there any chance that a SHA-1 hash can be purely numeric, or does
Is there any way to use a constant as a hash key? For example:
is there any function in C++ that calculates a fingerprint or hash of a
Possible Duplicate: Is there a production ready lock-free queue or hash implementation in C++
I have used java for long time and see there is an implementation for
I recently discovered that the implementation of the hash map in C++ will be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.