Simplest Hash Functions
purplesyringa.moe
Simplest Hash Functions
1–10 of 62 posts
Re: Simplest Hash Functions
#2I get why technically it is a hash function, but still, no.
Re: Simplest Hash Functions
#3a hash function that produce hashes that are already in the hash table should, IMO, not be called a hash function. I get why technically it is a hash function, but still, no.
fn hash(data):
return dataRe: Simplest Hash Functions
#4a hash function that produce hashes that are already in the hash table should, IMO, not be called a hash function. I get why technically it is a hash function, but still, no.
Re: Simplest Hash Functions
#5a hash function that produce hashes that are already in the hash table should, IMO, not be called a hash function. I get why technically it is a hash function, but still, no.
Here is a hash function that does not have hash collisions: fn hash(data): return data
Re: Simplest Hash Functions
#6I'm perplexed to the claim that addition is cheaper than XOR, especially since addition is built upon XOR, am I missing anything? Is it javascript specific?
Re: Simplest Hash Functions
#7a hash function that produce hashes that are already in the hash table should, IMO, not be called a hash function. I get why technically it is a hash function, but still, no.
Re: Simplest Hash Functions
#8Re: Simplest Hash Functions
#9Earlier quoted context omitted.
Here is a hash function that does not have hash collisions: fn hash(data): return data
Well it no longer constrains the data in a fixed output length.
Re: Simplest Hash Functions
#10The full scope of things hash functions are commonly used for requires at least four algorithms if you care about performance and optimality. It is disconcertingly common to see developers using hash algorithms in contexts where they are not fit for purpose. Gotta pick the right tool for the job.