Topological Sort

Poornima K S
Jan 31, 2022

Complexity: O(num of vertices in the graph)

In order to find a particular sequencing or ordering of graph , we use topological sort. We push the vertices with zero in-degree into the queue and iteratively traverse the graph.

Points to Note:

  • This algorithm is applicable to Directed Acyclic Graphs
  • Use to find sequencing or dependencies

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Poornima K S
Poornima K S

No responses yet

Write a response