Skip to content

evaou/union-find

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Union Find (Dynamic Connectivity)

Usage

$ javac UnionFind.java
$ java UnionFind input.txt

Feature

  • union: connect two objects
  • connected: is there a path conneting the two objects
  • connected component: maximal set of objects that are mutuall connected, any two objects in them are connected

Term

  • reflexive: p > p
  • symmetric: p > q -> q > p
  • transitive p > q, q > r -> p > r

Releases

No releases published

Packages

No packages published

Languages