Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
1Activity
P. 1
Union Find Algorithm Overview

Union Find Algorithm Overview

Ratings: (0)|Views: 266 |Likes:
Published by pi194043

Overview and code for basic union find algorithm.

Overview and code for basic union find algorithm.

More info:

Categories:Types, Research
Published by: pi194043 on Feb 17, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
See more
See less

09/17/2013

 
Union Find Algorithm Overview
 Pi19404
 February 17, 2013
 
 Contents
 Contents
UnionFindAlgorithmOverview
0.1 Abstract. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
0.2 Equivalence Relation. . . . . . . . . . . . . . . . . . . . . . . . .
0.2.1 Formal Definition. . . . . . . . . . . . . . . . . . . . . .
0.2.3 Equivalence Class. . . . . . . . . . . . . . . . . . . . . . .
0.3 Union Find Algorithm. . . . . . . . . . . . . . . . . . . . . . . .
0.3.1 Quick Find. . . . . . . . . . . . . . . . . . . . . . . . . . .
0.3.2 Quick Union. . . . . . . . . . . . . . . . . . . . . . . . . .
0.3.3 Weighted Quick Unions. . . . . . . . . . . . . . . . . . .
0.4 Code. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 References. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2|
 
 Union Find Algorithm Overview
 Union Find Algorithm Overview
0.1 Abstract
 Consider a set of N objects.The objects are labelled from 0 to N. A pair of objects may be connected to each other.Thus input is series sequence of pairs of integers where each integers represents a object of some type.We need to define what is meant by two integers p and  are connected to each other :-
0.2 Equivalence Relation
 Equality is a equivalence relation.A eqivalence relation is a weak form of equality. Consider certain objects which share some similar properties and are dissimilar in other aspects.We may consider such objects belonging to a specific class charac- terized by the similarity properties.If theres is no need to distinguish between objects that behave in the same way wrt certian properties ie we only require information about the class membership. which class the object belongs to.If objects that are not absolutely identical but are equal in one and only respect we employ the equivalence relation to define such a relationship An equivalence relation can be considered as formal tool for disre-garding differences between various objects and treating them asequals.
3|

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->