Skip to main content

All Questions

Tagged with
12 votes
3 answers
3k views

Is it possible to implement a well-distributed hash table without using the % operator?

I'm looking to implement a fast, well-distributed hash table in C#. I'm having trouble choosing my hash-constraining function that takes an arbitrary hash code and "constrains" it so it can be used to ...
James Ko's user avatar
  • 358
0 votes
2 answers
166 views

Track a series of choices with a single number

I want to track a series of scored questions in a single number (the total score). Is that possible? and how? For example, I have 30 questions with either 3 or 2 choices. For any given question, the ...
foobar's user avatar
  • 1