:xequivalent sequence is a coding problem in topcoder which is merely 300 points, however, I feel it is so complex that I spent more than a whole day to figure out some solution, which I believe. The definition of equivalent is more or less a 'weak order of sum of its all subsets'. i.e. given two equal length sequence or vector, for all subsets of the sequence, the sum should be at same rank.