Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Re: Is this comparison valid?

Reply
Thread Tools

Re: Is this comparison valid?

 
 
gamo@telecable.es
Guest
Posts: n/a
 
      06-10-2013
The order of the strings is non-deterministic BETWEEN RUNS, but not
any other way. After a shuffle, the order is randomized. That can
be done as many times as you want / need in a single run of the
program. And two sets of keys with some overlap will be reliably
randomly ordered after a shuffle, but not after hashing.

In some limited cases, hashing may be "random" enough, but do remember
that is is based on a formula applied to the key string, whereas a
shuffle is a rearrangement that ignores the data altogether.

Elijah
--------------------

Thank you for the explanation.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Who can explain this bug? mathog C Programming 57 06-11-2013 10:09 PM
How do I encode and decode this data to write to a file? cl@isbd.net Python 11 05-01-2013 11:36 PM
Why does this incorrect CRTP static_cast compile? kfrank29.c@gmail.com C++ 2 04-25-2013 01:38 PM
This looks like a Perl bug George Mpouras Perl Misc 18 04-21-2013 11:56 PM
Really throwing this out there - does anyone have a copy of my oldDancer web browser? steven.miale@gmail.com Python 1 04-10-2013 03:32 PM



Advertisments