Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Java Data Structures and Algorithms
·
Module 10
Graphs: Representations and Traversals
1
Representing Graphs: Adjacency Matrix and List
Represent graphs using an adjacency matrix and an adjacency list.
2
BFS for Shortest Path in Unweighted Graphs
Implement Breadth-First Search (BFS) on a graph to find the shortest path in an unweighted graph.
3
Implementing DFS: Recursive & Iterative Approaches
Implement Depth-First Search (DFS) on a graph, both recursively and iteratively.
4
Cycle Detection in Undirected Graphs (BFS/DFS)
Detect a cycle in an undirected graph using BFS or DFS.
5
DFS Cycle Detection in Directed Graphs
Detect a cycle in a directed graph using DFS.
6
Topological Sort: DFS & Kahn's Algorithm
Perform topological sorting on a Directed Acyclic Graph (DAG) using both DFS and Kahn's algorithm (BFS).
7
Connected Components and Islands
Solve problems related to connected components and finding the number of islands.
Previous module
Backtracking
Next module
Graph Algorithms