enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. Hamiltonian path problem - Wikipedia

    en.wikipedia.org/wiki/Hamiltonian_path_problem

    The Hamiltonian cycle problem is similar to the Hamiltonian path problem, except it asks if a given graph contains a Hamiltonian cycle. This problem may also specify the start of the cycle. The Hamiltonian cycle problem is a special case of the travelling salesman problem, obtained by setting the distance between two cities to one if they are ...

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

  4. Hamiltonian path - Wikipedia

    en.wikipedia.org/wiki/Hamiltonian_path

    A Hamiltonian cycle, Hamiltonian circuit, vertex tour or graph cycle is a cycle that visits each vertex exactly once. A graph that contains a Hamiltonian cycle is called a Hamiltonian graph . Similar notions may be defined for directed graphs , where each edge (arc) of a path or cycle can only be traced in a single direction (i.e., the vertices ...

  5. Eulerian path - Wikipedia

    en.wikipedia.org/wiki/Eulerian_path

    An Eulerian cycle, [note 1] also called an Eulerian circuit or Euler tour, in an undirected graph is a cycle that uses each edge exactly once. If such a cycle exists, the graph is called Eulerian or unicursal. [4] The term "Eulerian graph" is also sometimes used in a weaker sense to denote a graph where every vertex has even degree.

  6. Feedback vertex set - Wikipedia

    en.wikipedia.org/wiki/Feedback_vertex_set

    Karp's reduction also implies the NP-completeness of the feedback vertex set problem on undirected graphs, where the problem stays NP-complete on graphs of maximum degree four. The feedback vertex set problem can be solved in polynomial time on graphs of maximum degree at most three, using an algorithm based on the matroid parity problem. [2]

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

  8. Cycle detection - Wikipedia

    en.wikipedia.org/wiki/Cycle_detection

    Cycle detection is the problem of finding i and j, given f and x 0. Several algorithms are known for finding cycles quickly and with little memory. Robert W. Floyd 's tortoise and hare algorithm moves two pointers at different speeds through the sequence of values until they both point to equal values.

  9. Shortest path problem - Wikipedia

    en.wikipedia.org/wiki/Shortest_path_problem

    Shortest path (A, C, E, D, F), blue, between vertices A and F in the weighted directed graph. In graph theory, the shortest path problem is the problem of finding a path between two vertices (or nodes) in a graph such that the sum of the weights of its constituent edges is minimized.