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

Join 86,244 Programmers. There are 2,251 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

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
+Quote Post


Fast ReplyReply to this topicStart new topic
Time is now: 5/16/08 08:27AM

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