Discussion on Graphs

Discover more aspects regarding graphs.

We'll cover the following...

Additional notes

The running times of the depth-first-search and breadth-first-search algorithms are somewhat overstated by the following theorems we explained before:

  1. When given as input a Graph, g, that is implemented using the AdjacencyLists data structure, the bfs(g, r) algorithm runs in O(n+m)O(n + m)
...

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy