CIP-61- Disjoint sets- Weighted union

preview_player
Показать описание
The discrepancy created by simple union is solved through this weighted union. Here each set size is used for deciding the union action. The set with fewer elements is made the subset of the other one.
Рекомендации по теме