Introduction

Fig. Each graph consists of vertices and edges. The root vertices are in blue

Fig. Each graph consists of vertices and edges. The root vertices are in blue

You Will Know

Why Should You Learn These

Contents

Click cmd/ctrl + option/alt + T to expand all toggles

1. Basic Idea of a Disjoint Set


2. Implementation of Disjoint Set


3. Quick Find


4. Quick Union


5. Union by Rank


6. Path Compression Optimization


7. Optimized Disjoint Set with Path Compression and Union by Rank


8. General Problems


Conclusions

References

Further Readings

Note