When.com Web Search

Search results

  1. Results From The WOW.Com Content Network
  2. 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

  3. Rocha–Thatte cycle detection algorithm - Wikipedia

    en.wikipedia.org/wiki/Rocha–Thatte_cycle...

    The Rocha–Thatte algorithm is a general algorithm for detecting cycles in a directed graph by message passing among its vertices, based on the bulk synchronous message passing abstraction. This is a vertex-centric approach in which the vertices of the graph work together for detecting cycles.

  4. Cycle (graph theory) - Wikipedia

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

    In graph theory, a cycle in a graph is a non-empty trail in which only the first and last vertices are equal. A directed cycle in a directed graph is a non-empty directed trail in which only the first and last vertices are equal. A graph without cycles is called an acyclic graph. A directed graph without directed cycles is called a directed ...

  5. 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 ...

  6. 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 ...

  7. Hamiltonian path problem - Wikipedia

    en.wikipedia.org/wiki/Hamiltonian_path_problem

    An early exact algorithm for finding a Hamiltonian cycle on a directed graph was the enumerative algorithm of Martello. [3] A search procedure by Frank Rubin [5] divides the edges of the graph into three classes: those that must be in the path, those that cannot be in the path, and undecided. As the search proceeds, a set of decision rules ...

  8. Zero-weight cycle problem - Wikipedia

    en.wikipedia.org/wiki/Zero-weight_cycle_problem

    With this reweighting, a zero-weight cycle becomes trivial to detect: it exists if and only if the zero-weight edges do not form a directed acyclic graph. Therefore, the special case of the zero-weight cycle problem, on graphs with no negative cycle, has a polynomial-time algorithm. [1]

  9. Dijkstra's algorithm - Wikipedia

    en.wikipedia.org/wiki/Dijkstra's_algorithm

    However, specialized cases (such as bounded/integer weights, directed acyclic graphs etc.) can be improved further. If preprocessing is allowed, algorithms such as contraction hierarchies can be up to seven orders of magnitude faster. Dijkstra's algorithm is commonly used on graphs where the edge weights are positive integers or real numbers.