Блог пользователя DaviddeGea1

Автор DaviddeGea1, история, 7 лет назад, По-английски

I get really confused at times at to which graph algorithms is specific to directed(or undirected) graphs or can be applied to both. So just wanted to create a blog that will contain all the graphs algorithms and their area of application(Directed, undirected or both).

I'll start with some about which I'm sure of:

  • DFS, BFS : Both

  • Topo sorting : Directed

  • Dijkstra : Both

  • Prims, Kruskal : Both

Please add more algorithms and/or correct me if I'm wrong.!

  • Проголосовать: нравится
  • -5
  • Проголосовать: не нравится

»
7 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Screenshot-12

For Directed Graphs this info is useful for selecting a particular algo.
Source: Competitive programming 3 by Steven Halim.
»
7 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Want to add: topological sort can only be used with directed acyclic graph(DAG).