Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^6: [OT] The statistics of hashing. (formula)

by BrowserUk (Patriarch)
on Apr 01, 2012 at 21:56 UTC ( #962936=note: print w/replies, xml ) Need Help??

in reply to Re^5: [OT] The statistics of hashing. (formula)
in thread [OT] The statistics of hashing.

If you could distill your write-up to a formula, that would be helpful. -- I already did that

I guess that your idea of a formula and mine are different.

where $b1 is the number of bits set in the first vector.

The "number of bits set" in each vector at any given insert is entirely dependent upon not just how many, but what values have already been inserted.

Which means that to use your description to calculate the probabilities, I would need to iterate the entire thing and count the number of bits set in each vector at each iteration. And then those "calculated probabilities" would only be applicable to that particular sequence of inserts.

At which point, I might just as well just record the actual numbers of false positives, rather than calculate them.

You'll no doubt come back and tell me that I've completely misunderstood you (again), and that everything I need to know is right there if I would only read you correctly.

Thank you for your attempts to assist me.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

  • Comment on Re^6: [OT] The statistics of hashing. (formula)

Replies are listed 'Best First'.
Re^7: [OT] The statistics of hashing. (formula)
by tye (Sage) on Apr 01, 2012 at 22:17 UTC
    You'll no doubt come back and tell me that I've completely misunderstood you (again)

    I never said that you completely misunderstood me. But I'll take your apparent lack of interest and leave it at that.

    - tye        

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://962936]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2022-01-19 13:44 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (55 votes). Check out past polls.