caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* range of hash function
@ 2010-02-20  8:54 Grégoire Seux
  2010-02-20 10:52 ` [Caml-list] " Goswin von Brederlow
  2010-02-20 13:54 ` Jacques Garrigue
  0 siblings, 2 replies; 5+ messages in thread
From: Grégoire Seux @ 2010-02-20  8:54 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 681 bytes --]

hello !

i would like to use the polymorhpic hash function on strings. But i would
like to know what is the probability of a collision between two hashes.

my first question is about the range of the Hashtbl.hash function: what is
its range ? ( string -> [1..N] ?)

the second question is : can i assume that the result is a uniform
distribution over [1..N] ? (for 10⁶ words which is an estimation of the
english vocabulary size)

the third one is : is it possible to predict which will be the collision ? I
mean collisions are between words which are very 'similar' (for ex: "boy"
and "boys") or are completely unpredictable.

thanks !


-- 
Grégoire Seux

[-- Attachment #2: Type: text/html, Size: 859 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-02-21 23:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-20  8:54 range of hash function Grégoire Seux
2010-02-20 10:52 ` [Caml-list] " Goswin von Brederlow
2010-02-20 12:39   ` ygrek
2010-02-20 13:54 ` Jacques Garrigue
2010-02-21 23:10   ` Richard Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).