MCPcopy Create free account
hub / github.com/TheAlgorithms/C-Plus-Plus / findSet

Method findSet

data_structures/dsu_path_compression.cpp:74–80  ·  view source on GitHub ↗

* @brief Method to find the representative of the set to which i belongs * to, T(n) = O(1) * @param i element of some set * @returns representative of the set to which i belongs to. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected