Skip to content

Glossary: Algorithms Beyond the Basics in Go

Kahn's algorithm

Also written: Kahn

A topological sort that repeatedly takes a task with in-degree 0, adds it to the order, and lowers the in-degree of the tasks after it. A short result means a cycle.

Where the book teaches it

Related terms

In-degreeTopological orderCycleQueue