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

Coddy

Topological Sort - Graph Algorithms

via Coddy

Overview

Master Topological Sort, the ordering of a directed acyclic graph so every edge points forward. Compute in-degrees, build an order with Kahn's algorithm in your language of choice, detect cycles, and find the longest path in a DAG.

Prerequisites:

  • Knowledge of a programming language of your choice.
  • Basic understanding of directed graphs.

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 Topological Sort - 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.