Ayanzadeh93 / Union_Find

Union-Find implementation using Python. (Union-By-Rank & Path-Compression)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Union-Find

Python implementation of a Union-Find data structure with union-by-rank and path-compression heuristics.

Supported Operation:

Queries:

  • find(element)
  • getElements()

Updates:

  • union(set, set)

About

Union-Find implementation using Python. (Union-By-Rank & Path-Compression)


Languages

Language:Python 100.0%