|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: Sets of subsetsby mzedeler (Pilgrim) |
| on Jul 22, 2009 at 20:59 UTC ( #782440=note: print w/ replies, xml ) | Need Help?? |
|
It is easier to do as many class divisions as you have positions in each tuple (I guess tuple is a better word in stead of set, since you have the same number of elements in each of them):
While you divide into classes, you'll easilly be able to maintain a distance map like so:
This way, you can get complexity O(m * n) where m is the number of tuples and n is the size of the tuples.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||