Skip to main content Accessibility help
×
Hostname: page-component-77c89778f8-swr86 Total loading time: 0 Render date: 2024-07-19T22:16:17.695Z Has data issue: false hasContentIssue false

6 - Union-Find and Related Structures

Published online by Cambridge University Press:  25 January 2011

Peter Brass
Affiliation:
City College, City University of New York
Get access

Summary

The problem known as “union-find” is to keep track of a partition of a set, in which partition classes may be merged, and we want to answer queries whether two elements are in the same class. This problem was first discussed in Arden, Galler, and Graham (1961) and Galler and Fisher (1964) with the motivation of keeping track of the equivalence of identifiers, because in Fortran and several other early languages it was possible to give several names to the same variable. Later, much more important applications were found, and this step of keeping track of a partition of a set whose classes grow together can be found, for example, in the minimum-spanning-tree algorithms of Kruskal and Borůvka.

The large number of papers generated by this problem and its relatives are not so much motivated by the difficult structures they use, but by the difficulties of the analysis. Also, it turned out that the correct answer very much depends on the exact question and the computational model. This is one of the two places in algorithms where the inverse Ackermann function occurs, an extremely slow-growing function, and it not only occurs as a technical device, but also gives the correct order of the amortized complexity of the classical solution to this problem.

The structures related to the union-find problem are again, like the binary search trees, useful building blocks in the construction of more complicated data structures.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2008

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×