Tarjan's off-line lowest common ancestors algorithm (Off-Line Lowest Common Ancestor Lowest Common Ancestor)
Jump to navigation
Jump to search
Time Complexity
$O(n+m)$
Space Complexity
$O(n)$ words
Description
Approximate?
Exact
Randomized?
No, deterministic
Model of Computation
Word RAM
Year
1984