Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The obvious solution is O(n^2).
Is there a smarter way?
Consider a collection of sets C = (S_1, S_2, ... , S_n).
Say set S_i 'covers' sets S_j, S_k, ... S_m iff S_i is a subset of S_j, is a subset of S_k, ... is a subset of S_m.
I seek the smallest subset of C that covers all members of C.
Any suggestions would be appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CS set coverage question perl
by jdalbec (Deacon) on Sep 26, 2004 at 17:48 UTC | |
|
Re: CS set coverage question perl
by exussum0 (Vicar) on Sep 26, 2004 at 14:30 UTC |