(findroot uf v)Given a UnionFind record and a vertex(node) find the root-vertex of the component for that vertex and update the path to it for the given vertex
Given a UnionFind record and a vertex(node) find the root-vertex of the component for that vertex and update the path to it for the given vertex
(make-union-find V)Given a set of vertices(nodes) create and initialize a Union-Find datastructure
Given a set of vertices(nodes) create and initialize a Union-Find datastructure
(same-comp? uf u v)Determine if u and v belong to the same component.
Determine if u and v belong to the same component.
(union uf u v)Given a UnionFind record and a pair of vertices(u and v) merge the two components that u and v belong to.
Given a UnionFind record and a pair of vertices(u and v) merge the two components that u and v belong to.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |