Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
DSA Python - Topological Sort using Kahn's Algorithm | GFG Problem | BFS on DAG - Part 136 [Hindi]
Play lesson

Data Structures and Algorithms with Python | Free DSA with Python Course - DSA Python - Topological Sort using Kahn's Algorithm | GFG Problem | BFS on DAG - Part 136 [Hindi]

5.0 (2)
23 learners

What you'll learn

This course includes

  • 73.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Full Transcript

🚀 Welcome to Part 136 of Code & Debug’s DSA Python Course 2025! In this session, we explore Kahn’s Algorithm — a powerful BFS-based approach to perform Topological Sorting on Directed Acyclic Graphs (DAGs). This method is often preferred when indegree-based scheduling or layer-wise processing is needed. 📚 What you’ll learn in this video: ✅ What is Kahn’s Algorithm and where it's useful ✅ Real-world application of Topological Sort ✅ How to calculate indegrees of nodes ✅ Step-by-step BFS implementation using a queue ✅ Time and space complexity analysis 💡 This algorithm is particularly important in task scheduling, course prerequisite ordering, and build systems. 👉 Practice the problem on GFG: 🔗 https://www.geeksforgeeks.org/problems/topological-sort/1 👉 Refer to the article for better understanding: 🔗 https://codeanddebug.in/blog/topo-sort-kahns-algorithm/ 👉 📄 Access the full YouTube DSA Playlist Sheet (All Questions in Order): 🔗 https://docs.google.com/spreadsheets/d/1AWE15Fy3wD2iqu2vjK_R7cCiuvSsjYQclcdZmHpF66o/edit?usp=sharing 👉 Enroll in this FREE DSA Python course here: 🔗 https://codeanddebug.in/course/master-dsa-with-leetcode 👉 Enroll for Self-Paced Advanced DSA course here: 🔗 https://codeanddebug.in/course/zero-to-hero-python-dsa 🙏 Thank you for supporting Code & Debug! Don’t forget to like, share, and subscribe, and press the 🔔 bell icon to never miss an update. #TopologicalSort #KahnsAlgorithm #GraphBFS #DSA2025 #PythonDSA #CodeAndDebug #Part136 #GFGProblems #TechInterviews

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere