TheAlgorithms / Ruby

All algorithms implemented in Ruby
MIT License
1.15k stars 289 forks source link

Added Disjoint Sets Data Structure #180

Closed NimrodRak closed 2 years ago

NimrodRak commented 2 years ago

I implemented it with the Union By Rank and Path Compression heuristics.

NimrodRak commented 2 years ago

@vbrazo can you approve this please?