---
title: "#topological-sort articles | Hashnode"
description: "Explore 13 articles tagged #topological-sort on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/topological-sort"
---

Tag

# #topological-sort

13 posts · 0 followers

[Chetan Datta](https://hashnode.com/@chetan77) · [Sep 7, 2025](https://hashnode.com/posts/alien-dictionary/68bd8179e4b6f04f51d58fe3)

### [Alien Dictionary](https://chetan77.hashnode.dev/alien-dictionary?utm_source=hashnode&utm_medium=feed)

Problem A new alien language uses the English alphabet, but the order of letters is unknown. You are given a list of words\[\] from the alien language’s dictionary, where the words are claimed to be sor

7 min read · [chetan77.hashnode.dev](https://chetan77.hashnode.dev/alien-dictionary?utm_source=hashnode&utm_medium=feed)

[Chetan Datta](https://hashnode.com/@chetan77) · [Aug 24, 2025](https://hashnode.com/posts/course-schedule-1/68ab5a177349d9d806e42fbc)

### [Course Schedule 1](https://chetan77.hashnode.dev/course-schedule-1?utm_source=hashnode&utm_medium=feed)

Problem There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites where prerequisites\[i\] = \[ai, bi\] indicates that you must take course bi first if you want to take course ai. For...

2 min read · [chetan77.hashnode.dev](https://chetan77.hashnode.dev/course-schedule-1?utm_source=hashnode&utm_medium=feed)

[Chetan Datta](https://hashnode.com/@chetan77) · [Aug 18, 2025](https://hashnode.com/posts/course-schedule-2/68a32b2ba10d174c156ad2e1)

### [Course Schedule 2](https://chetan77.hashnode.dev/course-schedule-2?utm_source=hashnode&utm_medium=feed)

Problem There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites where prerequisites\[i\] = \[ai, bi\] indicates that you must take course bi first if you want to take course ai. Fo...

2 min read · [chetan77.hashnode.dev](https://chetan77.hashnode.dev/course-schedule-2?utm_source=hashnode&utm_medium=feed)

[Chetan Datta](https://hashnode.com/@chetan77) · [Aug 17, 2025](https://hashnode.com/posts/topological-sort-dfs-bfs/68a21f90fc85d060ea76291f)

### [Topological sort (DFS | BFS)](https://chetan77.hashnode.dev/topological-sort-dfs-bfs?utm_source=hashnode&utm_medium=feed)

Kahn's Algorithm

4 min read · [chetan77.hashnode.dev](https://chetan77.hashnode.dev/topological-sort-dfs-bfs?utm_source=hashnode&utm_medium=feed)

[Abhi](https://hashnode.com/@abhikommen) · [Apr 12, 2025](https://hashnode.com/posts/parallel-courses/67fa4f74b8b0ef3f4065051a)

### [Parallel Courses](https://dynamicprogramming.hashnode.dev/parallel-courses?utm_source=hashnode&utm_medium=feed)

There are N courses, labelled from 1 to N. We are given relations\[i\] = \[X, Y\], representing a prerequisite relationship between course X and course Y: course X has to be studied before course Y. In one semester you can study any number of courses as ...

4 min read · [dynamicprogramming.hashnode.dev](https://dynamicprogramming.hashnode.dev/parallel-courses?utm_source=hashnode&utm_medium=feed)

[Teja Illa](https://hashnode.com/@akaDurga) · [Oct 2, 2024](https://hashnode.com/posts/topological-sort-algorithm/66fcea12a383b6595888fb4f)

### [Topological Sort Algorithm](https://akadurga.hashnode.dev/topological-sort-algorithm?utm_source=hashnode&utm_medium=feed)

Topological sort algorithm using DFS import java.util.\*; public class Main { public static class Graph { int v; int e; List<List<Integer>> arrList; public Graph(int v, int e) { this.v = v; this.e = e; arrList...

1 min read · [akadurga.hashnode.dev](https://akadurga.hashnode.dev/topological-sort-algorithm?utm_source=hashnode&utm_medium=feed)

[Drake Pham](https://hashnode.com/@pham-blog) · [Sep 28, 2024](https://hashnode.com/posts/topological-sort-understanding-the-concept-and-2-applications/66f817a0426e89fd4105ad87)

### [Topological Sort: Understanding the Concept and 2 Applications](https://topological-sort.hashnode.dev/topological-sort-understanding-the-concept-and-2-applications?utm_source=hashnode&utm_medium=feed)

Topological Sorting is an important concept in graph theory, especially for Directed Acyclic Graphs (DAGs). It gives a linear order of vertices so that for every directed edge u → v, vertex u comes before v in the order. This is useful when tasks or ...

4 min read · [topological-sort.hashnode.dev](https://topological-sort.hashnode.dev/topological-sort-understanding-the-concept-and-2-applications?utm_source=hashnode&utm_medium=feed)

[Jyotiprakash Mishra](https://hashnode.com/@jpmishra) · [Sep 25, 2024](https://hashnode.com/posts/introduction-to-graphs/66f45b9c8deab1400aa9367e)

### [Introduction to Graphs](https://blog.jyotiprakash.org/introduction-to-graphs?utm_source=hashnode&utm_medium=feed)

A graph is a collection of nodes (also called vertices) and edges that connect pairs of nodes. Graphs are an abstract data structure used to represent relationships between objects. A graph G is typically denoted as G = (V, E), where: V is the set o...

19 min read · [blog.jyotiprakash.org](https://blog.jyotiprakash.org/introduction-to-graphs?utm_source=hashnode&utm_medium=feed)

[Fatima Jannet](https://hashnode.com/@fatimaJannet) · [Aug 22, 2024](https://hashnode.com/posts/topological-sort-algorithm/66c72b995d86c21883704501)

### [Topological Sort Algorithm](https://mahia.hashnode.dev/topological-sort-algorithm?utm_source=hashnode&utm_medium=feed)

Introduction to Topological Sort Algorithm for task scheduling, symbol dependencies, and build orders in software projects

2 min read · [mahia.hashnode.dev](https://mahia.hashnode.dev/topological-sort-algorithm?utm_source=hashnode&utm_medium=feed)

[Ajay Dandge](https://hashnode.com/@nobleknight) · [Jul 22, 2024](https://hashnode.com/posts/leetcode-2392-build-a-matrix-with-conditions-topological-sort-and-kahns-algorithm/669e99a7e22d17ba935713e5)

### [LeetCode #2392 Build a Matrix With Conditions, Topological Sort and Kahn's Algorithm](https://nobleknight.hashnode.dev/leetcode-2392-build-a-matrix-with-conditions-topological-sort-and-kahns-algorithm?utm_source=hashnode&utm_medium=feed)

You are given a positive integer k. You are also given: a 2D integer array rowConditions of size n where rowConditions\[i\] = \[above<sub>i</sub>, below<sub>i</sub>\], and a 2D integer array colConditions of size m where colConditions\[i\] = \[left<sub>i<...

3 min read · [nobleknight.hashnode.dev](https://nobleknight.hashnode.dev/leetcode-2392-build-a-matrix-with-conditions-topological-sort-and-kahns-algorithm?utm_source=hashnode&utm_medium=feed)
