Data Structure Disjoint set union-find Graph Bellman-Ford Shortest Path Single to all Check negative-weight cycle Dijkstra Shortest Path Single to all Floyd-Warshall Shortest Path All to all Kruskal Minimum Spanning Tree Topology Sort Math Find divisors Primality Primality test of n Find prime numbers until n Find n-th prime number Searching BFS DFS Binary Search Python Binary Search Library Count by range