An Efficient Partition Based Method for Exact Set Similarity JoinsDong Deng, Guoliang Li, He Wen, Jiannan Wang AbstractWe study the exact set similarity join problem, which, given two collections of sets, finds out all the similar set pairs from the collections. Existing methods generally utilize the prefix filter based framework. They generate a prefix for each set and prune all the pairs whose prefixes are disjoint. However the pruning power is limited, because if two dissimilar sets share a common element in their prefixes, they cannot be pruned. To address this problem, we propose a partitionbased framework. We design a partition scheme to partition the sets into several subsets and guarantee that two sets are similar only if they share a common subset. To improve the pruning power, we propose a mixture of the subsets and their 1-deletion neighborhoods (the subset of a set by eliminating one element). As there are multiple allocation strategies to generate the mixture, we evaluate different allocations and design a dynamic-programming algorithm to select the optimal one. However the time complexity of generating the optimal one is O(s^3) for a set with size s. To speed up the allocation selection, we develop a greedy algorithm with an approximation ratio of 2. To further reduce the complexity, we design an adaptive grouping mechanism, and the two techniques can reduce the complexity to O(s log s). Experimental results on three real-world datasets show our method achieves high performance and outperforms stateof-the-art methods by 2-5 times CodeOverviewWe are happy to release our binary code of setjoin. In this version we only support self-join operation. For further information please send an email to Dong Deng. InputRun setjoin on machine with 64bit ubuntu system from command line: chmod +x setjoin Description:
2 3 4 5
OutputIt prints 1 lines for each similar pair (string1, string2) and finally outputs the running time, the result number and the candidate number: 3 1 RequirementHave GCC 4.6.4 or higher and a machine running ubuntu 64bit version DownloadContactIf you have any questions about this study, please feel free to contact Dong Deng. |