enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. Tarjan's off-line lowest common ancestors algorithm - Wikipedia

    en.wikipedia.org/wiki/Tarjan's_off-line_lowest...

    For this offline algorithm, the set P must be specified in advance. It uses the MakeSet, Find, and Union functions of a disjoint-set data structure. MakeSet(u) removes u to a singleton set, Find(u) returns the standard representative of the set containing u, and Union(u,v) merges the set containing u with the set containing v.

  3. Disjoint-set data structure - Wikipedia

    en.wikipedia.org/wiki/Disjoint-set_data_structure

    This updating is an important part of the disjoint-set forest's amortized performance guarantee. There are several algorithms for Find that achieve the asymptotically optimal time complexity. One family of algorithms, known as path compression, makes every node between the query node and the root point to the root. Path compression can be ...

  4. Disjoint sets - Wikipedia

    en.wikipedia.org/wiki/Disjoint_sets

    Two disjoint sets. In set theory in mathematics and formal logic, two sets are said to be disjoint sets if they have no element in common. Equivalently, two disjoint sets are sets whose intersection is the empty set. [1] For example, {1, 2, 3} and {4, 5, 6} are disjoint sets, while {1, 2, 3} and {3, 4, 5} are not disjoint. A collection of two ...

  5. Maze generation algorithm - Wikipedia

    en.wikipedia.org/wiki/Maze_generation_algorithm

    An efficient implementation using a disjoint-set data structure can perform each union and find operation on two sets in nearly constant amortized time (specifically, (()) time; () < for any plausible value of ), so the running time of this algorithm is essentially proportional to the number of walls available to the maze.

  6. Suurballe's algorithm - Wikipedia

    en.wikipedia.org/wiki/Suurballe's_algorithm

    The following example shows how Suurballe's algorithm finds the shortest pair of disjoint paths from A to F. Figure A illustrates a weighted graph G. Figure B calculates the shortest path P 1 from A to F (A–B–D–F). Figure C illustrates the shortest path tree T rooted at A, and the computed distances from A to every vertex (u).

  7. Disjoint union - Wikipedia

    en.wikipedia.org/wiki/Disjoint_union

    In mathematics, the disjoint union (or discriminated union) of the sets A and B is the set formed from the elements of A and B labelled (indexed) with the name of the set from which they come. So, an element belonging to both A and B appears twice in the disjoint union, with two different labels.

  8. Talk:Disjoint-set data structure - Wikipedia

    en.wikipedia.org/wiki/Talk:Disjoint-set_data...

    The implementation listed as Implementation of Disjoint-set Forests in C++, by Bo Tian seems not to update the path (it dont do path compression) which is the hole point. — Preceding unsigned comment added by 85.164.124.173 ( talk ) 17:57, 20 July 2011 (UTC) [ reply ]

  9. Disjoint union (topology) - Wikipedia

    en.wikipedia.org/wiki/Disjoint_union_(topology)

    The disjoint union space X, together with the canonical injections, can be characterized by the following universal property: If Y is a topological space, and f i : X i → Y is a continuous map for each i ∈ I, then there exists precisely one continuous map f : X → Y such that the following set of diagrams commute: