Skip to content

vrom911/DynamicConnectivity

Repository files navigation

Dynamic Connectivity

The project that implements a data structure of the dynamic connectivity in random undirected graph, which supports operations of removal and addition of edges, verification that two vertices are in the same connected component.

  • void link(u, v) – add edge to the graph, operation time is equation
  • void cut(u, v) – delete edge from the graph, the amortized time for a delete operation is equation
  • boolean areConnected(u, v) – query to check whether two vertices are connected by a path, operation time is equation

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Other

Report in russian

Releases

No releases published

Packages

No packages published

Languages