![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Does there exist a set of hashing functions, H1(), H2(), .., Hn() which will produce at least one different result for any pair of data values? |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
In the old days, a DISTINCT or GROUP BY in an SQL engine were done by a sort. Back then we built early SQLs on top of existing file systems and we had pretty good sort procedures in the library. How many kids today have ever seen a polyphase merge sort on tape drives? But today with parallel hardware and good hashing algorithms, would it be faster to use hashing to cluster equivalent classes of data together? Obviously, if two data values are equal, they will have the same hash for all hashing functions. But two different values can have the same hash for any one hashing function. Does there exist a set of hashing functions, H1(), H2(), .., Hn() which will produce at least one different result for any pair of data values? |
#5
| |||
| |||
|
|
How many kids today have ever seen a polyphase merge sort on tape drives? |
#6
| |||
| |||
|
|
Speaking SQL, some of the "big 3" vendors still code in C, but that is another story... |
#7
| |||
| |||
|
|
On 12 okt, 18:35, -CELKO- <jcelko... (AT) earthlink (DOT) net> wrote: Does there exist a set of hashing functions, H1(), H2(), .., Hn() which will produce at least one different result for any pair of data values? If you can explain to me how a _SET_ (of hashing functions) can "PRODUCE" a result, then I might consider trying to think about this. Since the above SQL-hack attempt fundamentally ignores the necessity |
#8
| |||
| |||
|
|
But two different values can have the same hash for any one hashing function. |
|
Does there exist a set of hashing functions, H1(), H2(), .., Hn() which will produce at least one different result for any pair of data values? |
#9
| |||
| |||
|
#10
| |||
| |||
|
|
-CELKO- wrote: How many kids today have ever seen a polyphase merge sort on tape drives? I turned 50 last birthday and I've never seen one, and I live in England. -- Roy |
![]() |
| Thread Tools | |
| Display Modes | |
| |