enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. Depth-first search - Wikipedia

    en.wikipedia.org/wiki/Depth-first_search

    a depth-first search starting at the node A, assuming that the left edges in the shown graph are chosen before right edges, and assuming the search remembers previously visited nodes and will not repeat them (since this is a small graph), will visit the nodes in the following order: A, B, D, F, E, C, G.

  3. Graph traversal - Wikipedia

    en.wikipedia.org/wiki/Graph_traversal

    A depth-first search (DFS) is an algorithm for traversing a finite graph. DFS visits the child vertices before visiting the sibling vertices; that is, it traverses the depth of any particular path before exploring its breadth. A stack (often the program's call stack via recursion) is generally used when implementing the algorithm.

  4. Robbins' theorem - Wikipedia

    en.wikipedia.org/wiki/Robbins'_theorem

    A strong orientation of a given bridgeless undirected graph may be found in linear time by performing a depth-first search of the graph, orienting all edges in the depth-first search tree away from the tree root, and orienting all the remaining edges (which must necessarily connect an ancestor and a descendant in the depth-first search tree ...

  5. Longest path problem - Wikipedia

    en.wikipedia.org/wiki/Longest_path_problem

    Perform a depth-first search of the graph. Let d {\displaystyle d} be the height of the resulting depth-first search tree . Use the sequence of root-to-leaf paths of the depth-first search tree, in the order in which they were traversed by the search, to construct a path decomposition of the graph, with pathwidth d {\displaystyle d} .

  6. Spanning tree - Wikipedia

    en.wikipedia.org/wiki/Spanning_tree

    This tree is known as a depth-first search tree or a breadth-first search tree according to the graph exploration algorithm used to construct it. [18] Depth-first search trees are a special case of a class of spanning trees called Trémaux trees, named after the 19th-century discoverer of depth-first search. [19]

  7. Cycle (graph theory) - Wikipedia

    en.wikipedia.org/wiki/Cycle_(graph_theory)

    The existence of a cycle in directed and undirected graphs can be determined by whether a depth-first search (DFS) finds an edge that points to an ancestor of the current vertex (i.e., it contains a back edge). [4] All the back edges which DFS skips over are part of cycles. [5]

  8. External memory graph traversal - Wikipedia

    en.wikipedia.org/wiki/External_memory_graph...

    Graph traversal is a subroutine in most graph algorithms. The goal of a graph traversal algorithm is to visit (and / or process) every node of a graph. Graph traversal algorithms, like breadth-first search and depth-first search, are analyzed using the von Neumann model, which assumes uniform memory access cost. This view neglects the fact ...

  9. Strong orientation - Wikipedia

    en.wikipedia.org/wiki/Strong_orientation

    A strong orientation of a given bridgeless undirected graph may be found in linear time by performing a depth-first search of the graph, orienting all edges in the depth-first search tree away from the tree root, and orienting all the remaining edges (which must necessarily connect an ancestor and a descendant in the depth-first search tree ...