vrom911 / DynamicConnectivity

:chart_with_upwards_trend: Advanced Data Structures Final Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

:chart_with_upwards_trend: Advanced Data Structures Final Project

License:MIT License


Languages

Language:Java 100.0%