Fading Coder

One Final Commit for the Last Sprint

Prisoners Problem: Union-Find and Binary Search Solutions

Problem Overview The prisoners problem involves assigning prisoners to two cells such that prisoners with high hostility are separated. Each prisoner has a hostility level with other prisoners, and we need to find the maximum hsotility level that can be guaranteed to separate. Solution 1: Union-Find...

Graph Connectivity: Algorithms for SCCs, Bridges, and Articulation Points

Core Traversal Mechanism Graph connectivity problems frequently rely on a single Depth-First Search (DFS) traversal. During the traversal, two primary values are maintained for every vertex u: Discovery Time (disc[u]): A monotonically increasing timestamp assigned when u is first visited. Low-Link V...