Conversation started Jun 27, 2013 at 18:21.
Jun 27, 2013 18:21
@pk188: Seen your question, I think you're going to run into the problem I ran into when trying to solve my question; however, I had a whole semester where I saw multiple clustering algorithms so my thoughts about it have improved since. I currently don't have interest in solving the original problem at the moment (it was actually to find duplicates on SE), but can share you some relevant theory (yeah, theory, might not be easy to grasp) that can help to speed things up:
Locality-sensitive hashing (LSH) is a method of performing probabilistic dimension reduction of high-dimensional data. The basic idea is to hash the input items so that similar items are mapped to the same buckets with high probability (the number of buckets being much smaller than the universe of possible input items). This is different from the conventional hash functions, such as those used in cryptography as in this case the goal is to maximize probability of "collision" of similar items rather than avoid collisions. Note how locality-sensitive hashing, in many ways, mirrors data clust...
The Jaccard index, also known as the Jaccard similarity coefficient (originally coined coefficient de communauté by Paul Jaccard), is a statistic used for comparing the similarity and diversity of sample sets. The Jaccard coefficient measures similarity between sample sets, and is defined as the size of the intersection divided by the size of the union of the sample sets: : J(A,B) = {{|A \cap B|}\over{|A \cup B|}}. The MinHash min-wise independent permutations locality sensitive hashing scheme may be used to efficiently compute an accurate estimate of the Jaccard similarity coefficient o...
This is much more efficient, only downside is that you need to run spell correction and stemming on the strings in advance so only works on sane enough data; but should be better than having to cluster by computing Levenshtein distance or similar similarity measures over and over again.
Actually just thinking about this makes me want to play with it again to see if this approach scales up to the size of the SE sites, maybe.
Given the examples in your question I assume you're trying to do something similar...
 
Conversation ended Jun 27, 2013 at 18:27.