News for hackers. Stuff that matters.
Re:Fast Perfect Hashing by porpoisely on Wednesday February 13, 2019 @12:13PM (#19154610)
The first sentence of the article explains what a perfect hash function is : "A perfect hash function is one that is collision-free.". Essentially, a perfect hash function is one where no two domain elements map to the same range element.

If you want to explore it further, you can search for injective functions and one-to-one mapping.

An example of a function that produces collisions is the ABS function.

ABS( 2 ) = 2.

ABS( -2 ) = 2.

Two domain elements ( 2 and -2 ) map to the same range element ( 2 ).

Re:Fast Perfect Hashing by xorand on Wednesday February 13, 2019 @01:27PM (#19155344)
The identity function is collision free. It's the fastest one.