[racket-dev] union-find

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Tue Jan 29 16:51:17 EST 2013

I've just pushed an implementation of the union-find algorithm to the data/
collection. I didn't do it quite the way wikipedia recommends, but instead
made the sets be little containers whose canonical element can be mutated.

This suits my purposes well, but I wanted to ask if someone on the list
knows why the wikipedia way is better.

Also, I wasn't sure about the names, so I put "uf-" on the front of
everything to discourage people from using this when they really want
racket/set. Maybe there is a better way, tho?

Robby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20130129/c378d197/attachment.html>

Posted on the dev mailing list.