Welcome to Dream.In.Code
Click Here
Getting Help is Easy!

Join 117,614 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,975 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Union Find

 
Reply to this topicStart new topic

Union Find

walrus
post 8 Apr, 2008 - 09:39 AM
Post #1


New D.I.C Head

*
Joined: 3 Apr, 2008
Posts: 4

Hello everyone!!
I'm Roberto from Italy. I'm working on my thesis in C++ and I'm using the union-find data structure.

I have a graph where an integer variable is stored. Initially, every vertex is in a singleton set named by itself. For every node v, the operationf find(v) returns the current name of the set in the partition that contains v (ie, find(v) returns the node with the highest value of the variable in the partition that contains the node v) , and when u and v are distinct current name of the set in the partition that contains v, and when u and v are distinct current names of sets in the partitions, union(u,v) replaces these sets by their union and gives the new set the name u. (ie. union returns a new partition where u is the name of the node with highest value of that variable)

Can anyone suggests me a good union-find library ?

Regards,
Roberto
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 10/7/08 11:58PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month