Loading [MathJax]/extensions/mml2jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Engineering LibreTexts

Search

  • Filter Results
  • Location
  • Classification
    • Article type
    • Author
    • Set as Cover Page of Book
    • License
    • Show TOC
    • Transcluded
    • OER program or Publisher
    • Autonumber Section Headings
    • License Version
    • Print CSS
  • Include attachments
Searching in
About 1 results
  • https://eng.libretexts.org/Bookshelves/Computer_Science/Applied_Programming/Think_Complexity%3A_Exploring_Complexity_Science_with_Python_(Downey)/02%3A_Graphs/2.08%3A_Analysis_of_graph_algorithms
    The order of growth for graph algorithms is usually expressed as a function of n, the number of vertices (nodes), and m, the number of edges. If the node is not already in seen, we add it, which is co...The order of growth for graph algorithms is usually expressed as a function of n, the number of vertices (nodes), and m, the number of edges. If the node is not already in seen, we add it, which is constant time, and then add the neighbors to the stack, which is linear in the number of neighbors. To express the run time in terms of n and m, we can add up the total number of times each node is added to seen and stack.

Support Center

How can we help?