📄️ Practice Problems
Practice problems for Graphs to help you understand the concepts better.
🗃️ Shortest Path Algorithms
5 items
📄️ Prim's Algorithm
Prim's algorithm is a greedy algorithm that finds the Minimum Spanning Tree (MST)
📄️ Tarjan's Algorithm
Tarjan's algorithm is an efficient method for finding strongly connected components in a directed graph.
📄️ Practice Problems
1. Easy Level
📄️ Adjacency List
Adjacency list is used to represent a graph using array and linked list
📄️ Adjacency matrix
An adjacency matrix is a 2D array used to represent a graph, where each cell (i, j) is set to 1 if there's an edge from node i to node j, and 0 otherwise.
📄️ Introduction to Disjoint Set Union
The Disjoint Set Union (DSU) algorithm efficiently manages dynamic connectivity and union-find operations.
📄️ Johnson's Algorithm
In this blog post, we'll explore Johnson's Algorithm, a method to find the shortest paths between all pairs of nodes in a graph, even with negative weights.
📄️ Longest Path in DAG
Calculating the longest path from a given source in a Directed Acyclic Graph (DAG) with weighted edges.
📄️ PageRank Algorithm
In this blog post, we'll explore the PageRank algorithm, a method used to rank web pages based on their link structure.
📄️ Ant Colony Optimization
In this post, we'll explore the Ant Colony Optimization (ACO) algorithm, applied to solving the Travelling Salesman Problem (TSP) using a probabilistic and pheromone-based approach.