Sets
Eray Ozkural
eozk@bicom-inc.com
Thu, 2 Jan 2003 13:27:02 +0200
I had asked a similar question on haskell lists about how to implement
hypergraphs efficiently, which are combinatorics of finite sets (sets of
sets). As a matter of fact, I obtained a nice and small finite set
implementation that works for me, let me see if it is worth posting.
If you are working with larger than trivial hypergraphs and expensive
algorithms performance can be a problem, so it would be better to surpass a
suboptimal approach.
Thanks,
On Friday 15 November 2002 10:31 pm, Mark T.B. Carroll wrote:
> Am I right in thinking that sets of sets don't really work with GHC's
> Data.Set because "Set a" things aren't instances of Ord? How should I do
> sets of sets with it?
>
> (e.g. Set.mkSet [Set.unitSet 1] gives "No instance for (Ord (Set a))")
>
> -- Mark
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
--
Eray Ozkural <eozk@bicom-inc.com>
Software Engineer, BICOM Inc.
GPG public key fingerprint: 360C 852F 88B0 A745 F31B EA0F 7C07 AE16 874D 539C