I just studied the disjoint set data structure and I know that it is also called “union-find data structures”, union and find are two main operations of this data structure. We can can perform union on disjoint sets, similarly we can perform find operations; I want to know what other operations we can perform on disjoint sets except union and find.
Share
Disjoint sets structure is also called “union-find structure”. So
union,findandMakeSetoperations should be supported anyway. Other operations are not what this structure is all about, and whether they’re supported depends on implementation and the aims you have. Sometimes you’ll need to choose particular implementation specifically to fit your project’s needs of additional opertations.Other than that it would be nice if we supported the other basic set-related operations. Let’s enumerate them:
find.