in reply to Equivalence classes from equivalence relation and fingerprints
UPDATE: I like tye's solution better than mine.
I think you're most of the way there. I haven't written the code, but the procedure would go like this:
my $run_start = 0; foreach my $index ( 0 .. @sorted - 2 ) { if ( ! prop_matching( $sorted[$index], $sorted[$index+1] ) ) { output_sets( $run_start, $index ); $run_start = $index + 1; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Equivalence classes from equivalence relation and fingerprints
by ambrus (Abbot) on Jan 19, 2007 at 14:15 UTC | |
by kyle (Abbot) on Jan 19, 2007 at 16:52 UTC |