caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Grégoire Seux" <kamaradclimber@gmail.com>
To: caml-list <caml-list@inria.fr>
Subject: range of hash function
Date: Sat, 20 Feb 2010 14:24:23 +0530	[thread overview]
Message-ID: <1ae8fe881002200054s2e9752d8x620695c3c4e27939@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2010-02-20  8:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-20  8:54 Grégoire Seux [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1ae8fe881002200054s2e9752d8x620695c3c4e27939@mail.gmail.com \
    --to=kamaradclimber@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).