Re: Union of sets in O(N)



tomerdr@xxxxxxxxx writes:

Hi,

Suppose A,B,C.....are sets which contains real numbers between 0 and 1,

(U=Union)
I need to create a set S= AUBUCU...... in O(N)

It is also known that for every x,y belong to S

MIN(ABS(X-Y))>1/m (x!=y)

Where 1/m=O(N)

Don't you mean m=O(N)? Otherwise, this is trivially false.

I am planning to use hash table to solve it but I wonder can I prove
from the above that a hash function without hash collision exist?

This sounds like homework to me. I'll give you a hint: Use floor(X*N)
as "hash" function. Then show that the maximal number of elements that
have the same hash function is O(1).

Torben
.



Relevant Pages

  • Re: Inverse Hash Function
    ... > I have a hash function: ... > fake plain text A', where A' = h', probably A' is not equal to A, but I ... Is it possible to build an inverse hash function h'so ... > I do appreciate if you could answer me or send me a hint. ...
    (sci.crypt)
  • Inverse Hash Function
    ... I have a plain text: ... Suppose that I have an inverse hash function: h', so that I can get a fake ... I do appreciate if you could answer me or send me a hint. ...
    (sci.crypt)
  • Re: un-hashing to reveal pass phrase [was: crypto sms]
    ... > Unruh wrote: ... >> That assumes that the only or best way of breaking CryptoSMS is to ... >> find a hash collision. ... > the number of possible outputs from a typical 128 bit hash function? ...
    (sci.crypt)
  • Re: Hash function
    ... First, it is not homework! ... encryption scheme, while I need this hash function. ...
    (sci.crypt)