enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. Disjoint-set data structure - Wikipedia

    en.wikipedia.org/wiki/Disjoint-set_data_structure

    As a result, disjoint-set forests are both asymptotically optimal and practically efficient. Disjoint-set data structures play a key role in Kruskal's algorithm for finding the minimum spanning tree of a graph. The importance of minimum spanning trees means that disjoint-set data structures support a wide variety of algorithms.

  3. Tarjan's off-line lowest common ancestors algorithm - Wikipedia

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

    The pseudocode below determines the lowest common ancestor of each pair in P, given the root r of a tree in which the children of node n are in the set n.children. 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.

  4. Parent pointer tree - Wikipedia

    en.wikipedia.org/wiki/Parent_pointer_tree

    When used to implement a set of stacks, the structure is called a spaghetti stack, cactus stack or saguaro stack (after the saguaro, a kind of cactus). [1] Parent pointer trees are also used as disjoint-set data structures. The structure can be regarded as a set of singly linked lists that share part of their structure, in particular, their ...

  5. Kruskal's algorithm - Wikipedia

    en.wikipedia.org/wiki/Kruskal's_algorithm

    Once sorted, it is possible to loop through the edges in sorted order in constant time per edge. Next, use a disjoint-set data structure, with a set of vertices for each component, to keep track of which vertices are in which components. Creating this structure, with a separate set for each vertex, takes V operations and O(V) time. The final ...

  6. Connectivity (graph theory) - Wikipedia

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

    This graph becomes disconnected when the right-most node in the gray area on the left is removed This graph becomes disconnected when the dashed edge is removed.. In mathematics and computer science, connectivity is one of the basic concepts of graph theory: it asks for the minimum number of elements (nodes or edges) that need to be removed to separate the remaining nodes into two or more ...

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

  8. Biconnected component - Wikipedia

    en.wikipedia.org/wiki/Biconnected_component

    In the online version of the problem, vertices and edges are added (but not removed) dynamically, and a data structure must maintain the biconnected components. Jeffery Westbrook and Robert Tarjan (1992) [ 4 ] developed an efficient data structure for this problem based on disjoint-set data structures .

  9. Cell-probe model - Wikipedia

    en.wikipedia.org/wiki/Cell-probe_model

    In the disjoint-set data structure, the structure represents a collection of disjoint sets; there is an update operation, called Union, which unites two sets, and a query operation, called Find, which identifies the set to which a given element belongs.