Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Coddy

Depth-First Search - Graph Algorithms

via Coddy

Overview

Master Depth-First Search, a fundamental way to explore a graph. Build the adjacency lookup, write an iterative DFS in your language of choice, analyze its O(V + E) complexity, and use it to count and measure connected components.

Prerequisites:

  • Knowledge of a programming language of your choice.
  • Basic understanding of arrays and stacks.

Syllabus

Introduction

  • Motivation

The Algorithm

  • How it works?
  • Pseudo Code
  • Implementation (Part 1)
  • Implementation (Part 2)
  • Time and Space Complexity

Final Challenges

  • Final Challenge #1
  • Final Challenge #2

Reviews

Start your review of Depth-First Search - Graph Algorithms

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.