Back to Data Structures & Algorithms

Graphs Basics

Introducing graph theory, including representations (adjacency list/matrix), and fundamental traversal algorithms like BFS and DFS.

2 weeks

Topics in this Chapter

1

Graph Representation

Comparing and implementing adjacency lists and adjacency matrices.

2

Breadth-First Search (BFS)

A graph traversal algorithm that explores neighbor nodes first, before moving to the next level neighbors.

3

Depth-First Search (DFS)

A graph traversal algorithm that explores as far as possible along each branch before backtracking.

4

Bipartite Check

Determining if a graph's vertices can be divided into two disjoint sets.

GeekDost - Roadmaps & Snippets for Developers