Graph Search

From NovaOrdis Knowledge Base
Revision as of 21:38, 1 October 2021 by Ovidiu (talk | contribs)
Jump to navigation Jump to search

Internal

TO DEPLETE

Searching_a_Graph_and_Finding_a_Path_through_Graphs_TODEPLETE

Overview

Both breadth-first search and depth-first search algorithms are very efficient, in that they walk the entire graph in linear time of the number of vertices and edges O(n + m).

Breadth-First Search (BFS)

Depth-First Search (DFS)