The nearest common ancestor in a dynamic tree (Q1821561): Difference between revisions
From MaRDI portal
Added link to MaRDI item. |
ReferenceBot (talk | contribs) Changed an Item |
||
(One intermediate revision by one other user not shown) | |||
Property / MaRDI profile type | |||
Property / MaRDI profile type: MaRDI publication profile / rank | |||
Normal rank | |||
Property / cites work | |||
Property / cites work: Q4091421 / rank | |||
Normal rank | |||
Property / cites work | |||
Property / cites work: On Finding Lowest Common Ancestors in Trees / rank | |||
Normal rank | |||
Property / cites work | |||
Property / cites work: Fast Algorithms for Finding Nearest Common Ancestors / rank | |||
Normal rank | |||
Property / cites work | |||
Property / cites work: An Efficient Method for Storing Ancestor Information in Trees / rank | |||
Normal rank | |||
Property / cites work | |||
Property / cites work: A data structure for dynamic trees / rank | |||
Normal rank | |||
Property / cites work | |||
Property / cites work: A class of algorithms which require nonlinear time to maintain disjoint sets / rank | |||
Normal rank | |||
Property / cites work | |||
Property / cites work: Worst-case Analysis of Set Union Algorithms / rank | |||
Normal rank |
Latest revision as of 18:28, 17 June 2024
scientific article
Language | Label | Description | Also known as |
---|---|---|---|
English | The nearest common ancestor in a dynamic tree |
scientific article |
Statements
The nearest common ancestor in a dynamic tree (English)
0 references
1988
0 references
We consider the problem of determining the nearest common ancestor of two given nodes x and y (denoted by nca(x,y)) in a dynamic arbitrary tree T. We present an implementation of T by a pointer machine which needs linear space, performs m arbitrary insertions and deletions in the initially empty tree T in time O(m) and a query about nca(x,y) can be answered on- line in time O(log(min\(\{\) depth(x),\(depth(y)\})+\alpha (k,k))\), where the second factor is amortized over k queries, \(\alpha\) is a functional inverse of Ackermann's function and depth(x) the distance from node x to the root of T.
0 references
dynamic tree
0 references
nearest common ancestor
0 references
pointer machine
0 references