enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. Cycle (graph theory) - Wikipedia

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

    In the case of undirected graphs, only O(n) time is required to find a cycle in an n-vertex graph, since at most n − 1 edges can be tree edges. Many topological sorting algorithms will detect cycles too, since those are obstacles for topological order to exist.

  3. Cycle detection - Wikipedia

    en.wikipedia.org/wiki/Cycle_detection

    In computer science, cycle detection or cycle finding is the algorithmic problem of finding a cycle in a sequence of iterated function values. For any function f that maps a finite set S to itself, and any initial value x 0 in S , the sequence of iterated function values

  4. Kruskal's algorithm - Wikipedia

    en.wikipedia.org/wiki/Kruskal's_algorithm

    If the graph is connected, it finds a minimum spanning tree. It is a greedy algorithm that in each step adds to the forest the lowest-weight edge that will not form a cycle. [2] The key steps of the algorithm are sorting and the use of a disjoint-set data structure to detect cycles. Its running time is dominated by the time to sort all of the ...

  5. Pseudoforest - Wikipedia

    en.wikipedia.org/wiki/Pseudoforest

    A cycle in an undirected graph is a connected subgraph in which each vertex is incident to exactly two edges, or is a loop. [4] The 21 unicyclic graphs with at most six vertices. A pseudoforest is an undirected graph in which each connected component contains at most one cycle. [5]

  6. Hamiltonian path - Wikipedia

    en.wikipedia.org/wiki/Hamiltonian_path

    A Hamiltonian cycle around a network of six vertices Examples of Hamiltonian cycles on a square grid graph 8x8. In the mathematical field of graph theory, a Hamiltonian path (or traceable path) is a path in an undirected or directed graph that visits each vertex exactly once.

  7. Hamiltonian path problem - Wikipedia

    en.wikipedia.org/wiki/Hamiltonian_path_problem

    In one direction, the Hamiltonian path problem for graph G can be related to the Hamiltonian cycle problem in a graph H obtained from G by adding a new universal vertex x, connecting x to all vertices of G. Thus, finding a Hamiltonian path cannot be significantly slower (in the worst case, as a function of the number of vertices) than finding a ...

  8. Cycle basis - Wikipedia

    en.wikipedia.org/wiki/Cycle_basis

    The symmetric difference of two cycles is an Eulerian subgraph. In graph theory, a branch of mathematics, a cycle basis of an undirected graph is a set of simple cycles that forms a basis of the cycle space of the graph. That is, it is a minimal set of cycles that allows every even-degree subgraph to be expressed as a symmetric difference of ...

  9. Bellman–Ford algorithm - Wikipedia

    en.wikipedia.org/wiki/Bellman–Ford_algorithm

    If a graph contains a "negative cycle" (i.e. a cycle whose edges sum to a negative value) that is reachable from the source, then there is no cheapest path: any path that has a point on the negative cycle can be made cheaper by one more walk around the negative cycle. In such a case, the Bellman–Ford algorithm can detect and report the ...