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; } }
In reply to Re: Equivalence classes from equivalence relation and fingerprints
by kyle
in thread Equivalence classes from equivalence relation and fingerprints
by ambrus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |