Class Notes (838,386)
Canada (510,872)
CSC263H1 (54)
Lecture 11

Lecture 11.docx

3 Pages
50 Views
Unlock Document

Department
Computer Science
Course
CSC263H1
Professor
Toniann Pitassi
Semester
Winter

Description
Disjoint set union/find - m elements named 1,2,…,n - initially each element is in its own set {1}, {2}, … , {n} - each set has a representative (Set REP) S = set xepresented by X 2 Ops: 1) U(S x S y creates a set S = S U x Y return a pointer to the set REP of S 2) Find(x): gives a pointer to the element z find s such that z ∈ S and return pointer to set REP of S each U reduces the # of sets by 1 => can do at most n-1 Unions σ : Set of (n-1) unions mixed with m > n Finds Want to do any such σ "Fast" S
More Less

Related notes for CSC263H1

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit